qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
123,335 | <p>what configuration needs to be tweaked, and where does it live, in order to increase the maximum allowed post size?</p>
| [
{
"answer_id": 10689080,
"author": "Ahmed MANSOUR",
"author_id": 1408361,
"author_profile": "https://Stackoverflow.com/users/1408361",
"pm_score": 2,
"selected": false,
"text": "<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->\n<Connector port=\"8009\" \n enableLooku... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123335",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13973/"
] |
123,336 | <p>How can you strip non-ASCII characters from a string? (in C#)</p>
| [
{
"answer_id": 123340,
"author": "philcruz",
"author_id": 3784,
"author_profile": "https://Stackoverflow.com/users/3784",
"pm_score": 10,
"selected": true,
"text": "string s = \"søme string\";\ns = Regex.Replace(s, @\"[^\\u0000-\\u007F]+\", string.Empty);\n"
},
{
"answer_id": 135... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123336",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3784/"
] |
123,378 | <p>Is there a good command-line UNIX charting / graphing / plotting tool out there? I'm looking for something that will plot xy points on an ASCII graph.</p>
<p>Just to clarify, I'm looking for something that will output a graph in ASCII (like ascii-art style), so I can use it over an interactive shell session withou... | [
{
"answer_id": 123396,
"author": "Palmin",
"author_id": 5949,
"author_profile": "https://Stackoverflow.com/users/5949",
"pm_score": 8,
"selected": true,
"text": "gnuplot> set terminal dumb\nTerminal type set to 'dumb'\nOptions are 'feed 79 24'\ngnuplot> plot sin(x)\n\n 1 ++------------... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21339/"
] |
123,387 | <p>we're have a client that needs to get interactive messages from a server, from clients that are distributed around the world behind all kinds of firewalls with all kinds of ports closed. The only thing we can rely on is HTTP port 80 (and HTTPS 443).</p>
<p>The design is basically modeled after XMPP (the Jabber prot... | [
{
"answer_id": 136797,
"author": "Duncan Smart",
"author_id": 1278,
"author_profile": "https://Stackoverflow.com/users/1278",
"pm_score": 3,
"selected": true,
"text": "IHttpAsyncHandler"
}
] | 2008/09/23 | [
"https://Stackoverflow.com/questions/123387",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22809/"
] |
123,391 | <p>I would like to know how to unload an assembly that is loaded into the main AppDomain.</p>
<p>I have the following code:</p>
<pre><code>var assembly = Assembly.LoadFrom( FilePathHere );
</code></pre>
<p>I need/want to be able to unload this assembly when I am done.</p>
<p>Thanks for your help.</p>
| [
{
"answer_id": 123465,
"author": "Khoth",
"author_id": 20686,
"author_profile": "https://Stackoverflow.com/users/20686",
"pm_score": 3,
"selected": false,
"text": "DynamicMethod"
},
{
"answer_id": 666312,
"author": "Nipun",
"author_id": 79323,
"author_profile": "https... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123391",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14164/"
] |
123,394 | <p>I know I can do this:</p>
<pre><code>IDateTimeFactory dtf = MockRepository.GenerateStub<IDateTimeFactory>();
dtf.Now = new DateTime();
DoStuff(dtf); // dtf.Now can be called arbitrary number of times, will always return the same value
dtf.Now = new DateTime()+new TimeSpan(0,1,0); // 1 minute later
DoStuff(dt... | [
{
"answer_id": 123515,
"author": "Judah Gabriel Himango",
"author_id": 536,
"author_profile": "https://Stackoverflow.com/users/536",
"pm_score": 0,
"selected": false,
"text": "using (mocks.Record())\n{\n Expect.Call(s.GetSomething()).Return(\"ABC\"); // 1st call will return ABC\n Exp... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123394",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5056/"
] |
123,401 | <p>Using jQuery, how do you bind a click event to a table cell (below, <code>class="expand"</code>) that will change the <code>image src</code> (which is in the clicked cell - original will be plus.gif, alternating with minus.gif) and <code>hide/show</code> the row immediately below it based on whether that row has a c... | [
{
"answer_id": 123518,
"author": "neuroguy123",
"author_id": 12529,
"author_profile": "https://Stackoverflow.com/users/12529",
"pm_score": 5,
"selected": true,
"text": "$(document).ready(function(){ \n $('.expand').click(function() {\n if( $(this).hasClass('hidden') )\n ... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123401",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2755/"
] |
123,480 | <p>We are using Zabbix for services monitoring.</p>
<p>There are some essential monitoring configured.
I want to have timeline of version strings of my service along with this monitorings. That would give me opportunity to see that upgrading to this version altered overall error-count.</p>
<p>Is it possible? </p>
| [
{
"answer_id": 395338,
"author": "James Cape",
"author_id": 41044,
"author_profile": "https://Stackoverflow.com/users/41044",
"pm_score": 0,
"selected": false,
"text": "zabbix_agentd.conf zabbix_agent.conf zabbix_server.conf"
}
] | 2008/09/23 | [
"https://Stackoverflow.com/questions/123480",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/844/"
] |
123,489 | <p>I am using REPLACE in an SQL view to remove the spaces from a property number. The function is setup like this REPLACE(pin, ' ', ''). On the green-screen the query looked fine. In anything else we get the hex values of the characters in the field. I am sure it is an encoding thing, but how do I fix it?</p>
<p>Here ... | [
{
"answer_id": 123784,
"author": "Mike Wills",
"author_id": 2535,
"author_profile": "https://Stackoverflow.com/users/2535",
"pm_score": 3,
"selected": true,
"text": "CREATE VIEW RLIC2GIS AS \nSELECT CONCAT(SUBSTR(RCAPIN,1,3),CONCAT(SUBSTR(RCAPIN,5,2), ... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123489",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2535/"
] |
123,499 | <p>I've got the directive</p>
<pre><code><VirtualHost *>
<Location />
AuthType Digest
AuthName "global"
AuthDigestDomain /
AuthUserFile /root/apache_users
<Limit GET>
Require valid-user
</Limit>
</Location>
WSGIScript... | [
{
"answer_id": 123526,
"author": "nosklo",
"author_id": 17160,
"author_profile": "https://Stackoverflow.com/users/17160",
"pm_score": 5,
"selected": true,
"text": "WSGIPassAuthorization On <VirtualHost *>\n <Location />\n AuthType Digest\n AuthName \"global\"\n Au... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123499",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19435/"
] |
123,503 | <p>I'm writing an iPhone app with Cocoa in xcode. I can't find any tutorials or sample code that shows how to take photos with the built in camera. How do I do this? Where can I find good info?</p>
<p>Thanks!</p>
| [
{
"answer_id": 123590,
"author": "jblocksom",
"author_id": 20626,
"author_profile": "https://Stackoverflow.com/users/20626",
"pm_score": 2,
"selected": false,
"text": "UIImagePickerController UIImagePickerControllerSourceTypeCamera"
},
{
"answer_id": 127155,
"author": "Airsou... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
123,504 | <p>In wxWidgets, how can you find the pixels per inch on a wxDC? I'd like to be able to scale things by a real world number like inches. That often makes it easier to use the same code for printing to the screen and the printer.</p>
| [
{
"answer_id": 123590,
"author": "jblocksom",
"author_id": 20626,
"author_profile": "https://Stackoverflow.com/users/20626",
"pm_score": 2,
"selected": false,
"text": "UIImagePickerController UIImagePickerControllerSourceTypeCamera"
},
{
"answer_id": 127155,
"author": "Airsou... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123504",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17693/"
] |
123,506 | <p>I have a ASP.NET application running on a remote web server and I just started getting this error:</p>
<pre><code>Method not found: 'Void System.Collections.Generic.ICollection`1..ctor()'.
</code></pre>
<p>I disassembled the code in the DLL and it seems like the compiler is incorrectly optimizing the code. (Note ... | [
{
"answer_id": 123607,
"author": "configurator",
"author_id": 9536,
"author_profile": "https://Stackoverflow.com/users/9536",
"pm_score": 1,
"selected": false,
"text": "System.Collections.Generic.HashSet<T> Set<>"
}
] | 2008/09/23 | [
"https://Stackoverflow.com/questions/123506",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10475/"
] |
123,529 | <p>A site I'm working on has Flash headers (using <a href="http://code.google.com/p/swfobject/" rel="noreferrer">swfobject</a> to embed them). Now I'm required to code in a bit of HTML that's supposed to overlap the Flash movie.</p>
<p>I've tried setting z-index on the Flash element's container and the (absolutely pos... | [
{
"answer_id": 397349,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "s1.addParam(\"wmode\",\"transparent\");\n style=\"z-index:inherit; \n"
},
{
"answer_id": 6933950,
"author": "Nassi... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9438/"
] |
123,557 | <p>I need to select a bunch of data into a temp table to then do some secondary calculations; To help make it work more efficiently, I would like to have an IDENTITY column on that table. I know I could declare the table first with an identity, then insert the rest of the data into it, but is there a way to do it in 1... | [
{
"answer_id": 123644,
"author": "Matt Rogish",
"author_id": 2590,
"author_profile": "https://Stackoverflow.com/users/2590",
"pm_score": 8,
"selected": true,
"text": "SELECT *, IDENTITY( int ) AS idcol\n INTO #newtable\n FROM oldtable\n"
},
{
"answer_id": 123735,
"author": ... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19305/"
] |
123,558 | <p>Is it possible to disable a trigger for a batch of commands and then enable it when the batch is done?</p>
<p>I'm sure I could drop the trigger and re-add it but I was wondering if there was another way.</p>
| [
{
"answer_id": 123566,
"author": "Matt Rogish",
"author_id": 2590,
"author_profile": "https://Stackoverflow.com/users/2590",
"pm_score": 7,
"selected": true,
"text": "DISABLE TRIGGER { [ schema_name . ] trigger_name [ ,...n ] | ALL }\nON { object_name | DATABASE | ALL SERVER } [ ; ]\n EN... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123558",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4068/"
] |
123,559 | <p>I'm trying to put together a comprehensive regex to validate phone numbers. Ideally it would handle international formats, but it must handle US formats, including the following:</p>
<ul>
<li><code>1-234-567-8901</code></li>
<li><code>1-234-567-8901 x1234</code></li>
<li><code>1-234-567-8901 ext1234</code></li>
<li... | [
{
"answer_id": 123565,
"author": "Nicholas Trandem",
"author_id": 765,
"author_profile": "https://Stackoverflow.com/users/765",
"pm_score": 4,
"selected": false,
"text": "^\\d?(?:(?:[\\+]?(?:[\\d]{1,3}(?:[ ]+|[\\-.])))?[(]?(?:[\\d]{3})[\\-/)]?(?:[ ]+)?)?(?:[a-zA-Z2-9][a-zA-Z0-9 \\-.]{6,}... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123559",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/765/"
] |
123,585 | <p>I installed a ASP.Net website on a Windows 2008 server, which is by default using IIS7. The website seems to work fine, but the post backs on my forms do not work. After a few hours of debugging, I realized that when I manually try to hit the WebResource.axd file in my browser (e.g. I type <a href="http://www.doma... | [
{
"answer_id": 331832,
"author": "Enes",
"author_id": 2921654,
"author_profile": "https://Stackoverflow.com/users/2921654",
"pm_score": 2,
"selected": false,
"text": "<handlers> <add name=\"AssemblyResourceLoader-Integrated\" path=\"WebResource.axd\" verb=\"GET,DEBUG\" type=\"System.Web.... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123585",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2013/"
] |
123,598 | <p>I have an Enum called Status defined as such:</p>
<pre><code>public enum Status {
VALID("valid"), OLD("old");
private final String val;
Status(String val) {
this.val = val;
}
public String getStatus() {
return val;
}
}
</code></pre>
<p>I would like to access the value ... | [
{
"answer_id": 130002,
"author": "IaCoder",
"author_id": 17337,
"author_profile": "https://Stackoverflow.com/users/17337",
"pm_score": 5,
"selected": false,
"text": "<% pageContext.setAttribute(\"old\", Status.OLD); %>\n <c:when test=\"${someModel.status == old}\"/>...</c:when>\n"
},
... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123598",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17337/"
] |
123,632 | <pre><code>devenv mysolution.sln /build "Release|Win32" /project myproject
</code></pre>
<p>When building from the command line, it seems I have the option of doing a <code>/build</code> or <code>/rebuild</code>, but no way of saying I want to do "project only" (i.e. not build or rebuild the specified project's depend... | [
{
"answer_id": 123649,
"author": "Ben Straub",
"author_id": 1319,
"author_profile": "https://Stackoverflow.com/users/1319",
"pm_score": 2,
"selected": false,
"text": "devenv vcbuild subproject.vcproj \"release|win32\"\n"
},
{
"answer_id": 123651,
"author": "Xian",
"author... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123632",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4790/"
] |
123,639 | <p>Suppose I use the [RemoteClass] tag to endow a custom Flex class with serialization intelligence. </p>
<p>What happens when I need to change my object (add a new field, remove a field, rename a field, etc)?</p>
<p>Is there a design pattern for handling this in an elegant way?</p>
| [
{
"answer_id": 327306,
"author": "cliff.meyers",
"author_id": 41754,
"author_profile": "https://Stackoverflow.com/users/41754",
"pm_score": 2,
"selected": false,
"text": "java:\npublic class User {\n public Long id;\n public String firstName;\n public String lastName;\n}\n\nas3:\npubl... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123639",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1750627/"
] |
123,648 | <p>I know that a SQL Server full text index can not index more than one table. But, I have relationships in tables that I would like to implement full text indexes on.</p>
<p>Take the 3 tables below...</p>
<pre><code>Vehicle
Veh_ID - int (Primary Key)
FK_Atr_VehicleColor - int
Veh_Make - nvarchar(20)
Veh_Model - nvar... | [
{
"answer_id": 123814,
"author": "Cowan",
"author_id": 17041,
"author_profile": "https://Stackoverflow.com/users/17041",
"pm_score": 0,
"selected": false,
"text": "SELECT \n Vehicle.VehID, ..., Color.Atr_Name AS ColorName \nFROM\n Vehicle \nLEFT OUTER JOIN Attributes AS Color ON (Vehic... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123648",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/576/"
] |
123,657 | <p>I would like to know if there is some way to share a variable or an object between two or more Servlets, I mean some "standard" way. I suppose that this is not a good practice but is a easier way to build a prototype.</p>
<p>I don't know if it depends on the technologies used, but I'll use Tomcat 5.5</p>
<hr>
<p>... | [
{
"answer_id": 123696,
"author": "yalestar",
"author_id": 2177,
"author_profile": "https://Stackoverflow.com/users/2177",
"pm_score": 1,
"selected": false,
"text": "getSession().setAttribute(\"thing\", object);\n Object obj = getSession.getAttribute(\"thing\");\n"
},
{
"answer_id... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19689/"
] |
123,661 | <p>Consider a <em>hypothetical</em> method of an object that does stuff for you:</p>
<pre><code>public class DoesStuff
{
BackgroundWorker _worker = new BackgroundWorker();
...
public void CancelDoingStuff()
{
_worker.CancelAsync();
//todo: Figure out a way to wait for BackgroundWorke... | [
{
"answer_id": 123684,
"author": "Seb Nilsson",
"author_id": 2429,
"author_profile": "https://Stackoverflow.com/users/2429",
"pm_score": 2,
"selected": false,
"text": "private void RunWorkerCompletedEventHandler(sender object, RunWorkerCompletedEventArgs e)\n{\n if(e.Cancelled)\n {... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12597/"
] |
123,672 | <p>In <a href="http://msdn.microsoft.com/en-us/library/ms155365%28SQL.90%29.aspx" rel="nofollow noreferrer">this MSDN article</a>, MS explains how to specify other delimiters besides commas for csv-type exports from SSRS 2005, however, literal tab characters are stripped by the config file parser, and it doesn't appear... | [
{
"answer_id": 124523,
"author": "Leo Moore",
"author_id": 6336,
"author_profile": "https://Stackoverflow.com/users/6336",
"pm_score": 1,
"selected": false,
"text": "use tempdb\ngo\ncreate view vw_bcpMasterSysobjects\nas\n select\n name = '\"' + name + '\"' ,\n crdate = '\"' ... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123672",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19239/"
] |
123,718 | <p>How can i check to see if a static class has been declared?
ex
Given the class</p>
<pre><code>class bob {
function yippie() {
echo "skippie";
}
}
</code></pre>
<p>later in code how do i check:</p>
<pre><code>if(is_a_valid_static_object(bob)) {
bob::yippie();
}
</code></pre>
<p>so i don't get:... | [
{
"answer_id": 123731,
"author": "Don Neufeld",
"author_id": 13097,
"author_profile": "https://Stackoverflow.com/users/13097",
"pm_score": 3,
"selected": false,
"text": "bool class_exists( string $class_name [, bool $autoload ]"
},
{
"answer_id": 123815,
"author": "Peter Bai... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5261/"
] |
123,726 | <p>How to disable standard ASP.NET handling of 401 response code (redirecting to login page) for AJAX/JSON requests?</p>
<p>For web-pages it's okay, but for AJAX I need to get right 401 error code instead of good looking 302/200 for login page.</p>
<p><strong>Update</strong>:
There are several solutions from Phil Haa... | [
{
"answer_id": 126985,
"author": "Troels Thomsen",
"author_id": 20138,
"author_profile": "https://Stackoverflow.com/users/20138",
"pm_score": 1,
"selected": false,
"text": "FilterAttribute IAuthorizationFilter OnAuthorization AuthorizeAttribute filterContext.Cancel filterContext.Result H... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123726",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12045/"
] |
123,758 | <p>Let's say I have the following <code>class X</code> where I want to return access to an internal member:</p>
<pre><code>class Z
{
// details
};
class X
{
std::vector<Z> vecZ;
public:
Z& Z(size_t index)
{
// massive amounts of code for validating index
Z& ret = vecZ[i... | [
{
"answer_id": 123765,
"author": "Kevin",
"author_id": 6386,
"author_profile": "https://Stackoverflow.com/users/6386",
"pm_score": 7,
"selected": true,
"text": "class X\n{\n std::vector<Z> vecZ;\n\npublic:\n const Z& z(size_t index) const\n {\n // same really-really-really lon... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123758",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6386/"
] |
123,773 | <p>I will choose Java as an example, most people know it, though every other OO language was working as well.</p>
<p>Java, like many other languages, has interface inheritance and implementation inheritance. E.g. a Java class can inherit from another one and every method that has an implementation there (assuming the ... | [
{
"answer_id": 123800,
"author": "Xian",
"author_id": 4642,
"author_profile": "https://Stackoverflow.com/users/4642",
"pm_score": 2,
"selected": false,
"text": "public class Car\n{\n private ICar _car;\n\n public void Move() {\n _car.Move();\n }\n}\n"
},
{
"answer_id": 124... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123773",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15809/"
] |
123,776 | <p>I have a page that has an iframe</p>
<p>From one of the pages within the iframe I want to look back and make a panel on the default page invisible because it is overshadowing a popup</p>
<p>I tried using Parent.FindControl but it does not seem to be working. I am positive I have the right id in the findcontrol bec... | [
{
"answer_id": 124102,
"author": "cllpse",
"author_id": 20946,
"author_profile": "https://Stackoverflow.com/users/20946",
"pm_score": 2,
"selected": false,
"text": "<body>\n <input type=\"text\" id=\"accessme\" value=\"Not Accessed\" />\n ...\n</body>\n <head>\n ...\n <script... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2486/"
] |
123,781 | <p>Is there a way to tell SQL Server 2008 Express to log every query (including each and every SELECT Query!) into a file?</p>
<p>It's a Development machine, so the negative side effects of logging Select-Queries are not an issue.</p>
<p>Before someone suggests using the SQL Profiler: This is not available in Express... | [
{
"answer_id": 17819485,
"author": "Dmytriy Voloshyn",
"author_id": 1255305,
"author_profile": "https://Stackoverflow.com/users/1255305",
"pm_score": 5,
"selected": false,
"text": "SELECT deqs.last_execution_time AS [Time], dest.TEXT AS [Query]\nFROM sys.dm_exec_query_stats AS deqs\nCROS... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123781",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/91/"
] |
123,783 | <p>Many websites have the concept of sending messages from user to user. When you send a message to another user, the message would show up in their inbox. You could respond to the message, and it would show up as a new entry in that message thread. </p>
<p>You should be able to see if you've read a given message a... | [
{
"answer_id": 123799,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 2,
"selected": true,
"text": "user\n id\n name\n\nmessages\n id\n to_user_id\n from_user_id\n title\n date\n\nmessage_post\n id\n message_id\n user_id\n messa... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123783",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17076/"
] |
123,809 | <p>If my code throws an exception, sometimes - not everytime - the jsf presents a blank page. I´m using facelets for layout.
A similar error were reported at this <a href="http://forums.sun.com/thread.jspa?messageID=10237827" rel="nofollow noreferrer">Sun forumn´s post</a>, but without answers.
Anyone else with the sam... | [
{
"answer_id": 4972670,
"author": "Bill the Lizard",
"author_id": 1288,
"author_profile": "https://Stackoverflow.com/users/1288",
"pm_score": 1,
"selected": false,
"text": "error.jsp message ServletException(Throwable rootCause) String.split(message, \";\"); null NullPointerException Ser... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123809",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21370/"
] |
123,826 | <p>I have a local mercurial repository with some site-specific changes in it. What I would like to do is set a couple files to be un-commitable so that they aren't automatically committed when I do an <code>hg commit</code> with no arguments.</p>
<p>Right now, I'm doing complicated things with <code>mq</code> and gua... | [
{
"answer_id": 123943,
"author": "Toni Ruža",
"author_id": 6267,
"author_profile": "https://Stackoverflow.com/users/6267",
"pm_score": 2,
"selected": false,
"text": ".hgignore"
}
] | 2008/09/23 | [
"https://Stackoverflow.com/questions/123826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6160/"
] |
123,838 | <p>Our clients will be uploading images to be printed on their documents and we have been asked to come up with a way to get the resolution of the image in order to warn them if the image has too low of a resolution and will look pixalated in the end-product</p>
<p>If it comes to it we could also go with the dimension... | [
{
"answer_id": 123854,
"author": "Xian",
"author_id": 4642,
"author_profile": "https://Stackoverflow.com/users/4642",
"pm_score": 5,
"selected": true,
"text": "Image newImage = Image.FromFile(\"SampImag.jpg\");\nnewImage.HorizontalResolution\n"
},
{
"answer_id": 123869,
"auth... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2486/"
] |
123,842 | <p>Am I missing something or is there truly no alternative (yet, I hope) to SVCUTIL.EXE for generating WCF Web service proxies? </p>
| [
{
"answer_id": 411791,
"author": "flq",
"author_id": 51428,
"author_profile": "https://Stackoverflow.com/users/51428",
"pm_score": 2,
"selected": false,
"text": "DuplexChannelFactory<IServerWithCallback> cf = \n new DuplexChannelFactory<IServerWithCallback>(\n new Callb... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123842",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2536/"
] |
123,862 | <p>I have a method that periodically (e.g. once in every 10 secs) try to connect to a server and read some data from it. The server might not be available all the time. If the server is not available the method throws an exception.</p>
<p>What would be the best way to implement a wrapper method that doesn't throw an e... | [
{
"answer_id": 123901,
"author": "Orion Adrian",
"author_id": 7756,
"author_profile": "https://Stackoverflow.com/users/7756",
"pm_score": 2,
"selected": false,
"text": "//Create Timer\n//Start Timer\nbool connected = false;\n\nwhile (!connected)\n\n try {\n //Connect To DB\n\n ... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123862",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/686/"
] |
123,918 | <p>System.IO.BinaryReader reads values in a little-endian format.</p>
<p>I have a C# application connecting to a proprietary networking library on the server side. The server-side sends everything down in network byte order, as one would expect, but I find that dealing with this on the client side is awkward, particu... | [
{
"answer_id": 155297,
"author": "Nick",
"author_id": 1490,
"author_profile": "https://Stackoverflow.com/users/1490",
"pm_score": 4,
"selected": true,
"text": "/// <summary>\n/// Utilities for reading big-endian files\n/// </summary>\npublic class BigEndianReader\n{\n public BigEndian... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123918",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21374/"
] |
123,920 | <p>I'm writing by own blogging engine in PHP with a MYSQL backend database. MY question is: How would you go about making user comments and blog posts include newlines wherever they are appropriate?</p>
<p>For example, if a user hits the return key in the message/comments box how would this translate into a new line t... | [
{
"answer_id": 123937,
"author": "Gavin M. Roy",
"author_id": 13203,
"author_profile": "https://Stackoverflow.com/users/13203",
"pm_score": 3,
"selected": false,
"text": "<br />"
},
{
"answer_id": 123944,
"author": "Jim",
"author_id": 8427,
"author_profile": "https://... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123920",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
123,927 | <p>I'm writing a setup program to install an application to a USB drive. The application is meant to be used only from USB drives, so it would save an extra step for the user by automatically selecting USB drive to install to.</p>
<p>I might explore using Nullsoft or MSI for install, but since I'm mostly familiar with... | [
{
"answer_id": 123948,
"author": "Kent Boogaart",
"author_id": 5380,
"author_profile": "https://Stackoverflow.com/users/5380",
"pm_score": 5,
"selected": true,
"text": "from driveInfo in DriveInfo.GetDrives()\nwhere driveInfo.DriveType == DriveType.Removable && driveInfo.IsReady\nselect ... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19124/"
] |
123,936 | <p>Some of my colleagues use special comments on their bug fixes, for example:</p>
<pre><code>// 2008-09-23 John Doe - bug 12345
// <short description>
</code></pre>
<p>Does this make sense?<br>
Do you comment bug fixes in a special way?</p>
<p>Please let me know.</p>
| [
{
"answer_id": 123965,
"author": "henriksen",
"author_id": 6181,
"author_profile": "https://Stackoverflow.com/users/6181",
"pm_score": 2,
"selected": false,
"text": "// Glenn F. Henriksen (<email@company.no) - 2008-09-23\n// <Short description>\n"
},
{
"answer_id": 123977,
"a... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123936",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2012356/"
] |
123,945 | <p>I have a Excel macro that generates a this error whenever it gets input of a specific format. Does anyone knows <strong>in general</strong> what an <em>advise flag</em> is OR where can I find information on this type of error? Thanks</p>
<blockquote>
<p>Runtime error -2147221503
(80040001): Automation error, In... | [
{
"answer_id": 123965,
"author": "henriksen",
"author_id": 6181,
"author_profile": "https://Stackoverflow.com/users/6181",
"pm_score": 2,
"selected": false,
"text": "// Glenn F. Henriksen (<email@company.no) - 2008-09-23\n// <Short description>\n"
},
{
"answer_id": 123977,
"a... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8203/"
] |
123,958 | <p>In python is it possible to get or set a logical directory (as opposed to an absolute one).</p>
<p>For example if I have:</p>
<pre><code>/real/path/to/dir
</code></pre>
<p>and I have</p>
<pre><code>/linked/path/to/dir
</code></pre>
<p>linked to the same directory.</p>
<p>using os.getcwd and os.chdir will alway... | [
{
"answer_id": 123985,
"author": "nosklo",
"author_id": 17160,
"author_profile": "https://Stackoverflow.com/users/17160",
"pm_score": 5,
"selected": true,
"text": "os.getcwd() getcwd() pwd os.environ['PWD'] getcwd import os\nfrom subprocess import Popen, PIPE\n\nclass CwdKeeper(object):\... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123958",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3051/"
] |
123,976 | <p>What is the best way to encrypt an URL with parameters in Java?</p>
| [
{
"answer_id": 124036,
"author": "Internet Friend",
"author_id": 18037,
"author_profile": "https://Stackoverflow.com/users/18037",
"pm_score": 0,
"selected": false,
"text": "java.net.URLEncoder.encode"
},
{
"answer_id": 970876,
"author": "Denis",
"author_id": 52472,
"... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123976",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1408/"
] |
123,979 | <p>I have created a bunch of movie clips which all have similar names and then after some other event I have built up a string like:</p>
<pre><code>var clipName = "barLeft42"
</code></pre>
<p>which is held inside another movie clip called 'thing'.</p>
<p>I have been able to get hold of a reference using:</p>
<pre><... | [
{
"answer_id": 124010,
"author": "Ronnie",
"author_id": 193,
"author_profile": "https://Stackoverflow.com/users/193",
"pm_score": 3,
"selected": true,
"text": "_root.thing[ \"barLeft42\" ]\n"
},
{
"answer_id": 125290,
"author": "fenomas",
"author_id": 10651,
"author_p... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123979",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21214/"
] |
123,986 | <p>I need my program to work only with certain USB Flash drives (from a single manufacturer) and ignore all other USB Flash drives (from any other manufacturers).</p>
<p>is it possible to check that specific USB card is inserted on windows using .NET 2.0? how?</p>
<p>if I find it through WMI, can I somehow determine ... | [
{
"answer_id": 124149,
"author": "Jorge Ferreira",
"author_id": 6508,
"author_profile": "https://Stackoverflow.com/users/6508",
"pm_score": 5,
"selected": true,
"text": "Console.WriteLine(\"Manufacturer: {0}\", queryObj[\"Manufacturer\"]);\n...\nConsole.WriteLine(\" Name: {0}\", c[\"N... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123986",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19124/"
] |
123,994 | <p>I'm trying to pass in a Base64 string into a C#.Net web application via the QueryString. When the string arrives the "+" (plus) sign is being replaced by a space. It appears that the automatic URLDecode process is doing this. I have no control over what is being passed via the QueryString. Is there any way to handle... | [
{
"answer_id": 124014,
"author": "Jason Bunting",
"author_id": 1790,
"author_profile": "https://Stackoverflow.com/users/1790",
"pm_score": 0,
"selected": false,
"text": "Request.QueryString[\"VLTrap\"].Replace(\" \", \"+\");\n"
},
{
"answer_id": 124027,
"author": "Troels Thom... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123994",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7819/"
] |
123,999 | <p>Is there an efficient way to tell if a DOM element (in an HTML document) is currently visible (appears in the <strong>viewport</strong>)?</p>
<p>(The question refers to Firefox.)</p>
| [
{
"answer_id": 125106,
"author": "Prestaul",
"author_id": 5628,
"author_profile": "https://Stackoverflow.com/users/5628",
"pm_score": 10,
"selected": true,
"text": "function elementInViewport(el) {\n var top = el.offsetTop;\n var left = el.offsetLeft;\n var width = el.offsetWidth;\n ... | 2008/09/23 | [
"https://Stackoverflow.com/questions/123999",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21290/"
] |
124,005 | <p>I have an SSIS package that copies the data in a table from one SQL Server 2005 to another SQL Server 2005. I do this with a "Data Flow" task. In the package config file I expose the destination table name.</p>
<p>Problem is when I change the destination table name in the config file (via notepad) I get the follo... | [
{
"answer_id": 124461,
"author": "ctrlShiftBryan",
"author_id": 6161,
"author_profile": "https://Stackoverflow.com/users/6161",
"pm_score": 0,
"selected": false,
"text": "INSERT INTO server1.dbo.database1.table1(id,name)\nSELECT id, name FROM server2.dbo.database1.table1\n"
},
{
... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124005",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
124,031 | <p>Using MS SQL Server Management Studio 2005 - To Restore a Database:</p>
<ul>
<li>Restore Database</li>
<li><code>(*) From Device:</code></li>
<li>Click "<code>...</code>" Button</li>
<li><code>Backup media: File</code> </li>
<li>Click "<code>Add</code>" Button</li>
<li>Popup Window: "<code>Locate Backup File</cod... | [
{
"answer_id": 124106,
"author": "henriksen",
"author_id": 6181,
"author_profile": "https://Stackoverflow.com/users/6181",
"pm_score": 5,
"selected": true,
"text": "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Microsoft SQL Server\\MSSQL.1\\MSSQLServer\\BackupDirectory d:\\data\\databases"
... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12923/"
] |
124,035 | <p>I recently converted a ruby library to a gem, which seemed to break the command line usability</p>
<p>Worked fine as a library</p>
<pre><code> $ ruby -r foobar -e 'p FooBar.question' # => "answer"
</code></pre>
<p>And as a gem, irb knows how to require a gem from command-line switches</p>
<pre><code> $ irb ... | [
{
"answer_id": 124069,
"author": "JasonTrue",
"author_id": 13433,
"author_profile": "https://Stackoverflow.com/users/13433",
"pm_score": 4,
"selected": true,
"text": "ruby -rubygems -r /usr/lib/ruby/gems/myhelpfulclass-0.0.1/lib/MyHelpfulClass -e \"puts MyHelpfulClass\"\n export RUBYLIB=... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4615/"
] |
124,066 | <p>I've found a similar question on stack overflow, but it didn't really answer the question I have. I need to make sure that my asp.net application is formatting the date dd/mm/yyyy the same as my SQL Server 2005.</p>
<p>How do I verify the date culture (if that's what it's called) of the server matches how I've prog... | [
{
"answer_id": 124208,
"author": "Jorge Alves",
"author_id": 6195,
"author_profile": "https://Stackoverflow.com/users/6195",
"pm_score": 0,
"selected": false,
"text": "string sqlCmd = @\"SELECT *\n FROM MyTable\n WHERE MyDateField = CONVERT(datetime, '{0}', 101)\";\n\n// assuming myD... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124066",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5433/"
] |
124,067 | <p>In languages like Java and C#, strings are immutable and it can be computationally expensive to build a string one character at a time. In said languages, there are library classes to reduce this cost such as C# <code>System.Text.StringBuilder</code> and Java <code>java.lang.StringBuilder</code>.</p>
<p>Does php (... | [
{
"answer_id": 124084,
"author": "paan",
"author_id": 2976,
"author_profile": "https://Stackoverflow.com/users/2976",
"pm_score": -1,
"selected": false,
"text": "$a=\"hello \";\n$b=\"world\";\necho $a.$b;\n"
},
{
"answer_id": 124109,
"author": "Peter Bailey",
"author_id":... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124067",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21388/"
] |
124,076 | <p>When I use traceroute, I often see abbreviations in the hostnames along the route, such as "ge", "so", "ic", "gw", "bb" etc. I can guess "bb" means backbone.</p>
<p>Does anyone know what any these strings abbreviate, or know any other common abbreviations?</p>
| [
{
"answer_id": 23001209,
"author": "Tech",
"author_id": 3521618,
"author_profile": "https://Stackoverflow.com/users/3521618",
"pm_score": 0,
"selected": false,
"text": "so = sonet, pos = packet over sonet\nxe= ten gigabit\nge= gigabit"
}
] | 2008/09/23 | [
"https://Stackoverflow.com/questions/124076",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19214/"
] |
124,079 | <p>I'd like to slice and dice large datafiles, up to a gig, in a fairly quick and efficient manner. If I use something like UNIX's "CUT", it's extremely fast, even in a CYGWIN environment. </p>
<p>I've tried developing and benchmarking various Ruby scripts to process these files, and always end up with glacial result... | [
{
"answer_id": 124088,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 2,
"selected": false,
"text": "counts = {}\ncounts.default = 0\n\nARGF.each_line do |line|\n if line =~ %r{GET /ongoing/When/\\d\\d\\dx/(\\d\\d\\d\\d... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124079",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21275/"
] |
124,096 | <p>I tend to implement UI functionality using fairly self-documenting void doSomething() methods, i.e. if the user presses this button then perform this action then enable this list box, disable that button, etc. Is this the best approach? Is there a better pattern for general UI management i.e. how to control when con... | [
{
"answer_id": 124119,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 0,
"selected": false,
"text": "class Form1 : Form\n { \n void Button1_Click\n { \n Program.DoCommand1();\n }\n }\n\n\nstatic class Pr... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124096",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3394/"
] |
124,108 | <p>I am trying to mock-up an API and am using separate apps within Django to represent different web services. I would like App A to take in a link that corresponds to App B and parse the <code>json</code> response. </p>
<p>Is there a way to dynamically construct the url to App B so that I can test the code in develop... | [
{
"answer_id": 124119,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 0,
"selected": false,
"text": "class Form1 : Form\n { \n void Button1_Click\n { \n Program.DoCommand1();\n }\n }\n\n\nstatic class Pr... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124108",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1227001/"
] |
124,118 | <p>We want to switch a web server from Windows 2003 to Windows 2003 Enterprise (64 bits) to use 8GB of RAM. Will IIS 6.0 and an ASPNET 1.1 application be able to benefit from the change?</p>
| [
{
"answer_id": 139790,
"author": "Christopher G. Lewis",
"author_id": 13532,
"author_profile": "https://Stackoverflow.com/users/13532",
"pm_score": 3,
"selected": true,
"text": "cscript %SystemDrive%\\inetpub\\AdminScripts\\adsutil.vbs set w3svc/AppPools/Enable32bitAppOnWin64 1\n <system... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124118",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7277/"
] |
124,123 | <p>Imagine I have the folling XML file:</p>
<p><a>before<b>middle</b>after</a></p>
<p>I want to convert it into something like this:</p>
<p><a>beforemiddleafter</a></p>
<p>In other words I want to get all the child nodes of a certain node, and move them to the parent node in orde... | [
{
"answer_id": 124215,
"author": "Rahul",
"author_id": 16308,
"author_profile": "https://Stackoverflow.com/users/16308",
"pm_score": 2,
"selected": false,
"text": "<xsl:template match=\"a\"><a><xsl:apply-templates /></a></xsl:template>\n\n<xsl:template match=\"a/b\"><xsl:value-of select=... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124123",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/161922/"
] |
124,143 | <p>I know Googling I can find an appropriate answer, but I prefer listening to your personal (and maybe technical) opinions.<br/>
<strong>What is the main reason of the difference between Java and C# in throwing exceptions?</strong><br/>
In Java the signature of a method that throws an exception has to use the "throws"... | [
{
"answer_id": 124173,
"author": "Derek Slager",
"author_id": 18636,
"author_profile": "https://Stackoverflow.com/users/18636",
"pm_score": 4,
"selected": false,
"text": "using"
},
{
"answer_id": 124175,
"author": "noah",
"author_id": 12034,
"author_profile": "https:/... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124143",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/68336/"
] |
124,148 | <p>Mixing the use of primitive data types and their respective wrapper classes, in Java, can lead to a lot of bugs. The following example illustrates the issue:</p>
<pre><code>int i = 4;
...
if (i == 10)
doStuff();
</code></pre>
<p>Later on you figure that you want the variable <em>i</em> to be either defined or un... | [
{
"answer_id": 124196,
"author": "Michael Deardeuff",
"author_id": 4931,
"author_profile": "https://Stackoverflow.com/users/4931",
"pm_score": 5,
"selected": true,
"text": "(i == 10) i.equals(TEN) i.equals(j) null null null"
},
{
"answer_id": 124202,
"author": "tim_yates",
... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124148",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8683/"
] |
124,166 | <p>What is the best way to make a <code><div></code> fade away after a given amount of time (without using some of the JavaScript libraries available).</p>
<p>I'm looking for a very lightweight solution not requiring a huge JavaScript library to be sent to the browser.</p>
| [
{
"answer_id": 124294,
"author": "Graeme Perrow",
"author_id": 1821,
"author_profile": "https://Stackoverflow.com/users/1821",
"pm_score": 2,
"selected": false,
"text": "var TimeToFade = 200.0;\n\nfunction fade(eid)\n{\n var element = document.getElementById(eid);\n if(element == n... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124166",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16440/"
] |
124,167 | <p>Please explain to me why the very last <code>echo</code> statement is blank? I expect that <code>XCODE</code> is incremented in the while loop to a value of 1:</p>
<pre><code>#!/bin/bash
OUTPUT="name1 ip ip status" # normally output of another command with multi line output
if [ -z "$OUTPUT" ]
then
echo "S... | [
{
"answer_id": 124211,
"author": "Kent Fredric",
"author_id": 15614,
"author_profile": "https://Stackoverflow.com/users/15614",
"pm_score": 2,
"selected": false,
"text": " #!/bin/bash\n OUTPUT=\"name1 ip ip status\"\n+export XCODE=0;\n if [ -z \"$OUTPUT\" ]\n----\n\n ... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124167",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14230/"
] |
124,170 | <p>I'm doing a sitemap producer in Object Pascal and need a good function or lib to emulate the <a href="http://php.net/manual/en/function.parse-url.php" rel="nofollow noreferrer">parse_url</a> function on PHP.</p>
<p>Does anyone know of any good ones?</p>
| [
{
"answer_id": 124200,
"author": "Armin Ronacher",
"author_id": 19990,
"author_profile": "https://Stackoverflow.com/users/19990",
"pm_score": 0,
"selected": false,
"text": " ^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?\n 12 3 4 5 6 7 8 ... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124170",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8167/"
] |
124,171 | <p>I'd be very grateful if you could compare the winning <a href="http://www.cs.ucsd.edu/~sorourke/wf.pl" rel="nofollow noreferrer">O’Rourke's Perl solution</a> to <a href="http://effbot.org/zone/wide-finder.htm" rel="nofollow noreferrer">Lundh's Python solution</a>, as I don't know Perl good enough to understand what'... | [
{
"answer_id": 13300315,
"author": "Mario Roy",
"author_id": 1810910,
"author_profile": "https://Stackoverflow.com/users/1810910",
"pm_score": 2,
"selected": false,
"text": "Script....: baseline1 baseline2 wf_mce1 wf_mce2 wf_mce3 wf_mmap\nCold cache: 1.674 1.370 1.252 ... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124171",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20310/"
] |
124,205 | <p>I would like to do a lookup of tables in my SQL Server 2005 Express database based on table name. In <code>MySQL</code> I would use <code>SHOW TABLES LIKE "Datasheet%"</code>, but in <code>T-SQL</code> this throws an error (it tries to look for a <code>SHOW</code> stored procedure and fails).</p>
<p>Is this possibl... | [
{
"answer_id": 124216,
"author": "Mladen",
"author_id": 21404,
"author_profile": "https://Stackoverflow.com/users/21404",
"pm_score": 3,
"selected": false,
"text": "select * from information_schema.columns\nwhere table_name = 'yourTableName'\n information_schema"
},
{
"answer_id"... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124205",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21402/"
] |
124,210 | <p>In order to help my team write testable code, I came up with this simple list of best practices for making our C# code base more testable. (Some of the points refer to limitations of Rhino Mocks, a mocking framework for C#, but the rules may apply more generally as well.) Does anyone have any best practices that th... | [
{
"answer_id": 125600,
"author": "zadam",
"author_id": 410357,
"author_profile": "https://Stackoverflow.com/users/410357",
"pm_score": 3,
"selected": false,
"text": "// ShouldExpectMethodCallWithVariable\nint value = 5;\nvar mock = new Mock<IFoo>();\n\nmock.Expect(x => x.Duplicate(value)... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124210",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10475/"
] |
124,240 | <p>Been using <strong>PHP/MySQL</strong> for a little while now, and I'm wondering if there are any specific advantages (performance or otherwise) to using <code>mysql_fetch_object()</code> vs <code>mysql_fetch_assoc()</code> / <code>mysql_fetch_array()</code>.</p>
| [
{
"answer_id": 124262,
"author": "Steve Paulo",
"author_id": 9414,
"author_profile": "https://Stackoverflow.com/users/9414",
"pm_score": 2,
"selected": false,
"text": "mysql_fetch_array() mysql_fetch_object()"
},
{
"answer_id": 124270,
"author": "rami",
"author_id": 9629,... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124240",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2227/"
] |
124,250 | <p>Anybody know a nice way to restart a mongrel cluster via capistrano in a "rolling" style, eg, one mongrel at a time. Would be great to have a bit of wait time in there as well for each, to let the mongrel load the rails app up as well. </p>
<p>I've done some searching, and haven't found too much, so looking for hel... | [
{
"answer_id": 124962,
"author": "Dan Udey",
"author_id": 21450,
"author_profile": "https://Stackoverflow.com/users/21450",
"pm_score": 1,
"selected": false,
"text": "#!/bin/bash\nfor PIDFILE in /tmp/mongrel.*; do\n PID=$(cat ${PIDFILE})\n kill ${PID}\n ${RUN_MONGREL_CMD} ${PID}\n sl... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124250",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14873/"
] |
124,266 | <p>What is an elegant way to sort objects in PHP? I would love to accomplish something similar to this.</p>
<pre><code>$sortedObjectArary = sort($unsortedObjectArray, $Object->weight);
</code></pre>
<p>Basically specify the array I want to sort as well as the field I want to sort on. I looked into multidimensional... | [
{
"answer_id": 124283,
"author": "Kent Fredric",
"author_id": 15614,
"author_profile": "https://Stackoverflow.com/users/15614",
"pm_score": 7,
"selected": true,
"text": "function compare_weights($a, $b) { \n if($a->weight == $b->weight) {\n return 0;\n } \n return ($a->we... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8880/"
] |
124,269 | <p>What is the simplest SOAP example using Javascript?</p>
<p>To be as useful as possible, the answer should:</p>
<ul>
<li>Be functional (in other words actually work)</li>
<li>Send at least one parameter that can be set elsewhere in the code</li>
<li>Process at least one result value that can be read elsewhere in th... | [
{
"answer_id": 124663,
"author": "Constantin",
"author_id": 20310,
"author_profile": "https://Stackoverflow.com/users/20310",
"pm_score": 1,
"selected": false,
"text": "<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n xmlns:xsd=\"http://www.w3.org/20... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124269",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15985/"
] |
124,291 | <p>I need to do some simple timezone calculation in mod_perl. DateTime isn't an option. What I need to do is easily accomplished by setting $ENV{TZ} and using localtime and POSIX::mktime, but under a threaded MPM, I'd need to make sure only one thread at a time was mucking with the environment. (I'm not concerned ab... | [
{
"answer_id": 125010,
"author": "pjf",
"author_id": 19422,
"author_profile": "https://Stackoverflow.com/users/19422",
"pm_score": 1,
"selected": false,
"text": "{\n local $ENV{TZ} = whatever_I_need_it_to_be();\n\n # Do calculations here.\n}\n local Paul\n"
},
{
"answer_id"... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124291",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17389/"
] |
124,295 | <p>Everything I have read says that when making a managed stored procedure, to right click in Visual Studio and choose deploy. That works fine, but what if I want to deploy it outside of Visual Studio to a number of different locations? I tried creating the assembly with the dll the project built in SQL, and while it d... | [
{
"answer_id": 124528,
"author": "Kevin Crumley",
"author_id": 1818,
"author_profile": "https://Stackoverflow.com/users/1818",
"pm_score": 4,
"selected": true,
"text": "create assembly [YOUR_ASSEMBLY]\nfrom '(PATH_TO_DLL)'\n create proc [YOUR_FUNCTION]\nas\nexternal name [YOUR_ASSEMBLY].... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124295",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4539/"
] |
124,296 | <p>Let's say that I have a widget that displays summary information about how many posts or comments that I have on a site.</p>
<p>What's the cleanest way to persist this information across controllers? </p>
<p>Including the instance variables in the application controller seems like a bad idea. Having a before filte... | [
{
"answer_id": 128626,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "def load_sidebar\n @posts = Post.find(:all)\nend\n before_filter :load_sidebar, :only => [ :index ] #load from application.rb... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124296",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
124,299 | <p>So I'm using hibernate and working with an application that manages time.
What is the best way to deal with times in a 24 hour clock?</p>
<p>I do not need to worry about TimeZone issues at the beginning of this application but it would be best to ensure that this functionality is built in at the beginning.</p>
<p>... | [
{
"answer_id": 125025,
"author": "davetron5000",
"author_id": 3029,
"author_profile": "https://Stackoverflow.com/users/3029",
"pm_score": 0,
"selected": false,
"text": "java.util.Date Calendar @Temporal"
}
] | 2008/09/23 | [
"https://Stackoverflow.com/questions/124299",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1129162/"
] |
124,313 | <p>I'm working on an application that is supposed to create products (like shipping insurance policies) when PayPal Instant Payment Notifications are received. Unfortunately, PayPal sometimes sends duplicate notifications. Furthermore, there is another third-party that is performing web-service updates simultaneously... | [
{
"answer_id": 124763,
"author": "Constantin",
"author_id": 20310,
"author_profile": "https://Stackoverflow.com/users/20310",
"pm_score": 2,
"selected": true,
"text": "insert into Policy begin tran (read committed)\n\n/* tentatively insert new Policy */\ninsert Policy\n\n/* attach Packag... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16454/"
] |
124,325 | <p>I'm trying to grasp the concept of .NET Generics and actually use them in my own code but I keep running into a problem.</p>
<p>Can someone try to explain to me why the following setup does not compile?</p>
<pre><code>public class ClassA
{
ClassB b = new ClassB();
public void MethodA<T>(IRepo<T&g... | [
{
"answer_id": 124388,
"author": "Smashery",
"author_id": 14902,
"author_profile": "https://Stackoverflow.com/users/14902",
"pm_score": 0,
"selected": false,
"text": "Class<B> Class<A> T ITypeEntity IRepo<T> IRepo<ITypeEntity>"
},
{
"answer_id": 124418,
"author": "Nick Randel... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124325",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/384853/"
] |
124,326 | <p>JavaScript allows functions to be treated as objects--if you first define a variable as a function, you can subsequently add properties to that function. How do you do the reverse, and add a function to an "object"?</p>
<p>This works:</p>
<pre><code>var foo = function() { return 1; };
foo.baz = "qqqq";
</code></p... | [
{
"answer_id": 124359,
"author": "Shog9",
"author_id": 811,
"author_profile": "https://Stackoverflow.com/users/811",
"pm_score": -1,
"selected": false,
"text": "var three = 3;\nthree = 4;\nassert(three === 3);\n // assigns an anonymous function to the variable \"foo\"\nvar foo = function... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124326",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11543/"
] |
124,332 | <p>I am using the RSA Algorithm for encryption/decryption, and in order to decrypt the files you have to deal with some pretty big values. More specifically, things like </p>
<pre><code>P = C^d % n
= 62^65 % 133
</code></pre>
<p>Now that is really the only calculations that ill be doing. I have tried using Matt McC... | [
{
"answer_id": 124345,
"author": "Paige Ruten",
"author_id": 813,
"author_profile": "https://Stackoverflow.com/users/813",
"pm_score": 2,
"selected": false,
"text": "#include <stdio.h>\n\nint main(void) {\n printf(\"%d\\n\", sizeof(long long));\n\n return 0;\n}\n"
},
{
"ans... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124332",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
124,336 | <p>I'm not sure if this is a strange thing to do or not, or if it is some how code smell...but I was wondering if there was a way (some sort of oop pattern would be nice) to "cast" a base type to a form of its derived type. I know this makes little sense as the derived type will have additional functionality that the p... | [
{
"answer_id": 124429,
"author": "Derek Park",
"author_id": 872,
"author_profile": "https://Stackoverflow.com/users/872",
"pm_score": 3,
"selected": false,
"text": "SomeBaseClass class = new SomeBaseClass();\nSomeDerivedClass derClass = (SomeDerivedClass)class; \n class SomeDerivedClass ... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124336",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13688/"
] |
124,358 | <p>Although my question might seem abstract I hope it's not. Suppose I develop an application, an ASP.NET MVC site and later I am tasked to build an Winforms client for this application how much and how can I reuse from the existing application?</p>
<p>I defined the models, I defined controllers and views. They all wo... | [
{
"answer_id": 124452,
"author": "zadam",
"author_id": 410357,
"author_profile": "https://Stackoverflow.com/users/410357",
"pm_score": 4,
"selected": true,
"text": "public interface IRuntimeContext\n{\n void TransferTo(string destination);\n}\n public class AspNetRuntimeContext\n{\n pu... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124358",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1796/"
] |
124,360 | <p>I know there are several plugins that do asynchronous processing. Which one is the best one and why?</p>
<p>The ones I know about are:</p>
<ul>
<li><a href="http://backgroundrb.rubyforge.org/" rel="noreferrer">BackgrounDRb</a></li>
</ul>
| [
{
"answer_id": 125968,
"author": "Olly",
"author_id": 1174,
"author_profile": "https://Stackoverflow.com/users/1174",
"pm_score": 3,
"selected": false,
"text": "script/runner"
}
] | 2008/09/23 | [
"https://Stackoverflow.com/questions/124360",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9594/"
] |
124,374 | <p>I need to recursively search directories and replace a string (say <a href="http://development:port/URI" rel="nofollow noreferrer">http://development:port/URI</a>) with another (say <a href="http://production:port/URI" rel="nofollow noreferrer">http://production:port/URI</a>) in all the files where ever it's found. ... | [
{
"answer_id": 124404,
"author": "toolkit",
"author_id": 3295,
"author_profile": "https://Stackoverflow.com/users/3295",
"pm_score": 4,
"selected": true,
"text": "find . -type f | xargs grep -l development | xargs perl -i.bak -p -e 's(http://development)(http://production)g'\n find . -ty... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124374",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1408/"
] |
124,378 | <p>I'm running my workstation on Server 2008 and a few servers in Hyper-V VM's on that server. I connect to my corporate LAN using VPN from the main OS (the host) but my VM's aren't seeing the servers in the corporate LAN. Internet and local access to my home network work fine. Each of the VMs has one virtual network a... | [
{
"answer_id": 129541,
"author": "mattlant",
"author_id": 14642,
"author_profile": "https://Stackoverflow.com/users/14642",
"pm_score": 2,
"selected": false,
"text": "route ADD 10.0.0.0 MASK 255.0.0.0 192.168.1.30\n"
}
] | 2008/09/23 | [
"https://Stackoverflow.com/questions/124378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21420/"
] |
124,392 | <p>I am calling a PHP-Script belonging to a MySQL/PHP web application using FF3. I run XAMPP on localhost. All I get is this:</p>
<blockquote>
<p>Connection Interrupted<br>
The connection to the server was reset while the page was loading.
The network link was interrupted while negotiating a connection. Please t... | [
{
"answer_id": 6134271,
"author": "DevByStarlight",
"author_id": 735533,
"author_profile": "https://Stackoverflow.com/users/735533",
"pm_score": 3,
"selected": false,
"text": "Parent: child process exited with status 3221225477 -- Restarting set GLOBAL storage_engine='InnoDb';"
},
{
... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124392",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
124,396 | <p>Is it the case that the entire restful verb is under a single all encompassing transaction? That is to say, if I raise a Error in the validation or callbacks at any point in the handling of a UPDATE, DELETE, or CREATE operation, is every database operation that I may have performed in previous callbacks also rolled ... | [
{
"answer_id": 124489,
"author": "Michael Deardeuff",
"author_id": 4931,
"author_profile": "https://Stackoverflow.com/users/4931",
"pm_score": 1,
"selected": false,
"text": "Student.transaction do\n Course.transaction do\n course.enroll(student)\n student.units += course.units\n ... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21317/"
] |
124,405 | <p>I am writing some code and trying to speed it up using SIMD intrinsics SSE2/3. My code is of such nature that I need to load some data into an XMM register and act on it many times. When I'm looking at the assembler code generated, it seems that GCC keeps flushing the data back to the memory, in order to reload som... | [
{
"answer_id": 72275425,
"author": "Peter Cordes",
"author_id": 224132,
"author_profile": "https://Stackoverflow.com/users/224132",
"pm_score": 0,
"selected": false,
"text": "int gcc -O3 -march=native -O0 register int foo; register __m128 bar;"
}
] | 2008/09/23 | [
"https://Stackoverflow.com/questions/124405",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18308/"
] |
124,411 | <p>But here's an example:</p>
<pre><code>Dim desiredType as Type
if IsNumeric(desiredType) then ...
</code></pre>
<p><strong>EDIT:</strong> I only know the Type, not the Value as a string.</p>
<p>Ok, so unfortunately I have to cycle through the TypeCode.</p>
<p>But this is a nice way to do it:</p>
<pre><code> if (... | [
{
"answer_id": 124443,
"author": "Jon Limjap",
"author_id": 372,
"author_profile": "https://Stackoverflow.com/users/372",
"pm_score": 5,
"selected": false,
"text": "Type.GetTypeCode() TypeCode typeCode = Type.GetTypeCode(desiredType);\n\nif (typeCode == TypeCode.Double || typeCode == Typ... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14484/"
] |
124,417 | <p>I want to write a query like this:</p>
<pre><code>SELECT o.OrderId, MAX(o.NegotiatedPrice, o.SuggestedPrice)
FROM Order o
</code></pre>
<p>But this isn't how the <code>MAX</code> function works, right? It is an aggregate function so it expects a single parameter and then returns the MAX of all rows. </p>
<p>Do... | [
{
"answer_id": 124441,
"author": "Scott Langham",
"author_id": 11898,
"author_profile": "https://Stackoverflow.com/users/11898",
"pm_score": 7,
"selected": false,
"text": "SELECT\n o.OrderId,\n CASE WHEN o.NegotiatedPrice > o.SuggestedPrice THEN o.NegotiatedPrice \n ELSE o.Suggeste... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124417",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14101/"
] |
124,453 | <p>I know this is a subjective question, but why does Hibernate seem to be designed for short lived sessions? Generally in my apps I create DAOs to abstract my data layer, but since I can't predict how the entity objects are going to be used some of its collections are lazy loaded, or I should say fail to load once th... | [
{
"answer_id": 125021,
"author": "davetron5000",
"author_id": 3029,
"author_profile": "https://Stackoverflow.com/users/3029",
"pm_score": 2,
"selected": false,
"text": "lazy=false"
}
] | 2008/09/23 | [
"https://Stackoverflow.com/questions/124453",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2443/"
] |
124,455 | <p>I've got a Lua program that seems to be slower than it ought to be. I suspect the issue is that I'm adding values to an associative array one at a time and the table has to allocate new memory each time. </p>
<p>There did seem to be a table.setn function, but it fails under Lua 5.1.3:</p>
<pre><code>stdin:1: 'se... | [
{
"answer_id": 124536,
"author": "Mike G.",
"author_id": 18901,
"author_profile": "https://Stackoverflow.com/users/18901",
"pm_score": 3,
"selected": false,
"text": "void lua_createtable (lua_State *L, int narr, int nrec);\n"
},
{
"answer_id": 146902,
"author": "Community",
... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1438/"
] |
124,457 | <p>I have limited experience with .net. My app throws an error this.dateTimeFormat is undefined which I tracked down to a known ajax bug. The workaround posted said to:</p>
<p>"Register the following as a startup script:"</p>
<pre><code>Sys.CultureInfo.prototype._getAbbrMonthIndex = function(value)
{
if (!this._upp... | [
{
"answer_id": 124470,
"author": "Wayne",
"author_id": 8236,
"author_profile": "https://Stackoverflow.com/users/8236",
"pm_score": 4,
"selected": true,
"text": "string str = @\"Sys.CultureInfo.prototype._getAbbrMonthIndex = function(value) { \n if (!this._upperAbbrMonths) { \n ... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5234/"
] |
124,462 | <p>Is there a way in PHP to make asynchronous HTTP calls? I don't care about the response, I just want to do something like <code>file_get_contents()</code>, but not wait for the request to finish before executing the rest of my code. This would be super useful for setting off "events" of a sort in my application, or t... | [
{
"answer_id": 124557,
"author": "Internet Friend",
"author_id": 18037,
"author_profile": "https://Stackoverflow.com/users/18037",
"pm_score": 5,
"selected": false,
"text": "wget exec('bash -c \"wget -O (url goes here) > /dev/null 2>&1 &\"');\n"
},
{
"answer_id": 2258567,
"au... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124462",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10680/"
] |
124,492 | <p>I need a short code snippet to get a directory listing from an HTTP server.</p>
<p>Thanks</p>
| [
{
"answer_id": 124498,
"author": "Brian R. Bondy",
"author_id": 3153,
"author_profile": "https://Stackoverflow.com/users/3153",
"pm_score": 3,
"selected": false,
"text": "HtmlDocument doc = new HtmlDocument();\ndoc.Load(strURL);\nforeach(HtmlNode link in doc.DocumentElement.SelectNodes(\... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124492",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
124,585 | <p>This question is specifically related to overriding the equals() method for objects with a large number of fields. First off, let me say that this large object cannot be broken down into multiple components without violating OO principles, so telling me "no class should have more than x fields" won't help. </p>
<... | [
{
"answer_id": 124598,
"author": "Hank Gay",
"author_id": 4203,
"author_profile": "https://Stackoverflow.com/users/4203",
"pm_score": 5,
"selected": true,
"text": "equals() equals() hashCode()"
},
{
"answer_id": 124640,
"author": "Jason Cohen",
"author_id": 4926,
"aut... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124585",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/402777/"
] |
124,604 | <p>Coming from a Perl 5 background, what are the advantages of moving to Perl 6 or Python?</p>
| [
{
"answer_id": 4294670,
"author": "user502515",
"author_id": 502515,
"author_profile": "https://Stackoverflow.com/users/502515",
"pm_score": 2,
"selected": false,
"text": "s/whatever/somethingelse/e"
}
] | 2008/09/23 | [
"https://Stackoverflow.com/questions/124604",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7598/"
] |
124,606 | <p>I have a function that I use called sqlf(), it emulates prepared statements. For instance I can do things like:</p>
<pre>
$sql = sqlf("SELECT * FROM Users WHERE name= :1 AND email= :2",'Big "John"','bj@example.com') ;
</pre>
<p>For various reasons, I cannot use prepared statements, but I would like to emulate the... | [
{
"answer_id": 124635,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https://Stackoverflow.com/users/14860",
"pm_score": 0,
"selected": false,
"text": "SELECT * FROM Users WHERE id IN ();\nSELECT * FROM Users WHERE a = 7 AND id IN ();\nSELECT * FROM Users WHERE id IN () O... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124606",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20512/"
] |
124,615 | <p>Lets say I have a class that stores user information complete with getters and setters, and it is populated with data from an XML file. How would I iterate over all of the instances of that class like you would do with java beans and tag libraries?</p>
| [
{
"answer_id": 124783,
"author": "Ta01",
"author_id": 7280,
"author_profile": "https://Stackoverflow.com/users/7280",
"pm_score": 0,
"selected": false,
"text": "List<YourClass> myObjects = SomeMagicMethodThatGetsAllInstancesOfThatClassAndAddsThemtoTheCollection();\nforeach (YourClass ins... | 2008/09/23 | [
"https://Stackoverflow.com/questions/124615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2066/"
] |
124,630 | <p>I'm currently turning an array of pixel values (originally created with a java.awt.image.PixelGrabber object) into an Image object using the following code:</p>
<pre><code>public Image getImageFromArray(int[] pixels, int width, int height) {
MemoryImageSource mis = new MemoryImageSource(width, height, pixels, 0... | [
{
"answer_id": 124957,
"author": "Steve Moyer",
"author_id": 17008,
"author_profile": "https://Stackoverflow.com/users/17008",
"pm_score": 2,
"selected": false,
"text": "// Capture whole screen\nRectangle region = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize());\nBufferedImage... | 2008/09/24 | [
"https://Stackoverflow.com/questions/124630",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1119/"
] |
124,638 | <p>I found an article on getting active tcp/udp connections on a machine.</p>
<p><a href="http://www.codeproject.com/KB/IP/iphlpapi.aspx" rel="nofollow noreferrer">http://www.codeproject.com/KB/IP/iphlpapi.aspx</a></p>
<p>My issue however is I need to be able to determine active connections remotely - to see if a par... | [
{
"answer_id": 124641,
"author": "Brian R. Bondy",
"author_id": 3153,
"author_profile": "https://Stackoverflow.com/users/3153",
"pm_score": 2,
"selected": false,
"text": "telnet google.com 80\n"
}
] | 2008/09/24 | [
"https://Stackoverflow.com/questions/124638",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.