qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
335,781 | <p>We are in the process of converting our main build process from ant to maven. We use TeamCity for our Continuous Integration server (CI).</p>
<p>We'd like to use the CI server to kick off (nightly) builds whose version contain a build number, as in 1.0.0.build#. These builds would be installed in our local maven re... | [
{
"answer_id": 336080,
"author": "shek",
"author_id": 40618,
"author_profile": "https://Stackoverflow.com/users/40618",
"pm_score": 4,
"selected": true,
"text": "<version>#.#.#-SNAPSHOT</version>\n"
},
{
"answer_id": 350865,
"author": "Matthew Jaskula",
"author_id": 4356,... | 2008/12/02 | [
"https://Stackoverflow.com/questions/335781",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4356/"
] |
335,792 | <p>In visual studio 2008, when I drag a database table into my dbml screen, any tables that end with the letter s automatcially get the s removed from the dbml object. Is there any way to disable this?</p>
<p>Also, the collection of rows also gets an s appended to the collection property name. Is there a way to chan... | [
{
"answer_id": 27265070,
"author": "Nicholas Petersen",
"author_id": 264031,
"author_profile": "https://Stackoverflow.com/users/264031",
"pm_score": 0,
"selected": false,
"text": " [Table(\"QTPhotos\")]\n public class QTPhoto \n"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/335792",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
335,799 | <p>Is there an HTML editor which automatically changes the end tag when you edit the start tag?</p>
| [
{
"answer_id": 29274948,
"author": "ROMANIA_engineer",
"author_id": 3885376,
"author_profile": "https://Stackoverflow.com/users/3885376",
"pm_score": 0,
"selected": false,
"text": "div"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/335799",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6691/"
] |
335,805 | <p>I have a 'reference' SQL Server 2005 database that is used as our global standard. We're all set up for keeping general table schema and data properly synchronized, but don't yet have a good solution for other objects like views, stored procedures, and user-defined functions.</p>
<p>I'm aware of products like <a hr... | [
{
"answer_id": 456196,
"author": "Nathan",
"author_id": 24954,
"author_profile": "https://Stackoverflow.com/users/24954",
"pm_score": 3,
"selected": true,
"text": "select * from sys.syscomments\n"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/335805",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1354/"
] |
335,807 | <p>I was working on some code recently and came across a method that had 3 for-loops that worked on 2 different arrays. </p>
<p>Basically, what was happening was a foreach loop would walk through a vector and convert a DateTime from an object, and then another foreach loop would convert a long value from an object. Ea... | [
{
"answer_id": 335859,
"author": "jalf",
"author_id": 33213,
"author_profile": "https://Stackoverflow.com/users/33213",
"pm_score": 2,
"selected": false,
"text": "for (...){\n // Do A\n}\n\nfor (...){\n // Do B\n}\n\nfor (...){\n // Do C\n}\n"
},
{
"answer_id": 335944,
"au... | 2008/12/02 | [
"https://Stackoverflow.com/questions/335807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13064/"
] |
335,812 | <p>I'm having an issue with CruiseControl.net where the web dashboard just won't work in IIS. I have tried switching ASP.Net between 64 and 32 bit modes and reinstalling cruise control, but nothing seems to work. Has anyone else had issues with CruiseControl.Net on 64 bit platforms?</p>
<p>Cheers,
Jamie</p>
<p>[Edit]... | [
{
"answer_id": 335821,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 1,
"selected": false,
"text": "<add verb=\"*\" path=\"*.aspx\" type=\"ThoughtWorks.CruiseControl.WebDashboard.MVC.ASPNET.HttpHandler,ThoughtWorks.CruiseCon... | 2008/12/02 | [
"https://Stackoverflow.com/questions/335812",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/68230/"
] |
335,817 | <p>Is there a way to access the DOM of the document in an iframe from parent doc if the doc in the iframe is on another domain? I can easily access it if both parent and child pages are on the same domain, but I need to be able to do that when they are on different domains.</p>
<p>If not, maybe there is some other way... | [
{
"answer_id": 335877,
"author": "Kornel",
"author_id": 27009,
"author_profile": "https://Stackoverflow.com/users/27009",
"pm_score": 3,
"selected": true,
"text": "document.domain"
},
{
"answer_id": 523944,
"author": "Luca Tettamanti",
"author_id": 42448,
"author_prof... | 2008/12/02 | [
"https://Stackoverflow.com/questions/335817",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41877/"
] |
335,833 | <p>I'd appreciate some feedback on a particular approach I'm thinking of using. The scenario is below.</p>
<p>I have an object (lets call it MObject) that has a number of properties, say, x and y coordinates, height and width. The properties are named according to the KVC guidelines (MObject.x; MObject.height, etc). M... | [
{
"answer_id": 335904,
"author": "Marc Charbonneau",
"author_id": 35136,
"author_profile": "https://Stackoverflow.com/users/35136",
"pm_score": 2,
"selected": false,
"text": "lowercaseString"
},
{
"answer_id": 336014,
"author": "Peter Hosey",
"author_id": 30461,
"auth... | 2008/12/02 | [
"https://Stackoverflow.com/questions/335833",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38753/"
] |
335,839 | <p>Note that this function does not have a "{" and "}" body. Just a try/catch block:</p>
<pre><code>void func( void )
try
{
...
}
catch(...)
{
...
}
</code></pre>
<p>Is this intentionally part of C++, or is this a g++ extension?</p>
<p>Is there any purpose to this other than bypass 1 level of {}?</p>
<p>I'... | [
{
"answer_id": 335860,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 4,
"selected": false,
"text": "return x;"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/335839",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13022/"
] |
335,841 | <p>I've tried this both with and without the 'ExceptionType' parameter. I have an Error.aspx page in both the Views/Shared folder and the Views/thisController folder. But everytime I run this I get a "Server Error in '/' Application." error page, rather than the nice one in Views/Shared.</p>
<p>Any idea what could be ... | [
{
"answer_id": 335982,
"author": "Todd Smith",
"author_id": 31624,
"author_profile": "https://Stackoverflow.com/users/31624",
"pm_score": 1,
"selected": false,
"text": "// If custom errors are disabled, we need to let the normal ASP.NET exception handler\n// execute so that the user can ... | 2008/12/02 | [
"https://Stackoverflow.com/questions/335841",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40814/"
] |
335,847 | <p>This is not to be confused with <a href="https://stackoverflow.com/questions/123999/how-to-tell-if-a-dom-element-is-visible">"How to tell if a DOM element is visible?"</a></p>
<p>I want to determine if a given DOM element is visible on the page.
E.g. if the element is a child of a parent which has <code>display:non... | [
{
"answer_id": 335864,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 5,
"selected": true,
"text": "display:none"
},
{
"answer_id": 335961,
"author": "Diodeus - James MacFarlane",
"author_id": 12579,
"author... | 2008/12/02 | [
"https://Stackoverflow.com/questions/335847",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6691/"
] |
335,849 | <p>I have run into an issue with WPF and Commands that are bound to a Button inside the DataTemplate of an ItemsControl. The scenario is quite straight forward. The ItemsControl is bound to a list of objects, and I want to be able to remove each object in the list by clicking a Button. The Button executes a Command, an... | [
{
"answer_id": 340755,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "CommandParameter=\n \"{Binding RelativeSource={RelativeSource AncestorType=ContextMenu},\n Path=Pl... | 2008/12/02 | [
"https://Stackoverflow.com/questions/335849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1199387/"
] |
335,855 | <p>I'm writing a GUI application that will let users interact with command-line programs. The programs are crystallography programs, in this case. They take a long time to run.</p>
<p>There's a certain common workflow using the command-line programs. The output from one program is typically processed and then is us... | [
{
"answer_id": 335878,
"author": "Din",
"author_id": 41214,
"author_profile": "https://Stackoverflow.com/users/41214",
"pm_score": -1,
"selected": false,
"text": "object console = WShell.Exec(cmdLine);\nif (console.StdOut.AtEndOfStream)\n s = Pipe.StdOut.ReadLine();\n"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/335855",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17076/"
] |
335,863 | <p>/dev/md1 6068992 5204648 551080 91% /</p>
<p>I have 91% taken and am trying to discover what files are taking up space. I'm using linux. Does any one know the command?</p>
<p>thanks</p>
| [
{
"answer_id": 335865,
"author": "Ken Gentle",
"author_id": 8709,
"author_profile": "https://Stackoverflow.com/users/8709",
"pm_score": 3,
"selected": false,
"text": "du -k -S -x / | sort -n -r | head -10"
},
{
"answer_id": 335869,
"author": "Alnitak",
"author_id": 6782,
... | 2008/12/02 | [
"https://Stackoverflow.com/questions/335863",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
335,873 | <p>Is there a limitation in the length of a query that SQL Server can handle?</p>
<p>I have a normal SqlCommand object and pass a very long select statement as a string. </p>
<p>The query seems to be fine when running against an SQL Server 2005/2008 engine but doesn't execute against an SQL Server 2000 engine. </p>
... | [
{
"answer_id": 335912,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 3,
"selected": false,
"text": "SQLCommand command = new SqlCommand(\"exec sp_executeSQL @CMD\");\ncommand.Parameters.Add(new SqlParameter(\"@CMD\",YourDyna... | 2008/12/03 | [
"https://Stackoverflow.com/questions/335873",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4403/"
] |
335,885 | <p>I am looking for a way to slide a UIPickerView (and UIDatePickerView) up over a view (UITableView in particular) when a particular button press takes place.</p>
<p>I understand how to get the events for clicks into the UITableView, but there doesn't seem to be a good way to have the UIPickerView slide up on top of ... | [
{
"answer_id": 501019,
"author": "Brad Parks",
"author_id": 26510,
"author_profile": "https://Stackoverflow.com/users/26510",
"pm_score": 2,
"selected": false,
"text": "UIWindow *window = [[Director sharedDirector] window];\n\n[UIView beginAnimations:nil context:nil];\n[UIView setAnimati... | 2008/12/03 | [
"https://Stackoverflow.com/questions/335885",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
335,886 | <p>I want to do something like</p>
<pre><code>select * from tvfHello(@param) where @param in (Select ID from Users)
</code></pre>
| [
{
"answer_id": 335895,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 0,
"selected": false,
"text": "SELECT * FROM dbo.tvfHello(@param) WHERE @param IN (SELECT ID FROM Users)\n"
},
{
"answer_id": 335903,
"auth... | 2008/12/03 | [
"https://Stackoverflow.com/questions/335886",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30546/"
] |
335,888 | <p>I have a user table in my mysql database that has a password column. Currently, I use the MD5 algorithm to hash the users' password for storage in the database. Now I like to think that I am a security conscience person. I noticed while reading the MySQL docs that they don't recommend MD5 or the SHA/SHA1 hashing met... | [
{
"answer_id": 335913,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 2,
"selected": false,
"text": "hash()"
}
] | 2008/12/03 | [
"https://Stackoverflow.com/questions/335888",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42135/"
] |
335,891 | <p>I have the following shell script registered in my "Login Items" preferences but it does not seem to have any effect. It is meant to launch the moinmoin wiki but only works when it is run by hand from a terminal window, after which it runs until the machine is next shut down.</p>
<pre><code>#!/bin/bash
cd /Users/st... | [
{
"answer_id": 336239,
"author": "Dustin",
"author_id": 39975,
"author_profile": "https://Stackoverflow.com/users/39975",
"pm_score": 3,
"selected": true,
"text": "/Library/LaunchDaemons"
}
] | 2008/12/03 | [
"https://Stackoverflow.com/questions/335891",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27065/"
] |
335,896 | <p>I am trying to write my first real python function that does something real. What i want to accomplish is searching a given folder, and then open all images and merging them together so they make a filmstrip image. Imagine 5 images stacked on top of eachother in one image.</p>
<p>I have this code now, which should ... | [
{
"answer_id": 335916,
"author": "Harley Holcombe",
"author_id": 1057,
"author_profile": "https://Stackoverflow.com/users/1057",
"pm_score": 1,
"selected": false,
"text": "try"
},
{
"answer_id": 335921,
"author": "jfs",
"author_id": 4279,
"author_profile": "https://St... | 2008/12/03 | [
"https://Stackoverflow.com/questions/335896",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42546/"
] |
335,928 | <p>I am attempting to link an application with g++ on this Debian lenny system. ld is complaining it cannot find specified libraries. The specific example here is ImageMagick, but I am having similar problems with a few other libraries too.</p>
<p>I am calling the linker with:</p>
<pre><code>g++ -w (..lots of .o file... | [
{
"answer_id": 335958,
"author": "grepsedawk",
"author_id": 14388,
"author_profile": "https://Stackoverflow.com/users/14388",
"pm_score": 9,
"selected": true,
"text": "libmagic.so"
},
{
"answer_id": 335960,
"author": "Brian Gianforcaro",
"author_id": 3415,
"author_pro... | 2008/12/03 | [
"https://Stackoverflow.com/questions/335928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10733/"
] |
335,930 | <p>Suppose there´s a template function in C++ that does some useful work but also outputs a sequence of values via an output iterator. Now suppose that that sequence of values sometimes is interesting, but at others is not useful. Is there a ready-to-use iterator class in the STL that can be instantiated and passed to ... | [
{
"answer_id": 335950,
"author": "Mark Ransom",
"author_id": 5987,
"author_profile": "https://Stackoverflow.com/users/5987",
"pm_score": 2,
"selected": false,
"text": "template<typename T>\nclass NullOutputIterator\n{\npublic:\n NullOutputIterator() {}\n NullOutputIterator& operato... | 2008/12/03 | [
"https://Stackoverflow.com/questions/335930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/78828/"
] |
335,932 | <p>I am working on an ASP.NET MVC application that contains a header and menu on each page. The menu and header are dynamic. In other words, the menu items and header information are determined at runtime.</p>
<p>My initial thought is to build a base Controller from which all other controllers derive. In the base c... | [
{
"answer_id": 3465822,
"author": "Anthony Johnston",
"author_id": 122232,
"author_profile": "https://Stackoverflow.com/users/122232",
"pm_score": 1,
"selected": false,
"text": "public static HtmlString MainMenu(this HtmlHelper helper)\n"
},
{
"answer_id": 3503876,
"author": ... | 2008/12/03 | [
"https://Stackoverflow.com/questions/335932",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2657/"
] |
335,933 | <p>I traditionally deploy a set of web pages which allow for manual validation of core application functionality. One example is LoggerTest.aspx which generates and logs a test exception. I've always chosen to raise a DivideByZeroException using an approach similar to the following code snippet: </p>
<pre><code>try
{
... | [
{
"answer_id": 335936,
"author": "Jesse Millikan",
"author_id": 7526,
"author_profile": "https://Stackoverflow.com/users/7526",
"pm_score": 5,
"selected": false,
"text": "throw new Exception(\"Test Exception\");\n"
},
{
"answer_id": 335939,
"author": "asleep",
"author_id"... | 2008/12/03 | [
"https://Stackoverflow.com/questions/335933",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4115/"
] |
335,951 | <p>For a web application, when creating the user which will connect to the MySQL database, you have the choice of privileges. Assuming that the only actions intended to be done by that user are SELECT/INSERT/UPDATE/DELETE, it seems to make sense to only provide those privileges, however I've never seen that recommended... | [
{
"answer_id": 335964,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 4,
"selected": true,
"text": "SELECT * FROM mytable, mytable, mytable, mytable, mytable ORDER BY 1;\n"
}
] | 2008/12/03 | [
"https://Stackoverflow.com/questions/335951",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9021/"
] |
335,955 | <p>I've been slowly working my way through the list of Project Euler problems, and I've come to one that I know how to solve, but it seems like I can't (given the way my solution was written).</p>
<p>I am using Common Lisp to do this with and my script has been running for over 24 hours (well over their one minute goa... | [
{
"answer_id": 336020,
"author": "Svante",
"author_id": 31615,
"author_profile": "https://Stackoverflow.com/users/31615",
"pm_score": 2,
"selected": false,
"text": "l"
},
{
"answer_id": 336322,
"author": "Josh Sandlin",
"author_id": 13293,
"author_profile": "https://S... | 2008/12/03 | [
"https://Stackoverflow.com/questions/335955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13293/"
] |
335,963 | <p>I'm using VSTS Database Edition GDR Version 9.1.31024.02</p>
<p>I've got a project where we will be creating multiple databases with identical schema, on the fly, as customers are added to the system. It's one DB per customer. I thought I should be able to use the deploy script to do this. Unfortunately I always ge... | [
{
"answer_id": 1690719,
"author": "Rory MacLeod",
"author_id": 1016,
"author_profile": "https://Stackoverflow.com/users/1016",
"pm_score": 2,
"selected": false,
"text": "$(DefaultDataPath)$(DatabaseName)"
}
] | 2008/12/03 | [
"https://Stackoverflow.com/questions/335963",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5130/"
] |
335,965 | <p>I am working on adding in a settings bundle for my application as a cheap way of getting a GUI on my preferences. Is it possible to launch this from a button in my application or will my users always have to access it manually via the built in settings application?</p>
| [
{
"answer_id": 446430,
"author": "Rhubarb",
"author_id": 20479,
"author_profile": "https://Stackoverflow.com/users/20479",
"pm_score": 2,
"selected": false,
"text": "// Invoked after the application has been launched and initialized but before it has received its first event.\n- (void)ap... | 2008/12/03 | [
"https://Stackoverflow.com/questions/335965",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8918/"
] |
335,966 | <p>Here's the scenario</p>
<p>I have a Grid with some TextBlock controls, each in a separate cell in the grid. Logically I want to be able to set the Visibility on them bound to a property in my ViewModel. But since they're each in a separate cell in the grid, I have to set each TextBlock's Visibility property.</p>
<... | [
{
"answer_id": 336005,
"author": "Jobi Joy",
"author_id": 8091,
"author_profile": "https://Stackoverflow.com/users/8091",
"pm_score": 2,
"selected": false,
"text": "public class Singleton :INotifyPropertyChanged\n{\n private Singleton() { }\n public static Singleton Instance\n {... | 2008/12/03 | [
"https://Stackoverflow.com/questions/335966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14537/"
] |
335,971 | <p>Are there instances where switch(case) is is a good design choice (except for simplicity) over strategy or similar patterns... </p>
| [
{
"answer_id": 335995,
"author": "lacker",
"author_id": 2652,
"author_profile": "https://Stackoverflow.com/users/2652",
"pm_score": 3,
"selected": false,
"text": "\nvector<string> possible_forms;\npossible_forms.push_back(word);\nchar last_letter = word[word.size() - 1];\nswitch (last_le... | 2008/12/03 | [
"https://Stackoverflow.com/questions/335971",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30917/"
] |
335,987 | <p>A few times already, I got into situations where one of my SVN repository got corrupt and we could do anything with some versions or branches of the project without really knowing what we did. So I'm asking what can cause a repository to become corrupt?</p>
<hr>
<p>It seems that incompatibilities between clients m... | [
{
"answer_id": 336011,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "kill -9"
},
{
"answer_id": 336135,
"author": "PostMan",
"author_id": 18405,
"author_profile": "https://Sta... | 2008/12/03 | [
"https://Stackoverflow.com/questions/335987",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39057/"
] |
336,018 | <p>I have a class <code>Page</code> that creates an instance of <code>DB</code>, which is named <code>$db</code>.</p>
<p>In the <code>__construct()</code> of <code>Page</code>, I create the new <code>$db</code> object and I pull a bunch of config data from a file.</p>
<p>Now the DB class has a method <code>_connectTo... | [
{
"answer_id": 336036,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 1,
"selected": false,
"text": "debug_backtrace()"
},
{
"answer_id": 336041,
"author": "JW.",
"author_id": 4321,
"author_profile":... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31671/"
] |
336,035 | <p>I have a DataGridViewComboBoxColumn in a DataGridView that's based on a lookup table.</p>
<p>The ValueMember and DisplayMember fields are bound to string columns in the DataTable. All rows have a value for both fields - except for a special record where the value field is deliberately set to NULL.</p>
<p>However, ... | [
{
"answer_id": 336569,
"author": "Mitkins",
"author_id": 23401,
"author_profile": "https://Stackoverflow.com/users/23401",
"pm_score": 3,
"selected": true,
"text": "void Schedule_ColumnChanging(object sender, DataColumnChangeEventArgs e)\n{\n if \n ( \n e.Column.ColumnName =... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23401/"
] |
336,073 | <p>I keep finding that if I have nested divs inside each other, and one of the inner ones is floated, the outer one won't expand around it.</p>
<p>Example:</p>
<pre><code><div style='background-color:red; '>
asdfasdf
<div style='float:left; background-color:blue; width:400px; height:400px;'>
... | [
{
"answer_id": 336177,
"author": "themis",
"author_id": 42706,
"author_profile": "https://Stackoverflow.com/users/42706",
"pm_score": 5,
"selected": true,
"text": "<div style='background-color:red;overflow:hidden;'>\n...\n</div>\n"
},
{
"answer_id": 336301,
"author": "Darko",... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336073",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27580/"
] |
336,078 | <p>I use <em>lazy connection</em> to connect to my DB within my DB object. This basically means that it doesn't call mysql_connect() until the first query is handed to it, and it subsequently skips reconnecting from then on after.</p>
<p>Now I have a method in my DB class called <code>disconnectFromDB()</code> which p... | [
{
"answer_id": 336109,
"author": "too much php",
"author_id": 28835,
"author_profile": "https://Stackoverflow.com/users/28835",
"pm_score": 3,
"selected": false,
"text": "$_connected"
}
] | 2008/12/03 | [
"https://Stackoverflow.com/questions/336078",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31671/"
] |
336,127 | <p>I need a method for adding "business days" in PHP. For example, Friday 12/5 + 3 business days = Wednesday 12/10.</p>
<p>At a minimum I need the code to understand weekends, but ideally it should account for US federal holidays as well. I'm sure I could come up with a solution by brute force if necessary, but I'm ho... | [
{
"answer_id": 336155,
"author": "Tim",
"author_id": 33914,
"author_profile": "https://Stackoverflow.com/users/33914",
"pm_score": 4,
"selected": false,
"text": "$busDays = 3;\n$day = date(\"w\");\nif( $day > 2 && $day <= 5 ) { /* if between Wed and Fri */\n $day += 2; /* add 2 more day... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336127",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1103/"
] |
336,138 | <p>Are all the additions to C# for version 4 (dynamic, code contracts etc) expected to run on the current .NET CLR, or is there a planned .NET upgrade as well?</p>
| [
{
"answer_id": 336278,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 2,
"selected": false,
"text": "dynamic"
}
] | 2008/12/03 | [
"https://Stackoverflow.com/questions/336138",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5302/"
] |
336,144 | <p>I have an application where I would like to have mixed Java and Scala source (actually its migrating a java app to scala - but a bit at a time). </p>
<p>I can make this work in IDEs just fine, very nice. But I am not sure how to do this with maven - scalac can compile java and scala intertwined, but how to I set up... | [
{
"answer_id": 336187,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 4,
"selected": false,
"text": "src/main/scala"
},
{
"answer_id": 336398,
"author": "lindelof",
"author_id": 1428,
"author_profile": "ht... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336144",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/699/"
] |
336,148 | <p>I've been told that the java class TreeMap uses an implementation of a RB tree. If this is the case, how does one do an inorder, preorder and postorder tree-walk on a TreeMap?</p>
<p>Or is this not possible?</p>
| [
{
"answer_id": 336164,
"author": "Bill the Lizard",
"author_id": 1288,
"author_profile": "https://Stackoverflow.com/users/1288",
"pm_score": 4,
"selected": true,
"text": "printTree()"
},
{
"answer_id": 338815,
"author": "Rich",
"author_id": 42897,
"author_profile": "h... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336148",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36545/"
] |
336,205 | <p>I tried to precompile my ASP.NET MVC application and deploy it to an IIS6 box (with wildcard mapping), however I am getting an error with rendering partial views (user controls). Its working fine on my dev machine before precompiling.</p>
<p>The error is:</p>
<blockquote>
<p>Server Error in '/' Application.<br ... | [
{
"answer_id": 4494229,
"author": "mgerety",
"author_id": 122007,
"author_profile": "https://Stackoverflow.com/users/122007",
"pm_score": 4,
"selected": false,
"text": "C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\aspnet_compiler -p \"$(ProjectDir).\" -v /$(ProjectName)\n"
}
] | 2008/12/03 | [
"https://Stackoverflow.com/questions/336205",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37786/"
] |
336,210 | <p>Is there a regular expression which checks if a string contains only upper and lowercase letters, numbers, and underscores?</p>
| [
{
"answer_id": 336214,
"author": "Drew Hall",
"author_id": 23934,
"author_profile": "https://Stackoverflow.com/users/23934",
"pm_score": 4,
"selected": false,
"text": "^([A-Za-z]|[0-9]|_)+$\n"
},
{
"answer_id": 336215,
"author": "BenAlabaster",
"author_id": 40650,
"au... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336210",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
336,226 | <p>Stupid questions but cant get my head around it...
I have a string in this format 20081119</p>
<p>And I have a C# method that converts the string to a DateTime to be entered into a SQL Server DB </p>
<pre><code>public static DateTime MyDateConversion(string dateAsString)
{
return System.DateTime.Parse... | [
{
"answer_id": 336249,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 4,
"selected": false,
"text": "DbParameter param = cmd.CreateParameter();\nparam.ParameterName = \"@foo\";\nparam.DbType = DbType.DateTime;\nparam.V... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336226",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
336,235 | <p>I have installed VS 2008 SP1 on W2k3 OS. After I installed ASP.NET MVC beta and tried creating ASP.NET MVC type project I get the following error.</p>
<p>"the project type is not supported by this installation"</p>
<p>Let me know if you have fixed this issue.</p>
| [
{
"answer_id": 696120,
"author": "Rob Cooper",
"author_id": 832,
"author_profile": "https://Stackoverflow.com/users/832",
"pm_score": 4,
"selected": false,
"text": "devenv /setup\n"
},
{
"answer_id": 1573448,
"author": "Vivek Ayer",
"author_id": 128263,
"author_profil... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26788/"
] |
336,240 | <p>I am using Zend Framework(MVC part of it), and need to either redirect user to SSL enabled page or to force SSL from controller somehow and don't quite see how to do that? Maybe someone can share the knowledge? </p>
<p>Thanks!</p>
| [
{
"answer_id": 336261,
"author": "Matt Howell",
"author_id": 2321,
"author_profile": "https://Stackoverflow.com/users/2321",
"pm_score": 3,
"selected": false,
"text": "RewriteEngine On\nRewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}\n"
}
] | 2008/12/03 | [
"https://Stackoverflow.com/questions/336240",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35520/"
] |
336,250 | <p>EDIT: I've tagged this C in a hope to get more response. It's more the theory I'm interested in than a specific language implementation. So if you're a C coder please treat the following PHP as pseudo-code and feel free to respond with an answer written in C.</p>
<p>I am trying to speed up a PHP CLI script by hav... | [
{
"answer_id": 336330,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 2,
"selected": false,
"text": "socket_select()"
},
{
"answer_id": 336471,
"author": "qrdl",
"author_id": 28494,
"author_profile... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336250",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
336,268 | <p>I thought these were synonomous, but I wrote the following in Microsoft SQL:</p>
<pre><code>Select Unique col from
(select col from table1 union select col from table2) alias
</code></pre>
<p>And it failed. Changing it to </p>
<pre><code>Select Distinct col from
(select col from table1 union select c... | [
{
"answer_id": 336273,
"author": "BenAlabaster",
"author_id": 40650,
"author_profile": "https://Stackoverflow.com/users/40650",
"pm_score": 7,
"selected": false,
"text": "Create Table Employee( \n Emp_PKey Int Identity(1, 1) Constraint PK_Employee_Emp_PKey Primary Key, \n Emp_SS... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42712/"
] |
336,288 | <p>Presently I'm starting to introduce the concept of Mock objects into my Unit Tests. In particular I'm using the Moq framework. However, one of the things I've noticed is that suddenly the classes I'm testing using this framework are showing code coverage of 0%.</p>
<p>Now I understand that since I'm just mocking th... | [
{
"answer_id": 336314,
"author": "Nathan W",
"author_id": 6335,
"author_profile": "https://Stackoverflow.com/users/6335",
"pm_score": 5,
"selected": true,
"text": "using Moq;\nusing NUnitFramework;\n\nnamespace MyNameSpace\n {\n [TestFixture]\n public class MyClassTests\... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336288",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39532/"
] |
336,289 | <p>In vc++ i am using MScomm for serial communication,
i received data in this format 02120812550006050.0,
i am not gettng how to read this ,in which format it is,
begning starting frame and at the end ending file, remaing i dont know.</p>
<p>EDIT 1:</p>
<p>it contains date time and data how i can seperate this one<... | [
{
"answer_id": 336323,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https://Stackoverflow.com/users/14860",
"pm_score": 2,
"selected": false,
"text": "static void extract (char *buff, char *date, char *time, float *val) {\n // format is \"\\x01\\x0fDDMMYYhhmmss\\x02vv... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336289",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
336,303 | <p>I'm writing a <a href="http://en.wikipedia.org/wiki/VoiceXML" rel="nofollow noreferrer">VoiceXML</a> application where we have a speech grammar and a <a href="http://en.wikipedia.org/wiki/DTMF" rel="nofollow noreferrer">DTMF</a> grammar. If the caller is calling from a particularly noisy environment, we need to dis... | [
{
"answer_id": 435869,
"author": "Ates Goral",
"author_id": 23501,
"author_profile": "https://Stackoverflow.com/users/23501",
"pm_score": 3,
"selected": false,
"text": "inputmodes"
},
{
"answer_id": 5870264,
"author": "Neel",
"author_id": 180551,
"author_profile": "ht... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
336,309 | <p>I have a MySQL database that I want to <em>archive</em>. What is the best way to do this?</p>
<p>Note: I <em>don't</em> want to just do a <em>backup</em>. I want to do a one time export of the data for long term storage in a way that I can get at on a later date. Particularly, I want to not be tied to MySQL, a data... | [
{
"answer_id": 26879956,
"author": "zloctb",
"author_id": 1673376,
"author_profile": "https://Stackoverflow.com/users/1673376",
"pm_score": 0,
"selected": false,
"text": "mysql> ALTER TABLE arch2 ENGINE='ARCHIVE';\n"
}
] | 2008/12/03 | [
"https://Stackoverflow.com/questions/336309",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1343/"
] |
336,311 | <p>I am building a web application which uses an externally built class to handle much of the work and rules for the site. Most pages will require access to this class to get the information it needs to display. In the past I would put such a class in a session variable, so it's easily accessible when required and no... | [
{
"answer_id": 414908,
"author": "Brettski",
"author_id": 5836,
"author_profile": "https://Stackoverflow.com/users/5836",
"pm_score": 0,
"selected": false,
"text": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Web;\nusing System.Configuration;\n\nnam... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336311",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5836/"
] |
336,327 | <p>I am trying to build a CAML query for SharePoint 2007 environment, to get items from a calendar list. Want to query items with a given 'From date' and 'To date', the calendar list contains 'EventDate' and 'EndDate' in Datetime format. I am only interested in the date part of the datetime field.</p>
<p>How can I tri... | [
{
"answer_id": 336406,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 4,
"selected": true,
"text": "<Where>\n <Gt>\n <FieldRef Name='EventDate' />\n <Value IncludeTimeValue='FALSE' Type='DateTime'>2008-12-03T12:00... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336327",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35366/"
] |
336,333 | <p>Is there a way to use add-as-link when dragging and dropping source files or entire source trees into a C# project?</p>
<p>Currently, dragging a tree of source files onto a C# project will cause Visual Studio to copy all files to mirror tree below my solution file.</p>
<p>This can be avoided with the the add-as-li... | [
{
"answer_id": 533773,
"author": "Coincoin",
"author_id": 42,
"author_profile": "https://Stackoverflow.com/users/42",
"pm_score": 2,
"selected": true,
"text": "<ItemGroup>\n <Compile Include=\"SomeDirectory\\**\\*.cs\"/>\n</ItemGroup>\n"
}
] | 2008/12/03 | [
"https://Stackoverflow.com/questions/336333",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27234/"
] |
336,348 | <p>I've got a web page that's using jquery to receive some product information as people are looking at things and then displays the last product images that were seen. This is in a jquery AJAX callback that looks pretty much like this:</p>
<pre><code>if(number_of_things_seen > 10) {
$('#shots li:last-child').re... | [
{
"answer_id": 336374,
"author": "redsquare",
"author_id": 6440,
"author_profile": "https://Stackoverflow.com/users/6440",
"pm_score": 1,
"selected": false,
"text": "//not tested\n\nvar $list=$('#shots>li');\n$list.filter(':last-child').children('img')\n.attr('src', p.ProductImageSmall)\... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336348",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39975/"
] |
336,387 | <p>i've got some binary data which i want to save as an image. When i try to save the image, it throws an exception if the memory stream used to create the image, was closed before the save. The reason i do this is because i'm dynamically creating images and as such .. i need to use a memory stream.</p>
<p>this is the... | [
{
"answer_id": 2555670,
"author": "Brian Low",
"author_id": 46039,
"author_profile": "https://Stackoverflow.com/users/46039",
"pm_score": 2,
"selected": false,
"text": " public static Image ToImage(this byte[] bytes)\n {\n using (var stream = new MemoryStream(bytes))\n ... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336387",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30674/"
] |
336,391 | <p>Javascripts are in <code>script.js</code> file which I have called in the xhtml file.</p>
<p>But it is throwing error at line where I have calling <code>onpageload</code> function saying " object expected.</p>
<p>However, if I have the scripts on same XHTML file, it is working fine.</p>
| [
{
"answer_id": 2555670,
"author": "Brian Low",
"author_id": 46039,
"author_profile": "https://Stackoverflow.com/users/46039",
"pm_score": 2,
"selected": false,
"text": " public static Image ToImage(this byte[] bytes)\n {\n using (var stream = new MemoryStream(bytes))\n ... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336391",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
336,414 | <p>Is it possible somehow to close StreamReader after calling ReadToEnd method in construction like this:</p>
<pre><code>string s = new StreamReader("filename", Encoding.UTF8).ReadToEnd();
</code></pre>
<p>Any alternative elegant construction with the same semantics will be also accepted.</p>
| [
{
"answer_id": 336419,
"author": "Scott Saad",
"author_id": 4916,
"author_profile": "https://Stackoverflow.com/users/4916",
"pm_score": 2,
"selected": false,
"text": "string s = null; \nusing ( StreamReader reader = new StreamReader( \"filename\", Encoding.UTF8 ) { s = reader.ReadToEn... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336414",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11256/"
] |
336,416 | <p>I have the following piece of code which replaces "template markers" such as %POST_TITLE% with the contents of a variable called $post_title.</p>
<pre><code>function replaceTags( $template, $newtext ) {
$template = preg_replace( '/%MYTAG%/', $newtext, $template );
return $template;
}
</code></pre>
<p>The i... | [
{
"answer_id": 336421,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 3,
"selected": true,
"text": "$1"
},
{
"answer_id": 336436,
"author": "derobert",
"author_id": 27727,
"author_profile": "https://Stackover... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336416",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2136/"
] |
336,452 | <p>I'd like to write a functional test of a RESTful web service I'm working on in a Ruby on Rails app. </p>
<p>The test is of a POST request where the body of the request is a plain XML doc and not a form. Any pointers on how to do this? The problem I'm encountering is how to specify the body XML in the call to the po... | [
{
"answer_id": 337111,
"author": "Matt Burke",
"author_id": 29691,
"author_profile": "https://Stackoverflow.com/users/29691",
"pm_score": 1,
"selected": false,
"text": "@request.env['RAW_POST_BODY']"
},
{
"answer_id": 339542,
"author": "Community",
"author_id": -1,
"a... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336452",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
336,453 | <p>I've written a Custom User Control which returns some user specific data.
To load the Custom User Control I use the following line of code:</p>
<pre><code>UserControl myUC = (UserControl).Load("~/customUserControl.ascx");
</code></pre>
<p>But how can I access <code>string user</code> inside the User Control <code... | [
{
"answer_id": 336480,
"author": "Aleris",
"author_id": 20417,
"author_profile": "https://Stackoverflow.com/users/20417",
"pm_score": 0,
"selected": false,
"text": "MyUserControl myUCTyped = (MyUserControl)myUC;\nmyUCTyped.ThePublicProperty = \"some value\";\n"
},
{
"answer_id": ... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336453",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37972/"
] |
336,466 | <p>Does any one know of a free tool or library to convert multi page tiffs to pdf in Asp.Net 1.1?</p>
| [
{
"answer_id": 736404,
"author": "lothar",
"author_id": 44434,
"author_profile": "https://Stackoverflow.com/users/44434",
"pm_score": 1,
"selected": false,
"text": "convert screenshot.tiff screenshot.pdf\n"
},
{
"answer_id": 18227722,
"author": "Sundaram",
"author_id": 26... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336466",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1688440/"
] |
336,475 | <p>I am writing some new code that will throw a custom exception - I want to include an error string and a status code. Which class should be exception derive from? <code>std::exception</code>? <code>std::runtime_error</code>? Any other 'gotchas' to worry about? I'm thinking of something like the following:</p>
<p... | [
{
"answer_id": 336507,
"author": "efotinis",
"author_id": 12320,
"author_profile": "https://Stackoverflow.com/users/12320",
"pm_score": 2,
"selected": false,
"text": "invalid_argument, range_error, bad_cast"
},
{
"answer_id": 336527,
"author": "Evgeny Lazin",
"author_id":... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336475",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9236/"
] |
336,495 | <p>Working with Microsoft SQL Server I found extremely useful SQL Server Profiler and Estimated Execution Plan (available in Management Studio) to optimize queries during development and production system monitoring.</p>
<p>Are there similar tools (open source or commercial) or techniques available for MySQL?</p>
| [
{
"answer_id": 336520,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 3,
"selected": true,
"text": "EXPLAIN"
},
{
"answer_id": 25915819,
"author": "Yvan",
"author_id": 781153,
"author_profile": "https://Sta... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336495",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42512/"
] |
336,517 | <p>Ive decided that I really dont like microsoft and their ways. Please could you give me directions on how to handle winmail.dat in emails, is there a jython library or a java library that will allow me to handle this.</p>
<p>Ive just completed a email processing program, written in jython 2.2.1 on java 5. During the... | [
{
"answer_id": 11262382,
"author": "Bob Rivers",
"author_id": 51754,
"author_profile": "https://Stackoverflow.com/users/51754",
"pm_score": 3,
"selected": false,
"text": " <dependency>\n <groupId>org.apache.poi</groupId>\n <artifactId>poi-scratchpad</artifactId>\n ... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336517",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21537/"
] |
336,553 | <p>Somewhere in the code, a waitHandle is used to perfom some actions. However the thing with waithandle is that the form freezes while waiting for some action to complete. So the following code would not work:</p>
<pre><code>frmProgressBar.show();
int successOrFail = PerformSynchronousActionUsingWaitHandle();
frmProg... | [
{
"answer_id": 336885,
"author": "Hath",
"author_id": 5186,
"author_profile": "https://Stackoverflow.com/users/5186",
"pm_score": 1,
"selected": false,
"text": " public event EventHandler<WorkCompleteArgs> WorkComplete;\n private void StartClick(object sender, EventArgs e)\n {\n... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
336,572 | <p>How do we filter an xml document based on another xml document. I have to remove all the elements which are not there in the lookup xml. Both the input xml and lookup xml has the same root elements, we are using XSLT 1.0.</p>
<p>Ex Input</p>
<pre><code><Root>
<E1 a="1">V1</E1>
<E2>V... | [
{
"answer_id": 339609,
"author": "Dimitre Novatchev",
"author_id": 36305,
"author_profile": "https://Stackoverflow.com/users/36305",
"pm_score": 3,
"selected": true,
"text": "<SE511>SEV11</SE511>"
}
] | 2008/12/03 | [
"https://Stackoverflow.com/questions/336572",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26036/"
] |
336,575 | <p>I would like to know whether it is possible to force LWP::UserAgent to accept an expired SSL certificate for a single, well-known server. The issue is slightly complicated by the Squid proxy in between.</p>
<p>I went as far as to set up a debugging environment like:</p>
<pre><code>use warnings;
use strict;
use Car... | [
{
"answer_id": 338550,
"author": "joshperry",
"author_id": 30587,
"author_profile": "https://Stackoverflow.com/users/30587",
"pm_score": 5,
"selected": true,
"text": "$agent->ssl_opts(verify_hostname => 0);\n"
},
{
"answer_id": 15528718,
"author": "André Fernandes",
"auth... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336575",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36218/"
] |
336,578 | <p>We have a Hibernate/Spring application that have the following Spring beans:</p>
<pre><code><bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager" />
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean" /&... | [
{
"answer_id": 337408,
"author": "Chochos",
"author_id": 10165,
"author_profile": "https://Stackoverflow.com/users/10165",
"pm_score": 0,
"selected": false,
"text": "public"
},
{
"answer_id": 347953,
"author": "deterb",
"author_id": 15585,
"author_profile": "https://S... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336578",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/382264/"
] |
336,585 | <p>I know the rule-of-thumb to read declarations right-to-left and I was fairly sure I knew what was going on until a colleague told me that:</p>
<pre><code>const MyStructure** ppMyStruct;
</code></pre>
<p>means "ppMyStruct is <strong>a pointer to a const pointer to a (mutable) MyStructure</strong>" (in C++).</p>
<p... | [
{
"answer_id": 336657,
"author": "flolo",
"author_id": 36472,
"author_profile": "https://Stackoverflow.com/users/36472",
"pm_score": 6,
"selected": false,
"text": " [flolo@titan ~]$ cdecl explain \"const struct s** ppMyStruct\"\n declare ppMyStruct as pointer to pointer to const ... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336585",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15323/"
] |
336,605 | <p>Is there a fast algorithm for finding the Largest Common Substring in two <code>strings</code> or is it an NPComplete problem?</p>
<p>In PHP I can find a needle in a haystack:</p>
<pre><code><?php
if (strstr("there is a needle in a haystack", "needle")) {
echo "found<br>\n";
}
?>
</code></pre>
<p... | [
{
"answer_id": 336617,
"author": "Tom",
"author_id": 42754,
"author_profile": "https://Stackoverflow.com/users/42754",
"pm_score": 3,
"selected": true,
"text": "<?php\n// Gather all messages by a user into two identical associative arrays\n$getMsgsRes = mysql_query(SELECT * FROM email_me... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336605",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42754/"
] |
336,628 | <p>One thing that annoys me when debugging programs in Visual Studio (2005 in my case) is that when I use "step over" (by pressing <kbd>F10</kbd>) to execute to the next line of code, I often end up reaching that particular line of code in a totally different thread than the one I was looking at. This means that all th... | [
{
"answer_id": 378584,
"author": "Aaron",
"author_id": 28950,
"author_profile": "https://Stackoverflow.com/users/28950",
"pm_score": 6,
"selected": true,
"text": "$TID"
},
{
"answer_id": 26012873,
"author": "helb",
"author_id": 2383264,
"author_profile": "https://Stac... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336628",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11758/"
] |
336,633 | <p>In a <a href="http://en.wikipedia.org/wiki/.NET_Framework" rel="noreferrer">.NET</a> 2.0 C# application I use the following code to detect the operating system platform:</p>
<pre><code>string os_platform = System.Environment.OSVersion.Platform.ToString();
</code></pre>
<p>This returns "Win32NT". The problem is tha... | [
{
"answer_id": 336645,
"author": "BobbyShaftoe",
"author_id": 38426,
"author_profile": "https://Stackoverflow.com/users/38426",
"pm_score": 4,
"selected": false,
"text": "if(IntPtr.Size == 8) {\n // 64 bit machine\n} else if(IntPtr.Size == 4) {\n // 32 bit machine\n} \n"
},
{
... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336633",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34022/"
] |
336,640 | <p>If you check my earlier questions you may have noticed I just don't get the SelectList and Html.DropDown(). I find it intrigueing that I seem to be the only one in this. So maybe I should try to change my mindset or maybe there are things I don't know that will clear this all up. I really love the whole MVC framewor... | [
{
"answer_id": 369917,
"author": "argibson",
"author_id": 40130,
"author_profile": "https://Stackoverflow.com/users/40130",
"pm_score": 2,
"selected": false,
"text": "IEnumerable<T>"
},
{
"answer_id": 427195,
"author": "GONeale",
"author_id": 41211,
"author_profile": ... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336640",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11333/"
] |
336,654 | <p>I've found the following code from here "<a href="http://www.boyet.com/Articles/CodeFromInternet.html" rel="nofollow noreferrer"><a href="http://www.boyet.com/Articles/CodeFromInternet.html" rel="nofollow noreferrer">http://www.boyet.com/Articles/CodeFromInternet.html</a></a>".<br/>
It returns the speed of the CPU i... | [
{
"answer_id": 359576,
"author": "Binoj Antony",
"author_id": 33015,
"author_profile": "https://Stackoverflow.com/users/33015",
"pm_score": 3,
"selected": false,
"text": " RegistryKey registrykeyHKLM = Registry.LocalMachine;\n string keyPath = @\"HARDWARE\\DESCRIPTION\\System\\CentralP... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336654",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34022/"
] |
336,664 | <p>I'm working on a java web application that uses thousands of small files to build artifacts in response to requests. I think our system could see performance improvements if we could map these files into memory rather than run all over the disk to find them all the time. </p>
<p>I have heard of mmap in linux, and m... | [
{
"answer_id": 336697,
"author": "unwind",
"author_id": 28169,
"author_profile": "https://Stackoverflow.com/users/28169",
"pm_score": 0,
"selected": false,
"text": "mmap()"
},
{
"answer_id": 336704,
"author": "mat",
"author_id": 42083,
"author_profile": "https://Stack... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336664",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
336,665 | <p>I have a VB6 class with a method which raises an error:</p>
<pre><code>Public Sub DoSomething
...
err.Raise 12345, description:="Error message"
...
End Sub
</code></pre>
<p>This method is called from a form:</p>
<pre><code>Public Sub ErrTest()
On Error Goto err1
obj.DoSomething
Exit Sub
err1:
MsgBox... | [
{
"answer_id": 336784,
"author": "onedaywhen",
"author_id": 15354,
"author_profile": "https://Stackoverflow.com/users/15354",
"pm_score": 4,
"selected": true,
"text": "Err.Raise"
}
] | 2008/12/03 | [
"https://Stackoverflow.com/questions/336665",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23368/"
] |
336,670 | <p>I'm using xslt to transform xml to an aspx file. In the xslt, I have a script tag to include a jquery.js file. To get it to work with IE, the script tag must have an explicit closing tag. For some reason, this doesn't work with xslt below.</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<xsl:styleshe... | [
{
"answer_id": 505612,
"author": "Chris Chilvers",
"author_id": 35233,
"author_profile": "https://Stackoverflow.com/users/35233",
"pm_score": 3,
"selected": false,
"text": "XmlDocument doc = new XmlDocument();\ndoc.LoadXml(\"<book><author>Trudi Canavan</author><title>Voice of the Gods</t... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336670",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
336,682 | <p>Can I use LoadLibrary method for to import a data of type struct??
excuse me for my English.
thanks.</p>
| [
{
"answer_id": 336752,
"author": "Johann Gerell",
"author_id": 6345,
"author_profile": "https://Stackoverflow.com/users/6345",
"pm_score": 3,
"selected": false,
"text": "bool GetFlubber(Flubber* flubber)"
},
{
"answer_id": 351660,
"author": "reuben",
"author_id": 41646,
... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336682",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42746/"
] |
336,695 | <p>is there a free set of controls to be used for representing the OLAP cubes in aspx pages? something like the ones from Dundas, but free and (if possible) cross-browser.</p>
<p>Thanks,
Lucian</p>
| [
{
"answer_id": 336752,
"author": "Johann Gerell",
"author_id": 6345,
"author_profile": "https://Stackoverflow.com/users/6345",
"pm_score": 3,
"selected": false,
"text": "bool GetFlubber(Flubber* flubber)"
},
{
"answer_id": 351660,
"author": "reuben",
"author_id": 41646,
... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336695",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11464/"
] |
336,696 | <p>This java program I am working on seems to hang on startup, so I tried using jconsole to debug the problem.
As it turns out it is waiting on a call to a method which is declared as -</p>
<pre><code>synchronized void stopQuery()
</code></pre>
<p>But here is the crazy part, the lock for the 'synchronized' method is ... | [
{
"answer_id": 336803,
"author": "Chris Kimpton",
"author_id": 48310,
"author_profile": "https://Stackoverflow.com/users/48310",
"pm_score": 0,
"selected": false,
"text": "\"Worker-2\" prio=10 tid=0x00002aad1da66400 nid=0x5165 waiting for monitor entry [0x0000000041b43000..0x0000000041b4... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336696",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14316/"
] |
336,712 | <p>What's the query syntax to determine the exact version number of the MySQL server software?</p>
| [
{
"answer_id": 336718,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 5,
"selected": true,
"text": "SHOW VARIABLES"
},
{
"answer_id": 336874,
"author": "Pawka",
"author_id": 33599,
"author_profile": "https:... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336712",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2899/"
] |
336,714 | <p>I'm beginner in Java. I'm reading data from device through serial port. I'm getting data for every one minute, but first reading is coming half, after that data is coming correctly.</p>
<p>Output I'm getting is: </p>
<blockquote>
<p>6050.003120815340006050.003120815350006050.0</p>
</blockquote>
<p>Correct outpu... | [
{
"answer_id": 336836,
"author": "kgiannakakis",
"author_id": 24054,
"author_profile": "https://Stackoverflow.com/users/24054",
"pm_score": 2,
"selected": false,
"text": "while (inputStream.available()>0) {\n int numBytes = inputStream.read(readBuffer);\n System.out.print(new String(re... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336714",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
336,716 | <p>How can I assert my <a href="http://en.wikipedia.org/wiki/Ajax_%28programming%29" rel="noreferrer">Ajax</a> request and test the JSON output from Ruby on Rails functional tests?</p>
| [
{
"answer_id": 395912,
"author": "nicholaides",
"author_id": 48424,
"author_profile": "https://Stackoverflow.com/users/48424",
"pm_score": 8,
"selected": true,
"text": "ActionDispatch::TestResponse#parsed_body"
},
{
"answer_id": 2481515,
"author": "Eric",
"author_id": 297... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336716",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16371/"
] |
336,731 | <p>How do I create a view dynamically in SQL Server using C#?</p>
| [
{
"answer_id": 336740,
"author": "Samiksha",
"author_id": 29515,
"author_profile": "https://Stackoverflow.com/users/29515",
"pm_score": 2,
"selected": false,
"text": "query = \" Create View [Viewname] Select ....\";\n"
},
{
"answer_id": 336863,
"author": "Coolcoder",
"aut... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336731",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18709/"
] |
336,755 | <p>In C# is it guaranteed that expressions are evaluated left to right? </p>
<p>For example:</p>
<pre><code>myClass = GetClass();
if (myClass == null || myClass.Property > 0)
continue;
</code></pre>
<p>Are there any languages that do not comply?</p>
| [
{
"answer_id": 336770,
"author": "unwind",
"author_id": 28169,
"author_profile": "https://Stackoverflow.com/users/28169",
"pm_score": 0,
"selected": false,
"text": "||"
},
{
"answer_id": 336772,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stack... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336755",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
336,756 | <p>This code is not working on IE8 at all. FF3 is executing but the page is blank and seems loading not ending.</p>
<p>My code is:</p>
<pre><code>$("#leaderBoard").html("<script2 language=\"javascript2\"> document.write('<scr'+'ipt language=\"javascript21.1\">alert(1)</scri'+'pt>'); </script2>... | [
{
"answer_id": 336807,
"author": "adam",
"author_id": 33604,
"author_profile": "https://Stackoverflow.com/users/33604",
"pm_score": 0,
"selected": false,
"text": "$(document).ready(function() {\n // your code here\n});\n"
},
{
"answer_id": 336812,
"author": "Tomalak",
"au... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336756",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
336,759 | <p>I am curious to know How the Loader Maps DLL in to Process Address Space. How loader does that magic. Example is highly appreciated.</p>
<p>Thanks in advance.</p>
| [
{
"answer_id": 6375826,
"author": "0xC0000022L",
"author_id": 476371,
"author_profile": "https://Stackoverflow.com/users/476371",
"pm_score": 3,
"selected": false,
"text": "DLLMain()"
}
] | 2008/12/03 | [
"https://Stackoverflow.com/questions/336759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38038/"
] |
336,771 | <p>I'd like to run some C++ code while the Windows Mobile PocketPC is (or seems) being suspended. An example what I mean is the HTC Home plugin that shows (among others) a tab where the HTC Audio Manager can be used to play back mp3 files. When I press the on/off button, the display goes black, but the audio keeps play... | [
{
"answer_id": 917695,
"author": "vividos",
"author_id": 23740,
"author_profile": "https://Stackoverflow.com/users/23740",
"pm_score": 3,
"selected": true,
"text": "PowerPolicyNotify(PPN_UNATTENDEDMODE, TRUE)"
}
] | 2008/12/03 | [
"https://Stackoverflow.com/questions/336771",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23740/"
] |
336,775 | <p>Continuing <a href="https://stackoverflow.com/questions/308481/writing-the-f-recursive-folder-visitor-in-c-seq-vs-ienumerable">my investigation</a> of expressing F# ideas in C#, I wanted a pipe forward operator. For anything wrapped in a IEnumerable, we already have it, as you can .NextFunc() to your heart's content... | [
{
"answer_id": 336805,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 1,
"selected": false,
"text": "IEnumerable<T>"
},
{
"answer_id": 337846,
"author": "Daniel Earwicker",
"author_id": 27423,
"author_... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336775",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11410/"
] |
336,781 | <p>How can I read a Chinese text file using C#, my current code can't display the correct characters:</p>
<pre><code>try
{
using (StreamReader sr = new StreamReader(path,System.Text.Encoding.UTF8))
{
// This is an arbitrary size for this example.
string c = null;
while (sr.Peek() &... | [
{
"answer_id": 336786,
"author": "leppie",
"author_id": 15541,
"author_profile": "https://Stackoverflow.com/users/15541",
"pm_score": 1,
"selected": false,
"text": "Encoding.Unicode"
},
{
"answer_id": 336797,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile"... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336781",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
336,813 | <p>I understand they both don't change the URL that the client sees. Is there anything in them that makes one of them preferable over the other?<br>
I'm planning to use it in the Application_BeginRequest in Global.asax, but also in regular aspx page.</p>
| [
{
"answer_id": 336829,
"author": "netadictos",
"author_id": 31791,
"author_profile": "https://Stackoverflow.com/users/31791",
"pm_score": 4,
"selected": true,
"text": "Context.RewritePath()"
}
] | 2008/12/03 | [
"https://Stackoverflow.com/questions/336813",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/278/"
] |
336,814 | <p>Session transcript:</p>
<pre><code>> type lookma.c
int main() {
printf("%s", "no stdio.h");
}
> cl lookma.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
lookma.c
Microsoft (R) Incremental Link... | [
{
"answer_id": 336825,
"author": "Chris Young",
"author_id": 9417,
"author_profile": "https://Stackoverflow.com/users/9417",
"pm_score": 5,
"selected": false,
"text": "int printf();\n"
},
{
"answer_id": 336844,
"author": "qrdl",
"author_id": 28494,
"author_profile": "... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20310/"
] |
336,817 | <p>I have a user control that I'm building. It's purpose is to display the status of a class to the user. Obviously, this does not matter, and will slow things down when the control runs in the IDE, as it does as soon as you add it to a form.</p>
<p>One way to work around this would be to have the control created an... | [
{
"answer_id": 336830,
"author": "TcKs",
"author_id": 20382,
"author_profile": "https://Stackoverflow.com/users/20382",
"pm_score": 5,
"selected": true,
"text": "public static bool IsInRuntimeMode( IComponent component ) {\n bool ret = IsInDesignMode( component );\n return !ret;\n}... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336817",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6389/"
] |
336,826 | <p>SQL Server Full Text Search uses language specific Word Breakers. </p>
<p>For the German language this is used to break/split words including compound words. However, it appears not all known compound words are included in the Word Breaker. I would like to know if a list is available of the words the Word Breaker d... | [
{
"answer_id": 336830,
"author": "TcKs",
"author_id": 20382,
"author_profile": "https://Stackoverflow.com/users/20382",
"pm_score": 5,
"selected": true,
"text": "public static bool IsInRuntimeMode( IComponent component ) {\n bool ret = IsInDesignMode( component );\n return !ret;\n}... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42434/"
] |
336,854 | <p>Specifically, once I get the WCAG Anaylsis warnings for a website into my warnings window I can't get rid of them, until I close down studio. When building another project in the same solution they stay there.</p>
<p>Anyone got any ideas?</p>
| [
{
"answer_id": 336972,
"author": "Hath",
"author_id": 5186,
"author_profile": "https://Stackoverflow.com/users/5186",
"pm_score": 0,
"selected": false,
"text": "website -> property pages -> accessibility -> uncheck \"show warnings\"\n"
}
] | 2008/12/03 | [
"https://Stackoverflow.com/questions/336854",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39643/"
] |
336,859 | <p>I've recently started maintaining someone else's JavaScript code. I'm fixing bugs, adding features and also trying to tidy up the code and make it more consistent.</p>
<p>The previous developer used two ways of declaring functions and I can't work out if there is a reason behind it or not.</p>
<p>The two ways are:</... | [
{
"answer_id": 336868,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 13,
"selected": true,
"text": "functionOne"
},
{
"answer_id": 338053,
"author": "Eugene Lazutkin",
"author_id": 26394,
"author_profile":... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31569/"
] |
336,866 | <p>I want to create a very simple HTML/AJAX based GUI for a Python program. So the frontend is a HTML page which communicates with the program via AJAX. Can you give me a minimal implementation for the server-side using the python <code>SimpleHTTPServer.SimpleHTTPRequestHandler</code>?</p>
<p>A simple example would be... | [
{
"answer_id": 336894,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 4,
"selected": false,
"text": "from wsgiref.simple_server import make_server, demo_app\n\nhttpd = make_server('', 8000, demo_app)\nprint \"Serving HTTP on... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11992/"
] |
336,884 | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/390900/cant-operator-be-applied-to-generic-types-in-c">Can’t operator == be applied to generic types in C#?</a> </p>
</blockquote>
<p>I've got the following generic class and the compiler complains that "<code>... | [
{
"answer_id": 336913,
"author": "Sergiu Damian",
"author_id": 41345,
"author_profile": "https://Stackoverflow.com/users/41345",
"pm_score": 5,
"selected": true,
"text": "public class Example<TValue>\n{\n private TValue _value;\n public TValue Value\n {\n get { return _va... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4918/"
] |
336,897 | <p>In a webservice I see this code:</p>
<pre><code><WebMethod()> _
Public Function dosomething() As Boolean
Try
If successful Then
Return True
Else
Return False
End If
Catch ex As Exception
Throw ex
End Try
End Function
</code></pre>
<p>What's ... | [
{
"answer_id": 336914,
"author": "GEOCHET",
"author_id": 5640,
"author_profile": "https://Stackoverflow.com/users/5640",
"pm_score": 6,
"selected": false,
"text": "throw;"
},
{
"answer_id": 336934,
"author": "Dennis C",
"author_id": 40214,
"author_profile": "https://S... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336897",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19307/"
] |
336,903 | <p>Is there in Windows API or in MFC any analog to <code>atoh()</code> function?</p>
<p><code>atoh()</code> converts a string containing a hexadecimal number into an unsigned number like</p>
<pre><code>unsigned x = atoh("A");
</code></pre>
<p>and x = 10 after the operation.</p>
<p>In Windows I have a CString, conta... | [
{
"answer_id": 336908,
"author": "unwind",
"author_id": 28169,
"author_profile": "https://Stackoverflow.com/users/28169",
"pm_score": 2,
"selected": false,
"text": "unsigned long ten = strtoul(\"a\", NULL, 16);"
},
{
"answer_id": 336910,
"author": "activout.se",
"author_i... | 2008/12/03 | [
"https://Stackoverflow.com/questions/336903",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4378/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.