text string | meta dict |
|---|---|
Q: My MySQL after INSERT trigger isn't working? Why? I've created a trigger that resembles the following:
delimiter //
CREATE TRIGGER update_total_seconds_on_phone AFTER INSERT
ON cdr
FOR EACH ROW
BEGIN
IF NEW.billsec > 0 AND NEW.userfield <> NULL THEN
UPDATE foo
SET total_seconds = total_seconds + NEW.billsec
WHERE ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Save attribute value of xml element with single quotes using linq to xml How do I make the XDocument object save an attribute value of a element with single quotes?
A: I'm not sure that any of the formatting options for LINQ to XML allow you to specify that. Why do you need to? It's a pretty poor kind of XML handle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I retain the indentation of numbered lists? How do you retain the indentation of numbered lists? I have a page where the numbers are pushed off the page. How can I prevent this?
<ol style="padding: 0">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>
A: With a CSS rule like this:
ol { mar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: silverlight keydown event doesn't fire for arrow keys I have a canvas inside a scrollview. I attached a keydown event handler to the scrollview. For most keys, the handler gets called.
However, for the arrow keys, the handler does not get called. Instead, the scrollview gets scrolled in the appropriate direction.
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222826",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do you organize your version control repository? First, I know about this: How would you organize a Subversion repository for in house software projects?
Next, the actual question:
My team is restructuring our repository and I'm looking for hints on how to organize it. (SVN in this case).
Here's what we came up ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "108"
} |
Q: What's a more concise way of finding text in a set of files? I currently use the following command, but it's a little unwieldy to type. What's a shorter alternative?
find . -name '*.txt' -exec grep 'sometext' '{}' \; -print
Here are my requirements:
*
*limit to a file extension (I use SVN and don't want to be s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: handling dbnull data in vb.net I want to generate some formatted output of data retrieved from an MS-Access database and stored in a DataTable object/variable, myDataTable. However, some of the fields in myDataTable cotain dbNull data. So, the following VB.net code snippet will give errors if the value of any of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "81"
} |
Q: WPF: Changes to textbox with focus aren't committed until after the Closing event fires I have a WPF window for editing database information, which is represented using an Entity Framework object. When the user closes the window, I'd like to notice in the Closing event whether the information has changed and show a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Most efficient way to convert an HTMLCollection to an Array Is there a more efficient way to convert an HTMLCollection to an Array, other than iterating through the contents of said collection and manually pushing each item into an array?
A: For a cross browser implementation I'd sugguest you look at prototype.js $... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "613"
} |
Q: Corel draw 13 mysql query Is there a way to do a mysql database query in Corel Draw 13(X3)?
A: If I recall correctly, CorelDraw uses VBA as scripting language, no?
If so, if it is not restricted, you can probably use ODBC to do that. See MySQL Connector/ODBC for details.
A: To follow up PhiLho's point, here's a G... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to assign null to sql entity columns I have generated linq to sql entites but cannot figure out how to assign null to a nullable column. whenever i try to assign null to it it says "there is no implicit type conversion between int and ". BTW the type of the field is int? and the database column is also nullable.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What does 'super' do in Python? - difference between super().__init__() and explicit superclass __init__() What's the difference between:
class Child(SomeBaseClass):
def __init__(self):
super(Child, self).__init__()
and:
class Child(SomeBaseClass):
def __init__(self):
SomeBaseClass.__init__(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "732"
} |
Q: Can LINQ to SQL generated objects be decoupled? I like LINQ to SQL, but it seems like the classes it generates are tightly coupled to the database they are stored in, which seems like a Bad Thing.
For example, using ye olde Northwind database, if I create the dbml with the Products table, a Product class is generat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Extend a LINQ entity-class with constructor methods and make that entity-class inherit from it's DataContext class Is it possible to extend LINQ-to-SQL entity-classes with constructor-methods and in the same go; make that entity-class inherit from it's data-context class?--In essence converting the entity-class into... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: intelligent database search The issue is there is a database with around 20k customer records and I want to make a best effort to avoid duplicate entries. The database is Microsoft SQL Server 2005, the application that maintains that database is Microsoft Dynamics/SL. I am creating an ASP.NET webservice that inter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: In a multi-threaded C++ app, do I need a mutex to protect a simple boolean? I have a multi-threaded C++ app which does 3D rendering with the OpenSceneGraph library. I'm planning to kick off OSG's render loop as a separate thread using boost::threads, passing a data structure containing shared state in to the thread.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Want to host WCF Webservice as Windows Service as against to Hosting in IIS I want to expose few web services but thinking of hosting those as Windows Service as against hosting in IIS.
Is it a good practice?
If yes? How do I make it secured?
I want to authenticate the users who are accessing it (against our custo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: In PHP, is there a way to capture the output of a PHP file into a variable without using output buffering? In PHP, I want to read a file into a variable and process the PHP in the file at the same time without using output buffering. Is this possible?
Essentially I want to be able to accomplish this without using ob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Computer Science for the elderly I learned C++ when it was C with classes. I find myself increasingly disliking new technologies like XML and Garbage collection.
On the other hand, I have discovered scripting languages like Lua and Python. And I find myself rather liking a hybrid environment of C++, with determinist... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How Do You Get the Height of the Titlebar Using Java (Swing)? I am getting a MouseEvent in Java. the getPoint() method is adding the height of the title bar into the y portion of the coordinate.
I was wondering how I can find the height of the title bar of the current window in order to offset the y value by the co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Using a UITableViewController with a small-sized table? When using a UITableViewController, the initWithStyle: method automatically creates the underlying UITableView with - according to the documentation - "the correct dimensions".
My problem is that these "correct dimensions" seem 320x460 (the iPhone's screen size... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Safe, universal, way to use addEventHandler in Javascript? Before I get into the details of this problem, I'd like to make the situation clear. Our web analytics company works as a consultant for large sites, and (other than adding a single SCRIPT tag) we have no control over the pages themselves.
Our existing scrip... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: My images ask for a password to the local network (Under ASP/IIS) Not quite sure how to troubleshoot this. I'm maintaining an ASP site, its mostly static, but there's this one include page which brings the menu.
Just recently I replaced some images, but now when I try the site, I get a prompt for a password as if It... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Scalability on the web I've been arguing with some friends on the university, and we can't get to a point to which is the framework with more scalability for web applications (and still very fast).
One calls for jsp, the other one for ruby other for php and so on. Could i ask you to clarify us on what as more scalab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: WCF Error Logging at Service Boundary I'm trying to implement an IErrorHandler in my WCF service in order to log every exception that hits the service boundary before it's passed to the client. I already use IErrorHandlers for translating Exceptions to typed FaultExceptions, which has been very useful. According t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why is the DIV with ID Form dropping below the adjacent DIVs? I cannot correctly position the div form in my layout.
By looking at my div placement and css below, does anyone have an idea what I could be doing wrong?
#floorplans {
float: left;
height: 165px;
width: 203px;
border-right: 1px solid #FFFFF... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: create hyperlink in gridview asp.net c# My code is in c# asp.net 3.5
In the following code the "Msg" has many words with spaces and characters (eg:Failed to prepare Sync Favorites : Directory does not exist: \STL-FNP-02\ryounes$\Sync\Favorites). This "Msg" is pulled from database to a gridview. I am not able to crea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why calling Dispose() on BinaryReader results in compile error? I have the following class which uses BinaryReader internally and implements IDisposable.
class DisposableClass : IDisposable
{
private BinaryReader reader;
public DisposableClass(Stream stream)
{
reader = new Bi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to Persist Variable on Postback I created a single page (with code behind .vb) and created Public intFileID As Integer
in the Page load I check for the querystring and assign it if available or set intFileID = 0.
Public intFileID As Integer = 0
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/222999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Using IP Addresses or Host Headers in IIS I was wondering about the best practices regarding this? I know there are two ways to use IIS and host multiple websites.
The first is to have an IP for every website
The second is to use host headers, and a single IP Address for IIS
I was wondering which was the best pra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: String Manipulation in MS SQL Server Can anyone give me a complete list of string manipulation function in Microsoft SQL Server (2000 or 2005)?
(I don't need a lecture about doing all my string processing in the presentation layer. And, I don't need a list of MySQL string functions.)
Thanks!
A: String Functions (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a type-safe Java implementation of 'reduce'? I often need to run reduce (also called foldl / foldr, depending on your contexts) in java to aggregate elements of an Itterable.
Reduce takes a collection/iterable/etc, a function of two parameters, and an optional start value (depending on the implementation ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Flex Builder 3: Debugger traces error, when fixing the as file, keeps throwing same error, stuck in past I'm running my first project that I'm compiling with flex builder. Before I used to compile with flash or flash develop.
For a while it worked pretty neatly. But as soon as it start throwing typeerrors, I can't s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the scope of the "using" declaration in C++? I'm using the 'using' declaration in C++ to add std::string and std::vector to the local namespace (to save typing unnecessary 'std::'s).
using std::string;
using std::vector;
class Foo { /*...*/ };
What is the scope on this declaration? If I do this in a header... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "115"
} |
Q: tf-idf and previously unseen terms TF-IDF (term frequency - inverse document frequency) is a staple of information retrieval. It's not a proper model though, and it seems to break down when new terms are introduced into the corpus. How do people handle it when queries or new documents have new terms, especially if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Open source web grid control with copy/paste support to excel spreadsheets I am looking for a web datagrid control to integrate in ASP.NET app.
The most important feature required is the ability to copy-paste from and to excel spreadsheet right from the grid on the web page.
Other than Google spreadsheets I found th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using a CMYK PSD without Photoshop I have run into a common, yet difficult problem. I do not use Photoshop for image manipulation. Since all my work is web-based, GIMP does what I need in 99% of the situations. The problem is that I occasionally receive PSD files with CMYK encoding rather than RGB encoding. These fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: What methods do wikis use for merging concurrent edits? If two users edit the same wiki topic, what methods have been used in wikis (or in similar collaborative editing software) to merge the second user's edits with the first?
I'd like a solution that:
*
*doesn't require locking
*doesn't lose any additions to th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Dealing with SEC_I_RENEGOTIATE and TLS1_ALERT_NO_RENEGOTIATION in SChannel I'm working with SChannel at the moment for an async (IOCP) based server and I've got most things working fine but I'm having a problem with renegotiation. Specifically, when peer A sends peer B a request to renegotiate and peer B responds wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Find CorelDraw Web links Does anyone know how to get the Web links in a CorelDraw document? I am using CorelDraw 13 X3 on Windows, and it comes with a Link manager and VBA.
A: Looks like the following will get the address of a shape.
Dim s As Shape
For Each s In ActiveDocument.ActivePage.Shapes
s.URL.Address ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to inherit constructors? Imagine a base class with many constructors and a virtual method
public class Foo
{
...
public Foo() {...}
public Foo(int i) {...}
...
public virtual void SomethingElse() {...}
...
}
and now i want to create a descendant class that overrides the virtual method:
public ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "192"
} |
Q: How can I create an HttpListener class on a random port in C#? I would like to create an application that serves web pages internally and can be run in multiple instances on the same machine. To do so, I would like to create an HttpListener that listens on a port that is:
*
*Randomly selected
*Currently unused... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: How to find the Vertical size of a window displaying a web page I have an ASP.NET Site that has a single Master Page. On one of my pages in this site I display a PDF file as the content of the page.
I need a way to know the size that I can make the PDF control so that I do not create a scroll bar for the webpage (t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Database of Software I'm looking for a database of commonly installed Windows software. At minimum I need the name of the software and the executable name, but it'd also be nice to have the publisher and the common installation path, etc. Basically, I'd like to be able to query it to find all the software by Adobe a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Disable Debugging Output I'd like to sprinkle some print statements in my code to show where I am and print important values to a console window.
How do I do that, but then be able to turn it off for the release version?
A: Use Log4net with logging at debug level in release and warn or error level in production.
Be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Creating a client editable events calendar in html or php A prospective client wants to have a calendar feature on their website. They want the option to go edit this calendar to update the events. Does Word Press offer something like this?
A: I've seen people use Google Calendar for this. Then you can easily embe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: I want to write a desktop OSX or Windows app in Javascript -- any experiences? I'd like to write some small applications for Windows and OSX.
Portable is good. For instance, the simple TclKit solution for TCL would work well if I could stand to look at Tcl for any length of time.
I'm considering using Javascript + ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to export SSRS charts to PDF at high resolution? I have a simple SQL Server 2005 Reporting Services report with a bar chart. When I print directly from the preview window in Visual Studio everything looks good, but if I export the report to a PDF file and print it then the labels and even some of the vertical li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Converting between oracle.sql.TIMESTAMPTZ and standard JDBC classes for DbUnit I'm running Oracle 10g and have columns with Type_Name
TIMESTAMP(6) WITH TIME ZONE
When inflated into java classes they come out as
oracle.sql.TIMESTAMPTZ
But DbUnit can't handle converting Oracle specific classes to Strings for writing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Where do you record validation rules for form data in a web application? Say you have a web form with some fields that you want to validate to be only some subset of alphanumeric, a minimum or maximum length etc.
You can validate in the client with javascript, you can post the data back to the server and report back... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: MySQL correlated subquery Having difficulty articulating this correlated subquery. I have two tables fictitious tables, foo and bar. foo has two fields of foo_id and total_count. bar has two fields, seconds and id.
I need to aggregate the seconds in bar for each individual id and update the total_count in foo. id i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I view more than one version of IE on my computer? Where I work we only have IE 7. I want to view IE 6 on my computer also.
How can I view both on the same computer?
I want more than just a screen shot. I want to view both versions of IE as I write code.
A: Microsoft makes available virtual machine image... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I use an old version of Rails with Aptana RadRails? I'm new to Rails development, and I'm trying to figure out how to use an older version of Rails with Apatana's RadRails IDE. I'm trying to help out a friend who has a site built on older version than the one that automatically gets downloaded by RadRails, a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you handle the output of a dynamically generated form in ASP.NET MVC? Say you create a form using ASP.NET MVC that has a dynamic number of form elements.
For instance, you need a checkbox for each product, and the number of products changes day by day.
How would you handle that form data being posted back to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I write a hook that gets called when a RubyGem is installed? I'd like to write a Ruby snippet that gets run when my Gem is first installed via [sudo ]gem install mygem. Can it be done?
A: It doesn't look like it's really supported. I found a "post_install_message" attribute that you should be able to set i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to call COM function from PHP with OLE_COLOR as an argument? I am trying to call a COM object from PHP using the COM interop extension. One function requires an OLE_COLOR as an argument? Is there any way to pass this kind of value from PHP?
I have tried passing a simple integer value with no success.
$this->oBui... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Parse filename from full path using regular expressions in C# How do I pull out the filename from a full path using regular expressions in C#?
Say I have the full path C:\CoolDirectory\CoolSubdirectory\CoolFile.txt.
How do I get out CoolFile.txt using the .NET flavor of regular expressions? I'm not really good with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: How do I add an ODBC driver to a MAMP environment? I'm working on something that was built on a PC set-up using php and an ms access database. When I port the app to my MAMP environment, I get
Fatal error: Call to undefined function odbc_connect() in /path/to/index.php on line 37
line 37 looks like this:
return od... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Detecting duplicate music files I've got two directories containing ~20 GB of music files (mostly mp3, some ogg), and I would like to detect all duplicate songs. There are two complicating factors:
*
*A song may have different filenames in the two directories.
*Two files containing the same song may have differe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Subversion, external references, binaries, and MSBuild/Visual Studio I have a project that is stored in a Subversion repository.
In this repository, in a different folder, I have a set of libraries that I use in many of my projects. These libraries are stored as binary files, ie. the dll's, pdb's, and xml's.
Here's ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's the point of the garbage collector SqlConnection connection = new SqlConnection(FROM_CONFIGURATION)
SqlCommand command = new SqlCommand("SomeSQL", connection);
connection.Open();
command.ExecuteNonQuery();
command.Dispose();
connection.Dispose();
It is recommended that the code above should include try/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I create a Delphi TSpeedButton or SpeedButton in C# 2.0? How can I create a Delphi TSpeedButton or SpeedButton in C# 2.0?
A: Using a Button and setting the TabStop property to false only works when tapping through the form...
If you need (as I did) a button that does not get selected when clicking on it, th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Append newline to flat-file schema in BizTalk 2006 R2 I have a flat-file schema that has a header and detail records. It looks something like this:
HDR**2401*XX0062484*22750***20081006000000*000*******
LIN**001*788-0538-001*4891-788538010*20000*EA**0000***
I need to append two blank lines at the end of the message.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Referencing different versions of the same assembly If A references assembly B 1.1 and C, and C references B 1.2, how do you avoid assembly conflicts?
I nievely assumed C's references would be encapsulated away and would not cause any problems, but it appears all the dll's are copied to the bin, which is where the p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: C++ example of Coding Horror or Brilliant Idea? At a previous employer, we were writing binary messages that had to go "over the wire" to other computers. Each message had a standard header something like:
class Header
{
int type;
int payloadLength;
};
All of the data was contiguous (header, immediately fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How do I insert the contents of a subselect in MS SQL Server? I want to do something like
insert into my table (select * from anothertable where id < 5)
What is the correct MSSQL syntax?
Thanks!
A: Is this what you're looking for?
INSERT INTO MyTable
SELECT * FROM AnotherTable
WHERE AnotherTable.ID < 5
A: That ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WinForms: How to customize a tooltip when it is about to be shown? i want to have a tooltip for each item in a treeview, and each item in a listview, and different for each subitem (i.e. column) in the listview.
i can determine the text i want to show (using hit testing with the current mouse position, etc):
private... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Oracle database role - select from table across schemas without schema identifier Which Oracle database role will allow a user to select from a table in another schema without specifying the schema identifier?
i.e., as user A- Grant select on A.table to user B;
B can then- "Select * from table" without specifying ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can I create a file that sits next to a .Designer.cs file in Visual Studio? In Visual Studio, two files are created when you create a new Windows Form in your solution (e.g. if you create MyForm.cs, MyForm.Designer.cs and MyForm.resx are also created). These second two files are displayed as a subtree in the Solutio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Retrieving DLL Metadata from VBScript? Using only VBScript (launched from Windows Scripting Host) can I pull the DLL metadata from kernel32.dll? Specifically, I'm looking for the version info and the architecture specified in the DLL header. Can this be done without any dependencies?
A: If you're just looking for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I use MSBuild to update version information only when an assembly has changed? I have a requirement to install multiple web setup projects (using VS2005 and ASP.Net/C#) into the same virtual folder. The projects share some assembly references (the file systems are all structured to use the same 'bin' folde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How far can you push Flex built-in tool-tip functionality? Looking at tooltip support in Flex, I've seen you can apply colors and styles to modify the appearance.
Is it possible to do cooler stuff like make tool tips appear with a simple animation like how menus work on modern Windows apps?
A: Take a look at the To... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I open alternative webbrowser (Mozilla or Firefox) and show the specific url? I know there is built-in Internet explorer, but what I'm looking for is to open Firefox/Mozilla window (run the application) with specified URL. Anyone can tell me how to do that in C# (.nET) ?
A: You can do this:
System.Diagno... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What's the syntax for variables in an MSSQL stored procedure? I have a simple query like this:
select * from mytable where id > 8
I want to make the 8 a variable. There's some syntax like
declare @myvar int
myvar = 8
but I don't know the exact syntax.
What is it?
Thanks!
A: declare @myvar int
Set @myvar = 8
s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is the best way to call a Web Service from Windows Mobile (.NET 3.5) What is the preferred way using the CF 3.5 to get get data from a web service? I am getting back a series of tables from the web service.
A: As John points out, its really no different than a desktop call. You can typically add a references... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .NET EXE memory footprint Even a simple Notepad application in C# consumes megabytes of RAM as seen in the task manager. On minimizing the application the memory size in the task manager goes down considerably and is back up when the application is maximized.
I read somewhere that the .NET process reserves a lot of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Supposedly valid regular expression doesn't return any data in PHP I am using the following code:
<?php
$stock = $_GET[s]; //returns stock ticker symbol eg GOOG or YHOO
$first = $stock[0];
$url = "http://biz.yahoo.com/research/earncal/".$first."/".$stock.".html";
$data = file_get_contents($url);
$r_header = '/Prev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: asp.net page methods returning undefined I am trying to use page methods in my asp.net page. I have enable page methods set to true on the script manager, the webmethod attribute defined on the method, the function is public static string, I know the function works because when I run it from my code behind it gener... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223308",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does noscript content load in bg Does the html tag noscript load the content in the background, even when javascript is enabled?
I have a random image that is called by JS each time the pageloads, but I would like all of the links (not just the current random one) to be crawled. At the same time, I don't want the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Custom headers possible with URLRequest/URLStream using method GET? Quite simple really:
var req:URLRequest=new URLRequest();
req.url="http://somesite.com";
var header:URLRequestHeader=new URLRequestHeader("my-bespoke-header","1");
req.requestHeaders.push(header);
req.method=URLRequestMethod.GET;
stream.load(req);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is equivalent of the Nz Function in MS Access in MySQL? Is Nz a SQL standard? What is MySQL equivalent of the Nz Function in Microsoft Access? Is Nz a SQL standard?
In Access, the Nz function lets you return a value when a variant is null. Source
The syntax for the Nz function is:
Nz ( variant, [ value_if_null ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to create an empty DOMElement I am using Xerces-c in my project, and would like to create a single DOMElement without having to create a whole new DOMDocument. Is such a thing possible?
A: I haven't seen a way. AFAIK the DOMDocument acts as the "memory pool" and all elements are created in this pool. In the Xer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to build a CD ISO image file from the windows command line? In an effort to satisfy "The Joel Test" question #2 "Can you make a build in one step?", I'm trying to complete a release candidate build script with the creation of a CD iso from the collection of files gathered and generated by the installer creator.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: HttpContext on instances of Controllers are null in ASP.net MVC This may not be the correct way to use controllers, but I did notice this problem and hadn't figured out a way to correct it.
public JsonResult SomeControllerAction() {
//The current method has the HttpContext just fine
bool currentIsNotNull =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Expression Web Source Control Integration? Does anyone know if Expression Web (and Blend, for that matter) has any form of direct integration with source control?
Right now that's about the only real downside we've discovered in a couple days of using it. But it's a big downside.
Quick edit:
Yes, we're currently us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JQuery inserting a layer above existing content I'm trying to have a new layer appear above existing content on my site when a link/button is clicked. I am using jquery - but the code I have doesn't seem to work as expected.
Here is what I have:
$(document).ready(function(){
$("#button").click(function () {
$(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How does one cancel/unaccept a drag-and-drop operation in Flex 3? Goal:
Allow the user to delete a record by dragging a row from an AdvancedDataGrid, dropping it onto a trash-can icon and verify the user meant to do that via a popup alert with "OK" and "Cancel" buttons.
What is working:
*
*Dragging/Droppin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Customizing java.text formatters for different Locales Building a java application that supports different Locales, but would like to customize the DateFormat display beyond what is available between FULL, LONG, MEDIUM, and SHORT DateFormat options. Would like to do things like place a character between the date an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Pros and cons of having dedicated application pools over keeping web applications in one default app pool What are pros and cons of having dedicated application pools over keeping web applications in one default app pool?
A: I agree with Jason.
Also, you can designate different users (such as a Windows account) fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Should I Print the Exception Stack Trace? How inefficient is it to get the stack trace for an exception? I know it's costly, but how costly? Should they definitely not be used in production environment?
A: If exceptions are on your critical path, you've already got performance issues. Getting the stack trace to t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you get the text from an HTML 'datacell' using BeautifulSoup I have been trying to strip out some data from HTML files. I have the logic coded to get the right cells. Now I am struggling to get the actual contents of the 'cell':
here is my HTML snippet:
headerRows[0][10].contents
[<font size="+0"><font fac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: mdi app with multiple GUI threads C# MDI application with separate GUI threads for each child in MDI is that possible ?
For example if one of the child forms is blocked by some synchronous request it freezes the entire container ( MDI Parent ) and the other windows open also become in accessible.
In general , is it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Determining the reason for a stalled process on Linux I'm trying to determine the reason for a stalled process on Linux. It's a telecom application, running under fairly heavy load. There is a separate process for each of 8 T1 spans. Every so often, one of the processes will get very unresponsive - up to maybe 50... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Rails ignoring render and redirect_to I've got a really simple rails question here but I can't seem to find the answer anywhere. I guess some of the problems stem from me following a tutorial for Rails 1.2 with Rails 2.1. Anyway..
I'm writing a blog system and I'm implementing the comments bit. I have comments displ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: I cannot commit changes after merge in SVN I had a problem with committing changes after merging two branches of my project using TortoiseSVN.
Here are details:
I did a merge branch to trunk of project which I am working on.
Project includes main repository and libraries joint to main repository as svn external (li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: When does urllib2 actually download a file from a url? url = "http://example.com/file.xml"
data = urllib2.urlopen(url)
data.read()
The question is, when exactly will the file be downloaded from the internet? When i do urlopen or .read()? On my network interface I see high traffic both times.
A: Witout looking at ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How does GB18030 differ from Unicode? How does the Chinese GB18030 code set differ from Unicode?
What special techniques are required for handling GB18030?
Are there any (open source) libraries for handling GB18030?
A: As per the Wikipedia article on GB18030, "GB18030 can be be considered a Unicode Transformation F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: ASP.NET MVC: Best way to get form checkboxes into many-to-many DB assoc table with LINQ To SQL? I have an ASP.NET MVC view which contains checkboxes for user-defined categories.
<td><% foreach (Category c in (List<Category>)ViewData["cats"]) {
if (selCats.ContainsKey(c.ID)) { %>
<input name="CategoryID... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: What are the major drawbacks to using OpenOffice DB vs. Microsoft Access? I know that Open Office Database uses a java database backend. Does anyone have any insight on how this compares to the Jet Database Engine?
Also is the query designer/reporting nearly as robust as MS Access?
A: It's odd for me to say this, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is there way for a GWT program to tell if it's in hosted or web mode? I would like my GWT program to be able to determine whether it's in hosted mode or in web mode. Is there a way to do this?
Thanks!
A: GWT.isScript() returns true in non hosted mode and false in hosted mode.
http://google-web-toolkit.googlecod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |