qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
190,738 | <p>With the following piece of code:</p>
<pre><code>typedef struct
{
char fileName[ 1024];
time_t deleteTime;
} file_item_t;
....
....
setEntry(char *fileName)
{
file_item_t file;
memset( &file, 0x00, sizeof( file_item_t ));
memcpy( file.fileName,
fileName,
size... | [
{
"answer_id": 190744,
"author": "Timbo",
"author_id": 1810,
"author_profile": "https://Stackoverflow.com/users/1810",
"pm_score": 1,
"selected": false,
"text": "fileName"
},
{
"answer_id": 191710,
"author": "ephemient",
"author_id": 20713,
"author_profile": "https://... | 2008/10/10 | [
"https://Stackoverflow.com/questions/190738",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
190,740 | <p>I thought I understood what the default method does to a hash... </p>
<p>Give a default value for a key if it doesn't exist:</p>
<pre><code>irb(main):001:0> a = {}
=> {}
irb(main):002:0> a.default = 4
=> 4
irb(main):003:0> a[8]
=> 4
irb(main):004:0> a[9] += 1
=> 5
irb(main):005:0> a
=>... | [
{
"answer_id": 190801,
"author": "Aaron Hinni",
"author_id": 12086,
"author_profile": "https://Stackoverflow.com/users/12086",
"pm_score": 7,
"selected": true,
"text": "Hash.default default a = {}\na.default = [] # set default to a new empty Array\na[8] << 9 # a[8] doesn't e... | 2008/10/10 | [
"https://Stackoverflow.com/questions/190740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26094/"
] |
190,748 | <p>You can, obviously, put a variable declaration in a for loop:</p>
<pre><code>for (int i = 0; ...
</code></pre>
<p>and I've noticed that you can do the same thing in if and switch statements as well:</p>
<pre><code>if ((int i = f()) != 0) ...
switch (int ch = stream.get()) ...
</code></pre>
<p>But when I try to ... | [
{
"answer_id": 190768,
"author": "workmad3",
"author_id": 16035,
"author_profile": "https://Stackoverflow.com/users/16035",
"pm_score": 4,
"selected": false,
"text": "label:\n{ //start of condition scope\n T t = x;\n if (t) {\n statement\n goto label;\n }\n}\n"
}... | 2008/10/10 | [
"https://Stackoverflow.com/questions/190748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4086/"
] |
190,755 | <p>Any suggestion how I can document my Perl code? What do you use and what tools are available to help me?</p>
<p>Which module do you use to convert pod to html?</p>
| [
{
"answer_id": 190903,
"author": "brian d foy",
"author_id": 2766176,
"author_profile": "https://Stackoverflow.com/users/2766176",
"pm_score": 7,
"selected": true,
"text": "-m perldoc -m Foo::Bar\n -l perldoc -l Foo::Bar\n"
}
] | 2008/10/10 | [
"https://Stackoverflow.com/questions/190755",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10523/"
] |
190,759 | <p>I'm looking for way to PHP to detect if a script was run from a manual invocation on a shell (me logging in and running it), or if it was run from the crontab entry.</p>
<p>I have various maintenance type scripts written in php that i have set to run in my crontab. Occasionally, and I need to run them manually ahea... | [
{
"answer_id": 190778,
"author": "Till",
"author_id": 2859,
"author_profile": "https://Stackoverflow.com/users/2859",
"pm_score": 3,
"selected": false,
"text": "$_ENV"
},
{
"answer_id": 190790,
"author": "Adam Hopkinson",
"author_id": 12280,
"author_profile": "https:/... | 2008/10/10 | [
"https://Stackoverflow.com/questions/190759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/314/"
] |
190,775 | <p>I need to take a paragraph of text and extract from it a list of "tags". Most of this is quite straight forward. However I need some help now stemming the resulting word list to avoid duplicates. Example: Community / Communities</p>
<p>I've used an implementation of Porter Stemmer algorithm (I'm writing in PHP by ... | [
{
"answer_id": 615251,
"author": "Kaarel",
"author_id": 12547,
"author_profile": "https://Stackoverflow.com/users/12547",
"pm_score": 6,
"selected": false,
"text": "morpha $ cat test.txt \nCommunity\nCommunities\n$ cat test.txt | ./morpha -uc\nCommunity\nCommunity\n"
}
] | 2008/10/10 | [
"https://Stackoverflow.com/questions/190775",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15318/"
] |
190,776 | <p>How do you build and use dynamic sql in a MySQL stored procedure?</p>
| [
{
"answer_id": 190962,
"author": "Jason Stevenson",
"author_id": 13368,
"author_profile": "https://Stackoverflow.com/users/13368",
"pm_score": 7,
"selected": true,
"text": "mysql> PREPARE stmt FROM \n -> 'select count(*) \n -> from information_schema.schemata \n -> where schema_... | 2008/10/10 | [
"https://Stackoverflow.com/questions/190776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3747/"
] |
190,813 | <p>Does anyone know if dbunit has the power to export specific data from multiple tables at once based on a sql statement, as can be done by using dbunit's QueryDataSet class to export data from a single table based on a sql statement, <a href="http://www.dbunit.org/faq.html#extract" rel="nofollow noreferrer">as can be... | [
{
"answer_id": 47978860,
"author": "Ilya Tkachev",
"author_id": 6318650,
"author_profile": "https://Stackoverflow.com/users/6318650",
"pm_score": 0,
"selected": false,
"text": "QueryDataSet partialDataSet = new QueryDataSet(connection);\npartialDataSet.addTable(tableName1, \"select * fro... | 2008/10/10 | [
"https://Stackoverflow.com/questions/190813",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
190,818 | <p>I want to create an <code>NSOpenPanel</code> that can select any kind of file, so I do this</p>
<pre><code>NSOpenPanel* panel = [NSOpenPanel openPanel];
if([panel runModalForTypes:nil] == NSOKButton) {
// process files here
}
</code></pre>
<p>which lets me select all files <em>except</em> symbolic links.<b... | [
{
"answer_id": 191978,
"author": "Mecki",
"author_id": 15809,
"author_profile": "https://Stackoverflow.com/users/15809",
"pm_score": 1,
"selected": false,
"text": "NSOpenPanel * panel = [NSOpenPanel openPanel];\n[panel setCanChooseDirectories:YES];\nif ([panel runModalForTypes:nil] == NS... | 2008/10/10 | [
"https://Stackoverflow.com/questions/190818",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22147/"
] |
190,819 | <p>For a new project with Flash I was looking for something along the lines of standard libraries for basic programming needs, along the lines of Python or Ruby standard libraries. But the only thing I found was a dead project on Sourceforge.</p>
<p>Thus is there no standard library for flash? Does everyone reinvent t... | [
{
"answer_id": 190856,
"author": "hasseg",
"author_id": 4111,
"author_profile": "https://Stackoverflow.com/users/4111",
"pm_score": 2,
"selected": false,
"text": "flash.* mx.*"
}
] | 2008/10/10 | [
"https://Stackoverflow.com/questions/190819",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15124/"
] |
190,830 | <p>I am responsible for the User Interface of an application written completely in Visual C++ using MFC and some third-part controls. I would like to use C# (WinForms or even better WPF) to improve the application look&feel.</p>
<p>I would like some advices about how to do it. Links, articles, examples...</p>
<p... | [
{
"answer_id": 190856,
"author": "hasseg",
"author_id": 4111,
"author_profile": "https://Stackoverflow.com/users/4111",
"pm_score": 2,
"selected": false,
"text": "flash.* mx.*"
}
] | 2008/10/10 | [
"https://Stackoverflow.com/questions/190830",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14053/"
] |
190,833 | <p>I want to intercept a request in a filter/servlet and add a few parameters to it. However, the request does not expose a 'setParameter' method and the parameter map when manipulated throws an error saying it is locked. Is there an alternative I can try?</p>
| [
{
"answer_id": 190859,
"author": "Panagiotis Korros",
"author_id": 19331,
"author_profile": "https://Stackoverflow.com/users/19331",
"pm_score": 3,
"selected": false,
"text": "public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, Se... | 2008/10/10 | [
"https://Stackoverflow.com/questions/190833",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16485/"
] |
190,840 | <p>I have found some libraries or web services in PHP that does the job. The problem is that the conversion is done when the page is fully loaded, I would like to <strong>convert the page to PDF</strong> <strong>after some content dynamically added via AJAX</strong> in onload event. </p>
<p>Thank you very much,
Omar</... | [
{
"answer_id": 190889,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 3,
"selected": false,
"text": "document.getElementsByTagName('html')[0].innerHTML"
}
] | 2008/10/10 | [
"https://Stackoverflow.com/questions/190840",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26779/"
] |
190,852 | <p>See code: </p>
<pre><code>var file1 = "50.xsl";
var file2 = "30.doc";
getFileExtension(file1); //returns xsl
getFileExtension(file2); //returns doc
function getFileExtension(filename) {
/*TODO*/
}
</code></pre>
| [
{
"answer_id": 190864,
"author": "p4bl0",
"author_id": 12043,
"author_profile": "https://Stackoverflow.com/users/12043",
"pm_score": 2,
"selected": false,
"text": "return filename.replace(/\\.([a-zA-Z0-9]+)$/, \"$1\");\n $1"
},
{
"answer_id": 190878,
"author": "Tom",
"aut... | 2008/10/10 | [
"https://Stackoverflow.com/questions/190852",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2138/"
] |
190,876 | <p>I have a few combo-boxes and double spin boxes on my Qt Dialog. Now I need a "ResetToDefault" item on a menu that comes up when you right click on the widget (spin box or combo box).</p>
<p>How do i get it. Is there some way I can have a custom menu that comes up on right click or Is there a way i can add items to... | [
{
"answer_id": 190895,
"author": "PierreBdR",
"author_id": 7136,
"author_profile": "https://Stackoverflow.com/users/7136",
"pm_score": 4,
"selected": true,
"text": "addAction contextMenuPolicy Qt::ActionsContextMenu QAction *reset_act = new QAction(\"Reset to default\");\nmywidget->addAc... | 2008/10/10 | [
"https://Stackoverflow.com/questions/190876",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11212/"
] |
190,890 | <p>does it matter at all what order the <code><link></code> or <code><script></code> or <code><meta></code> tags are in in the <code><head></head></code>?</p>
<p>(daft question but one of those things i've never given any thought to until now.)</p>
| [
{
"answer_id": 190899,
"author": "Joe Lencioni",
"author_id": 18986,
"author_profile": "https://Stackoverflow.com/users/18986",
"pm_score": 5,
"selected": false,
"text": "h1 { color: #f00; }\n h1 { color: #00f; }\n h1 #00f"
},
{
"answer_id": 190902,
"author": "Adhip Gupta",
... | 2008/10/10 | [
"https://Stackoverflow.com/questions/190890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26107/"
] |
190,908 | <p>When you tap a row in a <code>UITableView</code>, the row is highlighted and selected. Is it possible to disable this so tapping a row does nothing?</p>
| [
{
"answer_id": 191245,
"author": "Martin Gordon",
"author_id": 2481,
"author_profile": "https://Stackoverflow.com/users/2481",
"pm_score": 11,
"selected": false,
"text": "UITableViewCell cell.selectionStyle = UITableViewCellSelectionStyleNone;\n [cell setSelectionStyle:UITableViewCellSel... | 2008/10/10 | [
"https://Stackoverflow.com/questions/190908",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2183/"
] |
190,912 | <p>I've run into a problem where I'm getting two printouts of my /etc/motd file on Gentoo Linux. sshd is doing one of the printouts, and I can toggle that by configuring /etc/ssh/sshd_config, but I can't find out who's printing the second copy. I can't disable sshd from printing out the motd due to an audit requireme... | [
{
"answer_id": 682647,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "session required pam_env.so\n#session optional pam_lastlog.so\nsession include sy... | 2008/10/10 | [
"https://Stackoverflow.com/questions/190912",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9816/"
] |
190,914 | <p>I have a DataGridView which shows the content of a DataTable.</p>
<p>I want to set the backcolor of a row based on the value of a cell in this row.</p>
<p>Note that the cell in question is in a column which is not displayed in the DataGridView (Visible=False).</p>
| [
{
"answer_id": 190932,
"author": "Jason Stevenson",
"author_id": 13368,
"author_profile": "https://Stackoverflow.com/users/13368",
"pm_score": 2,
"selected": false,
"text": "protected void Page_Load(object sender, EventArgs e)\n{\n GridView g1 = new GridView();\n g1.RowDataBound +=... | 2008/10/10 | [
"https://Stackoverflow.com/questions/190914",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15928/"
] |
190,915 | <p>I am writing a UDF for Excel 2007 which I want to pass a table to, and then reference parts of that table in the UDF. So, for instance my table called "Stock" may look something like this:</p>
<blockquote>
<p>Name Cost &nbs... | [
{
"answer_id": 190968,
"author": "Mike Woodhouse",
"author_id": 1060,
"author_profile": "https://Stackoverflow.com/users/1060",
"pm_score": 2,
"selected": true,
"text": "Public Function TotalPrice(table As Range) As Variant\n\nDim row As Long, col As Long\nDim total As Double\n\n For ... | 2008/10/10 | [
"https://Stackoverflow.com/questions/190915",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/214/"
] |
190,936 | <p>When I type 'from' (in a <a href="http://en.wikipedia.org/wiki/Language_Integrated_Query" rel="nofollow noreferrer">LINQ</a> query) after importing <a href="http://msdn.microsoft.com/en-us/library/system.linq.aspx" rel="nofollow noreferrer">System.Linq namespace</a>, it is understood as a keyword. How does this magi... | [
{
"answer_id": 190948,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 4,
"selected": true,
"text": "var qry = from cust in db.Customers\n where cust.IsActive\n select cust;\n var qry = db.Customers.Wh... | 2008/10/10 | [
"https://Stackoverflow.com/questions/190936",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26788/"
] |
190,937 | <p>I'm looking for a way to create an "it will look cool" effect for a full screen WPF application I'm working on - a "screen glint" effect that animates or moves across the whole screen to give off a shiny display experience. I'm thinking of creating a large rectangle with a highlighted-gradient and transparent backgr... | [
{
"answer_id": 218326,
"author": "Johan Danforth",
"author_id": 6415,
"author_profile": "https://Stackoverflow.com/users/6415",
"pm_score": 4,
"selected": true,
"text": "<Window\n xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n xmlns:x=\"http://schemas.microso... | 2008/10/10 | [
"https://Stackoverflow.com/questions/190937",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6415/"
] |
190,940 | <p>I've just set up a new build server with the Windows 2008 .NET 3.5 SDK, and for some reason it hasn't installed c:\Program Files\Common Files\Microsoft Shared\TextTemplating so I can't run t4 templates on it. I had a look at the install options in add/remove programs and every single option is checked. </p>
<p>Any ... | [
{
"answer_id": 218326,
"author": "Johan Danforth",
"author_id": 6415,
"author_profile": "https://Stackoverflow.com/users/6415",
"pm_score": 4,
"selected": true,
"text": "<Window\n xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n xmlns:x=\"http://schemas.microso... | 2008/10/10 | [
"https://Stackoverflow.com/questions/190940",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2086/"
] |
190,956 | <p>Just wanted to get an idea for ways (web) developers get round the short fall of (most) WYSIWYG editors, whereby the users that are editing the text aren't always HTML literate enough to produce good/great results.</p>
<p>In the past we have resigned ourselves to either locking down the editor or simply not supplyi... | [
{
"answer_id": 218326,
"author": "Johan Danforth",
"author_id": 6415,
"author_profile": "https://Stackoverflow.com/users/6415",
"pm_score": 4,
"selected": true,
"text": "<Window\n xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n xmlns:x=\"http://schemas.microso... | 2008/10/10 | [
"https://Stackoverflow.com/questions/190956",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17540/"
] |
190,963 | <p><a href="https://stackoverflow.com/questions/189925/password-encryption-in-iphone-apps">This question discusses encrypting data on the iPhone</a> using the crypt() function. As an alternative, is there a keychain on the iPhone and if so, what code would I use to access it in order to store login details and then ret... | [
{
"answer_id": 7314271,
"author": "AlBeebe",
"author_id": 172361,
"author_profile": "https://Stackoverflow.com/users/172361",
"pm_score": 3,
"selected": false,
"text": "#import <Security/Security.h>\n\n// -------------------------------------------------------------------------\n-(NSStri... | 2008/10/10 | [
"https://Stackoverflow.com/questions/190963",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2183/"
] |
190,988 | <p>I have to use the <strong>XMLHttp object in classic ASP</strong> in order to send some data to another server via HTTP from server to server:</p>
<pre><code>sURL = SOME_URL
Set oXHttp = Server.CreateObject("Msxml2.XMLHTTP")
oXHttp.open "POST", sURL, false
oXHttp.setRequestHeader "Content-Type", "application/x-ww... | [
{
"answer_id": 7314271,
"author": "AlBeebe",
"author_id": 172361,
"author_profile": "https://Stackoverflow.com/users/172361",
"pm_score": 3,
"selected": false,
"text": "#import <Security/Security.h>\n\n// -------------------------------------------------------------------------\n-(NSStri... | 2008/10/10 | [
"https://Stackoverflow.com/questions/190988",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6461/"
] |
190,996 | <p>I am working on a collection MATLAB, Java, and C/C++ components that all inter-operate, but have distinctly different compilation/installation steps. We currently don't compile anything for MATLAB, use maven2 for our Java build and unit tests, and use autotools for our C/C++ build and unit tests.</p>
<p>I would li... | [
{
"answer_id": 7314271,
"author": "AlBeebe",
"author_id": 172361,
"author_profile": "https://Stackoverflow.com/users/172361",
"pm_score": 3,
"selected": false,
"text": "#import <Security/Security.h>\n\n// -------------------------------------------------------------------------\n-(NSStri... | 2008/10/10 | [
"https://Stackoverflow.com/questions/190996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5840/"
] |
190,999 | <p>I just started experimenting with SVG in web pages, and I discovered that it is only possible to add SVG images into HTML using <code><object /></code> tags, not <code><img /></code> like I would have expected. Most of the time, I add graphics to web pages through CSS because they are part of the present... | [
{
"answer_id": 191012,
"author": "Neall",
"author_id": 619,
"author_profile": "https://Stackoverflow.com/users/619",
"pm_score": 2,
"selected": false,
"text": ".putapicturehere:before {\n content: url(mysvgfile.svg);\n}\n"
},
{
"answer_id": 1042791,
"author": "Erik Dahlström... | 2008/10/10 | [
"https://Stackoverflow.com/questions/190999",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/392/"
] |
191,004 | <p>I'm trying to dynamically hide certain DIV's when a print (or print preview) occurs from the browser.</p>
<p>I can easily differentiate statically by having two style sheets, one for normal and one for print media:
</p>
<p>But I need to go one step further and hide some elements dynamically when the print style s... | [
{
"answer_id": 191234,
"author": "Marcus Downing",
"author_id": 1000,
"author_profile": "https://Stackoverflow.com/users/1000",
"pm_score": 2,
"selected": false,
"text": "<div id='div19' class='noprint'>\n ...\n</div>\n .noprint {\n display: none;\n}\n document.getElementById('div19').... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191004",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26793/"
] |
191,010 | <pre><code>dir(re.compile(pattern))
</code></pre>
<p>does not return pattern as one of the lists's elements. Namely it returns:</p>
<pre><code>['__copy__', '__deepcopy__', 'findall', 'finditer', 'match', 'scanner', 'search', 'split', 'sub', 'subn']
</code></pre>
<p>According to the manual, it is supposed to contain... | [
{
"answer_id": 191029,
"author": "PierreBdR",
"author_id": 7136,
"author_profile": "https://Stackoverflow.com/users/7136",
"pm_score": 8,
"selected": true,
"text": "getattr __getattr__ dir __dict__ __getattr__ inspect"
},
{
"answer_id": 191679,
"author": "Moe",
"author_id... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/985/"
] |
191,013 | <p>Is it possible to have an anonymous type implement an interface?</p>
<p>I've got a piece of code that I would like to work, but don't know how to do this.</p>
<p>I've had a couple of answers that either say no, or create a class that implements the interface construct new instances of that. This isn't really ideal... | [
{
"answer_id": 191124,
"author": "ICR",
"author_id": 214,
"author_profile": "https://Stackoverflow.com/users/214",
"pm_score": 4,
"selected": false,
"text": "public class Test\n{\n class DummyInterfaceImplementor : IDummyInterface\n {\n public string A { get; set; }\n ... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191013",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5932/"
] |
191,020 | <p>How do I set the initial width of a QDockWidget?</p>
<p>I have implemented the sizeHint function but what next?</p>
| [
{
"answer_id": 191078,
"author": "Marius",
"author_id": 1585,
"author_profile": "https://Stackoverflow.com/users/1585",
"pm_score": 3,
"selected": false,
"text": "void Applicotion::readSettings() {\n QSettings settings(\"Company Name\", \"Application Name\");\n settings.beginGroup(\"Li... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191020",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24459/"
] |
191,023 | <p>When Windows Internet Properties -> Connections -> LAN Settings -> Automatic Configuration is set to "Automatically detect settings" how does Windows actually determine/discover what the settings are? Is it a network broadcast or some kind of targeted query to a server configured somewhere in the registry, or someth... | [
{
"answer_id": 191041,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 7,
"selected": true,
"text": "GET http://wpad/wpad.dat"
}
] | 2008/10/10 | [
"https://Stackoverflow.com/questions/191023",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5193/"
] |
191,039 | <p>In deploying to a new (Solaris 9) environment recently, one of the steps was to copy a set of files and directories to their new location and then to apply the group UID bit (using "chmod -R g+s") to all files in the directory tree giving a mode of -rwxr-s--- to everything. The result was that none of our shell scri... | [
{
"answer_id": 191782,
"author": "ephemient",
"author_id": 20713,
"author_profile": "https://Stackoverflow.com/users/20713",
"pm_score": 3,
"selected": false,
"text": "g+s g+s umask 0007 0027"
}
] | 2008/10/10 | [
"https://Stackoverflow.com/questions/191039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26790/"
] |
191,056 | <p>I want a checkbox on a web page. When I click it, it sends an ajax request to the server. When the server replies, I want the checkbox to change. I can fix everything except the fact that the checkbox immediately changes state when clicked. </p>
| [
{
"answer_id": 191100,
"author": "tloach",
"author_id": 14092,
"author_profile": "https://Stackoverflow.com/users/14092",
"pm_score": 0,
"selected": false,
"text": "checkbox.checked=NOT checkbox.checked"
},
{
"answer_id": 192704,
"author": "Parand",
"author_id": 13055,
... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191056",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
191,062 | <p>Could someone please explain to me how the current python webframworks fit together?</p>
<p>The three I've heard of are CherryPy, TurboGears and Pylons. However I'm confused because TurboGears seems to use CherryPy as the 'Controller' (although isn't CherryPy a framework in in it's own right?), and TurbGears 2 is g... | [
{
"answer_id": 58336089,
"author": "Babu Reddy",
"author_id": 2016203,
"author_profile": "https://Stackoverflow.com/users/2016203",
"pm_score": 0,
"selected": false,
"text": "from fastapi import FastAPI\n\napp = FastAPI()\n\n\n@app.get(\"/\")\ndef read_root():\n return {\"Hello\": \"W... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191062",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
191,066 | <p>I am working on a Software Project that needs to be translated into 30 languages. This means that changing any string incurs into a relatively high cost. Additionally, translation does not happen overnight, because the translation package needs to be worked by different translators, so this might take a while.</p>... | [
{
"answer_id": 277508,
"author": "Elijah",
"author_id": 33611,
"author_profile": "https://Stackoverflow.com/users/33611",
"pm_score": 2,
"selected": false,
"text": "\npublic final class l7d {\n...normal junk\n\n/**\n * Reference to the localized strings resource bundle.\n */\npublic stat... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191066",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2309/"
] |
191,070 | <p>What code generation tools are built-in to vs.net 2008 or are officially available via Microsoft?</p>
<p>I know of:</p>
<ul>
<li>Entity Framework</li>
<li>sqlmetal</li>
</ul>
<p>What else is there?</p>
<p>Ideally i'm looking for something that will generate from an existing database schema.</p>
| [
{
"answer_id": 277508,
"author": "Elijah",
"author_id": 33611,
"author_profile": "https://Stackoverflow.com/users/33611",
"pm_score": 2,
"selected": false,
"text": "\npublic final class l7d {\n...normal junk\n\n/**\n * Reference to the localized strings resource bundle.\n */\npublic stat... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191070",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
191,082 | <p>Ok sorry this might seem like a dumb question but I cannot figure this thing out :</p>
<p>I am trying to parse a string and simply want to check whether it only contains the following characters : '0123456789dD+ '</p>
<p>I have tried many things but just can't get to figure out the right regex to use!</p>
<pre><c... | [
{
"answer_id": 191104,
"author": "Manu",
"author_id": 2133,
"author_profile": "https://Stackoverflow.com/users/2133",
"pm_score": 4,
"selected": true,
"text": "@\"^[0-9dD+ ]+$\"\n ^ $ +"
},
{
"answer_id": 191110,
"author": "Coincoin",
"author_id": 42,
"author_profile"... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191082",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25152/"
] |
191,093 | <p>As recently as several years ago, the developers actually made the builds that went to clients. This was obviously a disaster for reasons too numerous to list.</p>
<p>Then when we started to learn the errors of our ways, we looked for a way to auto-build the entire application on a dedicated build machine. The cu... | [
{
"answer_id": 191244,
"author": "Ben Straub",
"author_id": 1319,
"author_profile": "https://Stackoverflow.com/users/1319",
"pm_score": 2,
"selected": false,
"text": "build"
}
] | 2008/10/10 | [
"https://Stackoverflow.com/questions/191093",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/241536/"
] |
191,143 | <p>I'm getting ready to start a new project and I've been researching the entity framework. My question is what is the best strategy for validating the entities? Other projects I've worked on have used attributes for most of the validation, but obviously this is not possible in the entity framework. Is the only way to ... | [
{
"answer_id": 4176794,
"author": "Rob",
"author_id": 133250,
"author_profile": "https://Stackoverflow.com/users/133250",
"pm_score": 1,
"selected": false,
"text": "public abstract class ValidationObjectContext : ObjectContext{\n ...\n\n public override int SaveChanges(SaveOptions ... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191143",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17744/"
] |
191,153 | <p>What are your usage of delegates in C#?</p>
| [
{
"answer_id": 191219,
"author": "Santiago Palladino",
"author_id": 12791,
"author_profile": "https://Stackoverflow.com/users/12791",
"pm_score": 0,
"selected": false,
"text": "storage.Store(conditions, Download(item))\n storage.Store(conditions, (item) => Download(item))\n"
},
{
... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191153",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24975/"
] |
191,157 | <p>What exactly is the difference between the <code>window.onload</code> event and the <code>onload</code> event of the <code>body</code> tag? when do I use which and how should it be done correctly?</p>
| [
{
"answer_id": 191221,
"author": "Dr. Bob",
"author_id": 12182,
"author_profile": "https://Stackoverflow.com/users/12182",
"pm_score": 1,
"selected": false,
"text": "<body onload=\"\">"
},
{
"answer_id": 191227,
"author": "Mark Biek",
"author_id": 305,
"author_profile... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191157",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2133/"
] |
191,159 | <p>You'd like to call a stored proc on MS SQL that has a parameter type of TIMESTAMP within T-SQL, not ADO.NET using a VARCHAR value (e.g. '0x0000000002C490C8').</p>
<p>What do you do?</p>
<p>UPDATE:
This is where you have a "Timestamp" value coming at you but exists only as VARCHAR. (Think OUTPUT variable on anothe... | [
{
"answer_id": 191169,
"author": "John Rudy",
"author_id": 14048,
"author_profile": "https://Stackoverflow.com/users/14048",
"pm_score": 2,
"selected": false,
"text": "EXEC usp_MyProc @myParam=0x0000000002C490C8\n select top 10 convert(varchar, ts) from foo\n select convert(timestamp, '0... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/307/"
] |
191,160 | <p>I am creating a new build process for a DotNet project which is to be held in Subversion.</p>
<p>For each dll/exe that I compile (via Nant) I would like to include 2 additional attibutes in the dlls that are built.</p>
<p>I already understand the workings of the 'asminfo' nant task. But I need help retrieving the ... | [
{
"answer_id": 191199,
"author": "EggyBach",
"author_id": 15475,
"author_profile": "https://Stackoverflow.com/users/15475",
"pm_score": 3,
"selected": true,
"text": "<xmlpeek file=\"out.xml\" xpath=\"/info/entry/url\" property=\"svn.url\" />\n"
},
{
"answer_id": 191238,
"auth... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191160",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11356/"
] |
191,179 | <p>How can I find the font that the user has set in their Windows Display Properties using C# in .NET?</p>
<p>I want to display a form using the fonts that the user has selected. The fonts I want are those selected in the Windows Display Properties form for 3D-objects, menus and window title bars. But I cannot find a ... | [
{
"answer_id": 191199,
"author": "EggyBach",
"author_id": 15475,
"author_profile": "https://Stackoverflow.com/users/15475",
"pm_score": 3,
"selected": true,
"text": "<xmlpeek file=\"out.xml\" xpath=\"/info/entry/url\" property=\"svn.url\" />\n"
},
{
"answer_id": 191238,
"auth... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191179",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26808/"
] |
191,201 | <p>I do all my coding in vim and am quite happy with it (so, please, no "use a different editor" responses), but have an ongoing annoyance in that the smartindent feature wants to not indent comments beginning with # at all. e.g., I want</p>
<pre><code> # Do something
$x = $x + 1;
if ($y) {
# Do something el... | [
{
"answer_id": 191230,
"author": "Ben Hoffstein",
"author_id": 4482,
"author_profile": "https://Stackoverflow.com/users/4482",
"pm_score": 3,
"selected": false,
"text": "set cindent\nset cinkeys=0{,0},!^F,o,O,e \" default is: 0{,0},0),:,0#,!^F,o,O,e\n"
},
{
"answer_id": 191267,
... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191201",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18914/"
] |
191,206 | <p>I need to programmatically get a list of running applications as shown in the "Applications" tab inside the Windows Task Manager using PowerShell or VBScript.</p>
<p>All I could find so far is how to list processes using VBScript and WMI.</p>
| [
{
"answer_id": 191343,
"author": "stahler",
"author_id": 26811,
"author_profile": "https://Stackoverflow.com/users/26811",
"pm_score": 4,
"selected": true,
"text": "Set Word = CreateObject(\"Word.Application\")\nSet Tasks = Word.Tasks\nFor Each Task in Tasks\n If Task.Visible Then Wscr... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191206",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26810/"
] |
191,208 | <p>I have a table in SQL server that has the normal tree structure of Item_ID, Item_ParentID.
Suppose I want to iterate and get all CHILDREN of a particular Item_ID (at any level).</p>
<p>Recursion seems an intuitive candidate for this problem and I can write an SQL Server function to do this. </p>
<p>Will this affec... | [
{
"answer_id": 191220,
"author": "JosephStyons",
"author_id": 672,
"author_profile": "https://Stackoverflow.com/users/672",
"pm_score": 0,
"selected": false,
"text": "SELECT\n SOME_FIELDS\nFROM\n MASTER_TABLE MT\n ,CHILD_TABLE CT\nWHERE CT.PARENT_ID = MT.ITEM_ID\n"
},
{
"answer... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191208",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13370/"
] |
191,209 | <p>By default, copying from the command prompt will prompt you to overwrite files that already exist in the target location.</p>
<p>You can add "/Y" to say "Yes to all" replacements.</p>
<p>But how can you say "No to all" ?</p>
<p>In other words, I want to copy everything from one directory that does <strong>not</st... | [
{
"answer_id": 191239,
"author": "Adam Davis",
"author_id": 2915,
"author_profile": "https://Stackoverflow.com/users/2915",
"pm_score": 3,
"selected": false,
"text": "2.3 By comparison with the file in destination\n\n The switches in this group select files based on the\n compari... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191209",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/672/"
] |
191,215 | <p>How do I stop a Java process gracefully in Linux and Windows?</p>
<p>When does <code>Runtime.getRuntime().addShutdownHook</code> get called, and when does it not?</p>
<p>What about finalizers, do they help here?</p>
<p>Can I send some sort of signal to a Java process from a shell?</p>
<p>I am looking for prefera... | [
{
"answer_id": 191961,
"author": "jsight",
"author_id": 1432,
"author_profile": "https://Stackoverflow.com/users/1432",
"pm_score": 7,
"selected": true,
"text": "SIGTERM System.exit(int) kill -9 kill -SIGKILL"
},
{
"answer_id": 208809,
"author": "Ma99uS",
"author_id": 203... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191215",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20390/"
] |
191,233 | <p>Often WinDbg will enter a state where it is <strong>*Busy*</strong> performing an operation. </p>
<p>Often this is due to some mistake I made trying to <em>dt some_variable_itll_never_find</em> or setting a break point somewhere without symbols or the 1000's of other mistakes I make fumbling around this tool.</p>
... | [
{
"answer_id": 9576204,
"author": "EdChum",
"author_id": 704848,
"author_profile": "https://Stackoverflow.com/users/704848",
"pm_score": 4,
"selected": false,
"text": "Ctrl+Break \n Ctrl+c\n"
}
] | 2008/10/10 | [
"https://Stackoverflow.com/questions/191233",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3655/"
] |
191,248 | <p>I'm experimenting with <a href="http://en.wikipedia.org/wiki/Latent_Dirichlet_allocation" rel="noreferrer">Latent Dirichlet Allocation</a> for topic disambiguation and assignment, and I'm looking for advice.</p>
<ol>
<li>Which program is the "best", where best is some combination of easiest to use, best prior estim... | [
{
"answer_id": 71241775,
"author": "Платформа Игр",
"author_id": 17389005,
"author_profile": "https://Stackoverflow.com/users/17389005",
"pm_score": 0,
"selected": false,
"text": "def plot_top_words(model, feature_names, n_top_words, title):\nfig, axes = plt.subplots(2, 5, figsize=(30, 1... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191248",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15842/"
] |
191,250 | <p>I have the following code fragment that starts a <a href="http://en.wikipedia.org/wiki/Google_Earth" rel="nofollow noreferrer">Google Earth</a> process using a hardcoded path:</p>
<pre><code>var process =
new Process
{
StartInfo =
{
//TODO: Get location of... | [
{
"answer_id": 191281,
"author": "Iain",
"author_id": 5993,
"author_profile": "https://Stackoverflow.com/users/5993",
"pm_score": 2,
"selected": false,
"text": "Process.Start(kmlPath);\n"
},
{
"answer_id": 194238,
"author": "ICR",
"author_id": 214,
"author_profile": "... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191250",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5993/"
] |
191,253 | <p>I have a client who is still using Visual Studio 6 for building production systems. They write multi-threaded systems that use STL and run on mutli-processor machines. </p>
<p>Occasionally when they change the spec of or increase the load on one of their server machines they get 'weird' difficult to reproduce error... | [
{
"answer_id": 191303,
"author": "Ben Straub",
"author_id": 1319,
"author_profile": "https://Stackoverflow.com/users/1319",
"pm_score": 0,
"selected": false,
"text": "/clr"
}
] | 2008/10/10 | [
"https://Stackoverflow.com/questions/191253",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7925/"
] |
191,260 | <p>We've recently completed phase 1 of a ASP.Net website in English and French. We went with using resource files to store language specific strings, but because the site used ASP.Net AJAX and javascript heavily we rigged up a solution to pass the right files through the ASP.Net pipeline where we could catch "tokens" a... | [
{
"answer_id": 191754,
"author": "Joe Scylla",
"author_id": 25771,
"author_profile": "https://Stackoverflow.com/users/25771",
"pm_score": 2,
"selected": true,
"text": "<script scr=\"var/scripts/en_GB-76909c49e9222ec2bb2f45e0a3c8baef80deb665.js\"></script>\n"
},
{
"answer_id": 115... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191260",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22152/"
] |
191,291 | <p>How would you manually trigger additional team builds from a team build? For example, when we were in CC.Net other builds would trigger if certain builds were successful. The second build could either be projects that use this component or additional, long running test libraries for the same component. </p>
| [
{
"answer_id": 191898,
"author": "Martin Woodward",
"author_id": 6438,
"author_profile": "https://Stackoverflow.com/users/6438",
"pm_score": 3,
"selected": true,
"text": " <Target Name=\"AfterEndToEndIteration\">\n\n <GetBuildProperties TeamFoundationServerUrl=\"$(TeamFoundationServe... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191291",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18264/"
] |
191,306 | <p>I want to force the current execution line to a specific line in the same function, possibly skipping intermediate lines. All my old school debuggers had this feature, but I can't find it in eclipse. Is there a way to do it without changing code?</p>
| [
{
"answer_id": 42689490,
"author": "Ciro Santilli OurBigBook.com",
"author_id": 895245,
"author_profile": "https://Stackoverflow.com/users/895245",
"pm_score": 0,
"selected": false,
"text": "i = 1 #include <stdio.h>\n\nint main(void) {\n int i;\n i = 0; /* Break here. */\n i = 1... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191306",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12386/"
] |
191,312 | <p>If you launch Emacs using the <code>-nw</code> flag to force a console session (rather than an X session if you have X windows running), how do you get to the menu?</p>
<p>There are some items held in the menus that are infrequently-enough used on my part that I don't recall the escape or control sequence to do them... | [
{
"answer_id": 191344,
"author": "JesperE",
"author_id": 13051,
"author_profile": "https://Stackoverflow.com/users/13051",
"pm_score": 2,
"selected": false,
"text": "M-x menu-bar-mode\n"
},
{
"answer_id": 191377,
"author": "Chris Conway",
"author_id": 1412,
"author_pr... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191312",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4418/"
] |
191,329 | <p>I am working through a book which gives examples of Ranges being converted to equivalent arrays using their "to_a" methods</p>
<p>When i run the code in irb I get the following warning</p>
<pre><code> warning: default `to_a' will be obsolete
</code></pre>
<p>What is the the correct alternative to using to_a?</p>
... | [
{
"answer_id": 191357,
"author": "Daniel Lucraft",
"author_id": 11951,
"author_profile": "https://Stackoverflow.com/users/11951",
"pm_score": 6,
"selected": false,
"text": "irb> (1..4).to_a\n=> [1, 2, 3, 4]\n irb> 1..4.to_a\n(irb):1: warning: default `to_a' will be obsolete\nArgumentErro... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191329",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24773/"
] |
191,335 | <p>Is there a way to generate random number on Windows by reading from a file or pseudo file or character special file, the way that can be done on Linux by reading from <a href="http://en.wikipedia.org/wiki/Urandom#Linux" rel="nofollow noreferrer">/dev/random</a>? Not asking about various crypto API, but whether there... | [
{
"answer_id": 20825047,
"author": "cxxl",
"author_id": 1045800,
"author_profile": "https://Stackoverflow.com/users/1045800",
"pm_score": 1,
"selected": false,
"text": "rand_s() RtlGenRandom rand_s()"
}
] | 2008/10/10 | [
"https://Stackoverflow.com/questions/191335",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5764/"
] |
191,339 | <p>I have a <code>DataGridView</code> bound to a <code>DataView</code>. The grid can be sorted by the user on any column.</p>
<p>I add a row to the grid by calling NewRow on the <code>DataView</code>'s underlying <code>DataTable</code>, then adding it to the <code>DataTable</code>'s Rows collection. How can I select t... | [
{
"answer_id": 209841,
"author": "Brendan Kendrick",
"author_id": 13473,
"author_profile": "https://Stackoverflow.com/users/13473",
"pm_score": 0,
"selected": false,
"text": "Dim myRecentItemID As Integer = 3\n\nFor Each row As GridViewRow In gvIndividuals.Rows\n Dim drv As DataRowVie... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191339",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3012/"
] |
191,342 | <p>Is there a succinct way to retrieve a random record from a sql server table? </p>
<p>I would like to randomize my unit test data, so am looking for a simple way to select a random id from a table. In English, the select would be "Select one id from the table where the id is a random number between the lowest id i... | [
{
"answer_id": 191348,
"author": "Sklivvz",
"author_id": 7028,
"author_profile": "https://Stackoverflow.com/users/7028",
"pm_score": 8,
"selected": true,
"text": "SELECT TOP 1 * FROM table ORDER BY NEWID()\n NEWID() SELECT TOP 1 * FROM table ORDER BY RAND() RAND()"
},
{
"answer_i... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191342",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10693/"
] |
191,351 | <p>I am trying to rename all the files present in a Windows directory using <strong>FOR</strong> command as follows at the command prompt:</p>
<pre><code>for %1 in (*.*) do ren %1 test%1
</code></pre>
<p>E.g. This renames a file <strong>enc1.ctl</strong> to <strong>testenc1.ctl</strong> <strong>enc2.ctl</strong> to... | [
{
"answer_id": 191420,
"author": "David Nehme",
"author_id": 14167,
"author_profile": "https://Stackoverflow.com/users/14167",
"pm_score": 2,
"selected": true,
"text": "for /L %1 in (1,1,10) do ren enc%1.ctl test%1.ctl\n"
},
{
"answer_id": 191451,
"author": "akalenuk",
"a... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191351",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2759376/"
] |
191,359 | <p>I need to convert a bunch of files to utf-8 in Python, and I have trouble with the "converting the file" part.</p>
<p>I'd like to do the equivalent of:</p>
<pre><code>iconv -t utf-8 $file > converted/$file # this is shell code
</code></pre>
<p>Thanks!</p>
| [
{
"answer_id": 191403,
"author": "DzinX",
"author_id": 18745,
"author_profile": "https://Stackoverflow.com/users/18745",
"pm_score": 7,
"selected": true,
"text": "import codecs\nBLOCKSIZE = 1048576 # or some other, desired size in bytes\nwith codecs.open(sourceFileName, \"r\", \"your-sou... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191359",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2797/"
] |
191,364 | <p>Trying to debug an issue with a server and my only log file is a 20GB log file (with no timestamps even! Why do people use <code>System.out.println()</code> as logging? In production?!)</p>
<p>Using grep, I've found an area of the file that I'd like to take a look at, line 347340107.</p>
<p>Other than doing someth... | [
{
"answer_id": 191397,
"author": "itsmatt",
"author_id": 7862,
"author_profile": "https://Stackoverflow.com/users/7862",
"pm_score": 5,
"selected": false,
"text": "tail -n +347340107 filename | head -n 100\n"
},
{
"answer_id": 191440,
"author": "mweerden",
"author_id": 42... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4249/"
] |
191,368 | <p>I can reset FPU's CTRL registers with this:</p>
<p><a href="http://support.microsoft.com/kb/326219" rel="nofollow noreferrer">http://support.microsoft.com/kb/326219</a></p>
<p>But how can I save current registers, and restore them later?</p>
<p>It's from .net code..</p>
<p>What I'm doing, is from Delphi calling ... | [
{
"answer_id": 191454,
"author": "Shog9",
"author_id": 811,
"author_profile": "https://Stackoverflow.com/users/811",
"pm_score": 3,
"selected": false,
"text": "_controlfp() _controlfp()"
},
{
"answer_id": 198658,
"author": "Jim",
"author_id": 22722,
"author_profile": ... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3308/"
] |
191,376 | <p>I am still trying to wrap my head around design patterns and for the second time I'm coming up against the same problem that seems to be crying out for a pattern solution. </p>
<p>I have an accounts system with multiple account types. We have restaurant, hotel, service_provider, and consumer account types. Im sure ... | [
{
"answer_id": 192666,
"author": "Steven A. Lowe",
"author_id": 9345,
"author_profile": "https://Stackoverflow.com/users/9345",
"pm_score": 0,
"selected": false,
"text": "User <<--> Account\nAccount <<--> AccountType\nAccount <--> Profile\nProfile <<--> ProfileType\n"
}
] | 2008/10/10 | [
"https://Stackoverflow.com/questions/191376",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
191,383 | <p>For PHP</p>
<p>I have a date I want line wrapped.</p>
<p>I have $date = '2008-09-28 9:19 pm';
I need the first space replaced with a br
to become </p>
<pre><code>2008-09-28<br>9:19 pm
</code></pre>
<p>If it wasn't for that second space before PM, I would just str_replace() it. </p>
| [
{
"answer_id": 192666,
"author": "Steven A. Lowe",
"author_id": 9345,
"author_profile": "https://Stackoverflow.com/users/9345",
"pm_score": 0,
"selected": false,
"text": "User <<--> Account\nAccount <<--> AccountType\nAccount <--> Profile\nProfile <<--> ProfileType\n"
}
] | 2008/10/10 | [
"https://Stackoverflow.com/questions/191383",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13704/"
] |
191,390 | <p>I'm about to inherit a rather large Java enterprise project that has a large amount of third party dependencies. There is at least seventy JARs included and some of them would seem to be unused e.g. spring.jar which I know isn't used.</p>
<p>It seems that over the years as various developers have touched upon the c... | [
{
"answer_id": 191672,
"author": "Adam Crume",
"author_id": 25498,
"author_profile": "https://Stackoverflow.com/users/25498",
"pm_score": 1,
"selected": false,
"text": "[Opened C:\\Program Files\\Java\\jre1.6.0_04\\lib\\rt.jar]\n[Loaded java.util.regex.Pattern$Single from C:\\Program Fil... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191390",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1915/"
] |
191,399 | <p>How do I change the Read-only file attribute for each file in a folder using c#?</p>
<p>Thanks</p>
| [
{
"answer_id": 191423,
"author": "Jeffrey L Whitledge",
"author_id": 10174,
"author_profile": "https://Stackoverflow.com/users/10174",
"pm_score": 4,
"selected": false,
"text": "foreach (string fileName in System.IO.Directory.GetFiles(path))\n{\n System.IO.FileInfo fileInfo = new Syst... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191399",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
191,400 | <p>I have around 25 worksheets in my workbook (Excel spreadsheet).
Is there a way I can protect all the 25 worksheets in single click ? or this feature is not available and I will have to write a VBA code to accomplish this. I need very often to protect all sheets and unprotect all sheets and doing individually is time... | [
{
"answer_id": 191416,
"author": "Ben Hoffstein",
"author_id": 4482,
"author_profile": "https://Stackoverflow.com/users/4482",
"pm_score": 5,
"selected": true,
"text": "Dim ws as Worksheet\nDim pwd as String\n\npwd = \"\" ' Put your password here\nFor Each ws In Worksheets\n ws.Protec... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191400",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17266/"
] |
191,404 | <p>I have been asking myself this question for a long time now. Thought of posting it. C# doesn't support Multiple Inheritance(this is the fact). All classes created in C# derive out of 'Object' class(again a fact).</p>
<p>So if C# does not support Multiple inheritance, then how are we able to extend a class even thou... | [
{
"answer_id": 191450,
"author": "David Basarab",
"author_id": 2469,
"author_profile": "https://Stackoverflow.com/users/2469",
"pm_score": 0,
"selected": false,
"text": "public class A : B\n{\n\n}\n\npublic class B : C\n{\n public int BProperty { get; set; }\n}\n\npublic class C\n{\n ... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191404",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21995/"
] |
191,413 | <p>I'm just starting to wean myself from ASP.NET UpdatePanels. I'm using jQuery and jTemplates to bind the results of a web service to a grid, and everything works fine. </p>
<p>Here's the thing: I'm trying to show a spinner GIF while the table is being refreshed (à la UpdateProgress in ASP.NET) I've got it all workin... | [
{
"answer_id": 191677,
"author": "David",
"author_id": 26144,
"author_profile": "https://Stackoverflow.com/users/26144",
"pm_score": 3,
"selected": false,
"text": "setTimeout(\"document.images['BusyImage'].src=document.images['BusyImage'].src\",10);\n"
},
{
"answer_id": 191761,
... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/239663/"
] |
191,421 | <p>I am using SQL Server 2005. I want to constrain the values in a column to be unique, while allowing NULLS.</p>
<p>My current solution involves a unique index on a view like so:</p>
<pre><code>CREATE VIEW vw_unq WITH SCHEMABINDING AS
SELECT Column1
FROM MyTable
WHERE Column1 IS NOT NULL
CREATE UNIQ... | [
{
"answer_id": 191729,
"author": "onedaywhen",
"author_id": 15354,
"author_profile": "https://Stackoverflow.com/users/15354",
"pm_score": 6,
"selected": false,
"text": "CREATE TABLE dupNulls (\npk int identity(1,1) primary key,\nX int NULL,\nnullbuster as (case when X is null then pk el... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191421",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20959/"
] |
191,428 | <p>Is it possible to change the language of system messages from PostgreSQL?</p>
<p>In MSSQL for instance this is possible with the SQL statement <a href="http://msdn.microsoft.com/en-us/library/ms174398.aspx" rel="noreferrer">SET LANGUAGE</a>.</p>
| [
{
"answer_id": 191958,
"author": "Milen A. Radev",
"author_id": 15785,
"author_profile": "https://Stackoverflow.com/users/15785",
"pm_score": 6,
"selected": false,
"text": "SET lc_messages TO 'en_US.UTF-8';\n"
},
{
"answer_id": 36998716,
"author": "user1",
"author_id": 23... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191428",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3565/"
] |
191,429 | <p>I'm trying to use <a href="http://www.glish.com/css/9.asp" rel="nofollow noreferrer">this</a> layout with two 50% column width instead. But it seems that when the right columns reaches its 'min-width', it goes under the left column. Is there any way to use the 'shim' technique to set a min-width to the wrapper so bo... | [
{
"answer_id": 191540,
"author": "Robert K",
"author_id": 24950,
"author_profile": "https://Stackoverflow.com/users/24950",
"pm_score": 1,
"selected": false,
"text": ".left, .right { width:50%; float: left; }\n.right { float: right; }\n.minwidth { min-width: 500px; display: block; height... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191429",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25371/"
] |
191,463 | <p>This seems like the most basic question in the world, but damned if I can find an answer.</p>
<p>Is there a keyboard shortcut, either native to Visual Studio or through Code Rush or other third-party plug-in, to wrap the current selection with an HTML tag? I'm tired of typing the opening tag, cutting the misplaced ... | [
{
"answer_id": 2879206,
"author": "Bradley Mountford",
"author_id": 302103,
"author_profile": "https://Stackoverflow.com/users/302103",
"pm_score": 6,
"selected": false,
"text": "ctrl-k ctrl-s Surround with... File New XML File Save Save as All Files (*.*) File name .snippet Save <CodeSn... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191463",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1923/"
] |
191,482 | <p>I'm trying to build a similar 'slider' as demoed here <a href="http://ui.jquery.com/repository/real-world/product-slider/" rel="nofollow noreferrer">http://ui.jquery.com/repository/real-world/product-slider/</a> but I'm trying to use interior divs inside of the list items (<code><li></code>). it seems as if t... | [
{
"answer_id": 196871,
"author": "Rudi",
"author_id": 22830,
"author_profile": "https://Stackoverflow.com/users/22830",
"pm_score": 2,
"selected": false,
"text": " <div class=\"sliderGallery\">\n <div class=\"div-that-gets-cropped\">\n <div class=\"text-and-ima... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191482",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8534/"
] |
191,483 | <p>I want to check the login status of a user through an ajax request. Depending wether the user is logged in I want to display either the username/password input or the username. Currently the request is sent on body.onload and a prgoress indicator is shown until the response arrives. Is there a better way?</p>
<hr>
... | [
{
"answer_id": 191516,
"author": "Neall",
"author_id": 619,
"author_profile": "https://Stackoverflow.com/users/619",
"pm_score": 0,
"selected": false,
"text": "$(document).ready(function() {\n // The DOM is fully loaded now, but images might still be loading.\n});\n"
},
{
"answe... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191483",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2133/"
] |
191,490 | <p>I want to display the results of a searchquery in a website with a title and a short description. The short description should be a small part of the page which holds the searchterm. What i want to do is:
1 strip tags in page
2 find first position of seachterm
3 from that position, going back find the beginning (if ... | [
{
"answer_id": 191543,
"author": "acrosman",
"author_id": 24215,
"author_profile": "https://Stackoverflow.com/users/24215",
"pm_score": 1,
"selected": false,
"text": "$offset = stripos( strrev(substr($string, $searchlocation)), '.');\n$startloc = $searchlocation - $offset;\n$finalstring ... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191490",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21238/"
] |
191,493 | <p>I often need to design a dialog in Delphi/C++Builder that allows various properties of an object to be modified, and the code to use it typically looks like this.</p>
<pre><code>Dialog.Edit1.Text := MyObject.Username;
Dialog.Edit2.Text := MyObject.Password;
// ... many more of the same
if (Dialog.ShowModal = mrOk)... | [
{
"answer_id": 191610,
"author": "akalenuk",
"author_id": 25459,
"author_profile": "https://Stackoverflow.com/users/25459",
"pm_score": 0,
"selected": false,
"text": "if (Dialog.ShowModal = mrOk) \nbegin\n with MyObject do\n begin\n Username := Dialog.Edit1.Text;\n Password := Di... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191493",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1737/"
] |
191,503 | <p>I'm using the following code to loop through a directory to print out the names of the files. However, not all of the files are displayed. I have tried using <strong>clearstatcache</strong> with no effect.</p>
<pre><code> $str = '';
$ignore = array('.', '..');
$dh = @opendir( $path );
if ($dh === FA... | [
{
"answer_id": 191535,
"author": "Jacco",
"author_id": 22674,
"author_profile": "https://Stackoverflow.com/users/22674",
"pm_score": 2,
"selected": true,
"text": "break continue"
},
{
"answer_id": 191545,
"author": "Greg",
"author_id": 24181,
"author_profile": "https:... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/840/"
] |
191,528 | <p>I found this:</p>
<p><a href="http://www.evolt.org/failover-database-connection-with-php-mysql" rel="nofollow noreferrer">http://www.evolt.org/failover-database-connection-with-php-mysql</a></p>
<p>and similar examples. But is there a better way?</p>
<p>I am thinking along the lines of the <a href="http://www.mic... | [
{
"answer_id": 191581,
"author": "Till",
"author_id": 2859,
"author_profile": "https://Stackoverflow.com/users/2859",
"pm_score": 2,
"selected": false,
"text": "if (fails) { connect to another }"
},
{
"answer_id": 191835,
"author": "Toxygene",
"author_id": 8428,
"auth... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191528",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/419/"
] |
191,536 | <p>I've seen a fair share of ungainly XML->JSON code on the web, and having interacted with Stack's users for a bit, I'm convinced that this crowd can help more than the first few pages of Google results can.</p>
<p>So, we're parsing a weather feed, and we need to populate weather widgets on a multitude of web sites. ... | [
{
"answer_id": 191617,
"author": "Dan Lenski",
"author_id": 20789,
"author_profile": "https://Stackoverflow.com/users/20789",
"pm_score": 7,
"selected": true,
"text": "json"
},
{
"answer_id": 3884849,
"author": "pykler",
"author_id": 469480,
"author_profile": "https:/... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191536",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22491/"
] |
191,549 | <p>We have a custom collection of objects that we bind to a listbox control. When an item is added to the list the item appears in the listbox, however when one selects the item the currency manager position will not go to the position. Instead the currency manager position stays at the existing position. The listbox i... | [
{
"answer_id": 191639,
"author": "Joel B Fant",
"author_id": 22211,
"author_profile": "https://Stackoverflow.com/users/22211",
"pm_score": 0,
"selected": false,
"text": "ListBox SelectedIndexChanged"
},
{
"answer_id": 191643,
"author": "Marc Gravell",
"author_id": 23354,
... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191549",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7950/"
] |
191,592 | <p>I'm working on a simple 2D game engine in Java, and having no trouble with FSEM, buffer strategies, and so on; my issue is with the mouse cursor. In windowed mode, I can hide the mouse cursor, no problem, by using setCursor() from my JFrame to set a wholly-transparent cursor. However, after a call to device.setFullS... | [
{
"answer_id": 192829,
"author": "seisyll",
"author_id": 21815,
"author_profile": "https://Stackoverflow.com/users/21815",
"pm_score": 0,
"selected": false,
"text": " Toolkit toolkit = Toolkit.getDefaultToolkit();\n Dimension dim = toolkit.getBestCursorSize(1,1);\n transCursor = toolkit.... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191592",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7426/"
] |
191,609 | <p>Where would you write an error log file, say <code>ErrorLog.txt</code>, in Windows? Keep in mind the path would need to be open to basic users for file write permissions.</p>
<p>I know the eventlog is a possible location for writing errors, but does it work for "user" level permissions?</p>
<p>EDIT: I am targetin... | [
{
"answer_id": 191625,
"author": "Lou Franco",
"author_id": 3937,
"author_profile": "https://Stackoverflow.com/users/3937",
"pm_score": 5,
"selected": true,
"text": "Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)\n"
},
{
"answer_id": 191667,
"author... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1048/"
] |
191,614 | <p>We have a fairly large code base, 400K LOC of C++, and code duplication is something of a problem. Are there any tools which can effectively detect duplicated blocks of code?</p>
<p>Ideally this would be something that developers could use during development rather than just run occasionally to see where the proble... | [
{
"answer_id": 314808,
"author": "user39039",
"author_id": 39039,
"author_profile": "https://Stackoverflow.com/users/39039",
"pm_score": 4,
"selected": false,
"text": "<project name=\"duplicatecheck\" default=\"cpd\">\n\n<property name=\"files.dir\" value=\"dir containing your sources\"/... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191614",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5022/"
] |
191,640 | <p>I wish to search a database table on a nullable column. Sometimes the value I'm search for is itself NULL. Since Null is equal to nothing, even NULL, saying</p>
<pre><code>where MYCOLUMN=SEARCHVALUE
</code></pre>
<p>will fail. Right now I have to resort to</p>
<pre><code>where ((MYCOLUMN=SEARCHVALUE) OR (MYCO... | [
{
"answer_id": 191646,
"author": "DCookie",
"author_id": 8670,
"author_profile": "https://Stackoverflow.com/users/8670",
"pm_score": 2,
"selected": false,
"text": "WHERE NVL(mycolumn,'NULL') = NVL(searchvalue,'NULL')\n"
},
{
"answer_id": 191648,
"author": "JosephStyons",
... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191640",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12725/"
] |
191,641 | <p>I am attempting to have a ReportHandler service to handle report creation. Reports can have multiple, differing number of parameters that could be set. In the system currently there are several different methods of creating reports (MS reporting services, html reports, etc) and the way the data is generated for ea... | [
{
"answer_id": 194062,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "public class ReportContainer{\n public ReportContainer ( IReportEngine reportEngine, IStorageEngine storage, IDeliver... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191641",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24908/"
] |
191,642 | <p>I'm architecting a new app at the moment, with a high read:write ratio. At my current employer we have lots of denormalised data on our tables for performance reasons. Is it better practice to have totally 3NF tables and then use indexed views to do all the denormalisation? Should I run queries against the tables or... | [
{
"answer_id": 194062,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "public class ReportContainer{\n public ReportContainer ( IReportEngine reportEngine, IStorageEngine storage, IDeliver... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191642",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2086/"
] |
191,644 | <p>I've googled around a bit, but maybe I didn't put the correct magik incantation into the search box. </p>
<p>Does anyone know how to get output parameters from a stored procedure in Python? I'm using pymssql to call a stored procedure, and I'm not sure of the correct syntax to get the output parameter back. I don't... | [
{
"answer_id": 192032,
"author": "Milen A. Radev",
"author_id": 15785,
"author_profile": "https://Stackoverflow.com/users/15785",
"pm_score": 2,
"selected": false,
"text": "cur.callproc('my_stored_proc', (first_param, second_param, an_out_param))\n"
},
{
"answer_id": 198358,
... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13380/"
] |
191,652 | <p>I work a lot with serial communications with a variety of devices, and so I often have to analyze hex dumps in log files. Currently, I do this manually by looking at the dumps, looking at the protocol spec, and writing down the results. However, this is tedious and error-prone, especially whem messages contain hun... | [
{
"answer_id": 519616,
"author": "Zac Thompson",
"author_id": 58549,
"author_profile": "https://Stackoverflow.com/users/58549",
"pm_score": 1,
"selected": false,
"text": "bash$ tclsh\n% binary scan [binary format H* 7eff007b00138604004142434456ef7e] \\\n H2H2H2ccH4sa4h4H2 \\\n flag1 ad... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1175/"
] |
191,690 | <p>I have a table, we'll call <code>Users</code>. This table has a single primary key defined in SQL Server - an autoincrement <code>int ID</code>.</p>
<p>Sometimes, my LINQ queries against this table fail with an <code>"Index was outside the range"</code> error - even the most simplest of queries. The query itself do... | [
{
"answer_id": 35437037,
"author": "Nick Niebling",
"author_id": 1095493,
"author_profile": "https://Stackoverflow.com/users/1095493",
"pm_score": 0,
"selected": false,
"text": "using(var ctx = new LinqDataContext())\n{\n List<Task> tasks = new List<Task>();\n for(int i=0;i<1000;i+... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191690",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17803/"
] |
191,691 | <p>I have come across numerous arguments against the inclusion of multiple inheritance in C#, some of which include (philosophical arguments aside):</p>
<ul>
<li>Multiple inheritance is too complicated and often ambiguous</li>
<li>It is unnecessary because interfaces provide something similar</li>
<li>Composition is a... | [
{
"answer_id": 191738,
"author": "Chris Cudmore",
"author_id": 18907,
"author_profile": "https://Stackoverflow.com/users/18907",
"pm_score": 5,
"selected": false,
"text": "class foo : bar, baz\n class foo : Ibarrable, Ibazzable\n{\n ... \n public Bar TheBar{ set }\n public Baz TheBaz{... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191691",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1199234/"
] |
191,692 | <p>Is there a method to get all of the .aspx files in my website? Maybe iterate through the site's file structure and add to an array?</p>
| [
{
"answer_id": 191702,
"author": "Shawn Miller",
"author_id": 247,
"author_profile": "https://Stackoverflow.com/users/247",
"pm_score": 4,
"selected": true,
"text": "Directory.GetFiles(HttpContext.Current.Server.MapPath(@\"/\"), \"*.aspx\", SearchOption.AllDirectories);\n"
}
] | 2008/10/10 | [
"https://Stackoverflow.com/questions/191692",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25515/"
] |
191,704 | <p>I want to use regular expressions (Perl compatible) to be able to find a pattern surrounded by two other patterns, but not include the strings matching the surrounding patterns in the match.</p>
<p>For example, I want to be able to find occurrences of strings like:</p>
<blockquote>
<p>Foo Bar Baz</p>
</blockquot... | [
{
"answer_id": 191724,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 3,
"selected": false,
"text": "\"Foo (Bar) Baz\"\n ~> cat test.pl\n$a = \"The Foo Bar Baz was lass\";\n\n$a =~ m/Foo (Bar) Baz/;\n\nprint $1,\"\\n\... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191704",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4849/"
] |
191,732 | <p>I'm passing /file:c:\myfile.doc and I'm getting back "/file:c:\myfile.doc" instead of "C:\myfile.doc", could someone please advise where I am going wrong?</p>
<pre><code> if (entry.ToUpper().IndexOf("FILE") != -1)
{
//override default log location
MyFileLocatio... | [
{
"answer_id": 191743,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 3,
"selected": false,
"text": " if (entry.ToUpper().IndexOf(\"FILE:\") == 0)\n {\n //override default log location\n MyFileLocat... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
191,740 | <p>I'm using SqlServer for the first time, and in every single one of our create procedure scripts there is a block of code like below to remove the procedure if it already exists:</p>
<pre><code>IF EXISTS (SELECT *
FROM information_schema.routines
WHERE routine_name = 'SomeProcedureName'
... | [
{
"answer_id": 191753,
"author": "StingyJack",
"author_id": 16391,
"author_profile": "https://Stackoverflow.com/users/16391",
"pm_score": 2,
"selected": false,
"text": "EXEC( 'DROP PROCEDURE ''' + @procName + '''') ( all single quotes)\n"
},
{
"answer_id": 191793,
"author": "... | 2008/10/10 | [
"https://Stackoverflow.com/questions/191740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24063/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.