text string | meta dict |
|---|---|
Q: Creating application shortcut in a directory How do you create an application shortcut (.lnk file) in C# or using the .NET framework?
The result would be a .lnk file to the specified application or URL.
A: It's not as simple as I'd have liked, but there is a great class call ShellLink.cs at
vbAccelerator
This code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "71"
} |
Q: Why is rake throwing this Rails migration error? I have two machines... a development machine and a production machine. When I first brought my rails app onto the production server, I had no problem. I simply imported schema.rb by running rake db:schema:load RAILS_ENV=production. All was well.
So, then on my deve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Are pipes considered dangerous to use in Windows, from a security standpoint? Are pipes considered dangerous to use in Windows, from a security standpoint?
A: Pipes aren't a particular security risk in Windows. If you're worried about security, make sure you set the security descriptor on the pipe to an appropriate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Changing text color in a DTPicker control In VB6, I have a DTPicker control on a form. (The DTPicker is the calendar date/time selector, included in Microsoft Windows Common Controls-2 6.0, available from the Components dialog.)
While there are many properties to affect the colors of the calendar when it's dropped d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Limitations of C# Action lambda code blocks C# .NET 3.5. I'm trying to understand the intrinsic limitation of the C# Action object. Within the lamda (are those, in fact, lamdas?), we can perform assignments, call functions, even execute a ternary operation, but we can't execute a multi-statement operation.
Is this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How are echo and print different in PHP?
Possible Duplicate:
Reference: Comparing PHP's print and echo
Is there any major and fundamental difference between these two functions in PHP?
A: To add to the answers above, while print can only take one parameter, it will allow for concatenation of multiple values, ie:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "230"
} |
Q: Java file extension regex I'm trying to come up with a Java regex that will match a filename only if it has a valid extension. For example it should match "foo.bar" and "foo.b", but neither "foo." nor "foo".
I've written the following test program
public static void main(String[] args) {
Pattern fileExtensionPatte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I record the time every time I log on and log off of Windows XP? I notice that Windows XP Event Viewer show a list of typical actions under System logs every time I start or shutdown Windows, and I can tell when my day starts and ends.
Is there anyways I can record the time every time I lock my screen and ev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: CAS: Running exe from intranet Before I get flamed and down-voted without mercy, my company will not allow the install of .NET3.5 on non-dev machines yet (others are currently on 3.0).
I have a managed exe on network share that needs to be able to run from there. This is a common problem with pre-.NET3.5SP1, but I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: The intersection point between a spline and a line I'm trying to find a way to calculate the intersection between a b-spline and a straight line. So far Google hasn't been much help.
A: A pure mathematical approach:
*
*Transform the spline and the line so that the line lies on the X axis.
*Calculate the points... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Unknown property 'MozOpacity' - meaning? I'm using Chris Pederick's Firefox addon "Web Developer 1.1.6". I get this warning when hitting a certain web page on my site:
Unknown property 'MozOpacity'. Declaration dropped.
What does this mean and how can I fix this on my site?
A: It's customary for browsers to pref... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Custom MembershipProvider Initialize method When overriding the MembershipProvider and calling it directly, is there a way to fill the NameValueCollection config parameter of the Initialize method without manually looking through the config file for the settings?
Obviously this Initialize is being called by asp.ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Open source examples of well designed applications Do you know of well designed open source applications that are instructive to analyse?
Specifically, I'm interested in practical applications object-relational mapping in C++ based programs, where there is a good separation between a domain model and persistence/ser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Can't find windows share despite having connected VPN I'm a programmer dammit, I should be allowed to ask these kinds of IT questions! :)
Anyway the problem is as follows. I'm writing an automatic build script to deploy code to a live windows 2003 server. To get access to the server I enabled the VPN role, and I can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: ListView with DataPager not working From everything I've read, it seemed that adding paging to a ListView control should be dead simple, but it's not working for me. After adding the ListView and DataPager controls to the form and wiring them together, I'm getting very odd behavior. The DataPager correctly limits th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Why is the form_load event is not called in my Winforms application? I don´t know why, but my form isn´t calling Form_Load event when it loads.
Any ideas why this might be happening?
A: Do you have the event handler set up?
Ultimately, there is going to be a line of code that looks something like this:
this.Load +=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How does Telnet server communicate to the client? I want to write a C# application where it connects to a telnet server and communicates to the server. I was wondering how a telnet server sends information to the client. I have looked (skimmed) over the Telnet RFC and looked at the incoming packets coming in from th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to add a web part page to a site definition? I have to create a site definition for a client that must contain pre-defined web part pages. I can create the web part pages but am at a loss when it comes to attaching them to the site on creation.
I know web part pages created through SharePoint are stored in a Doc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What have you done to customize your IDE? What tweaks / addins / themes do you have rigged up to make your IDE awesome? For example, in Visual Studio I color themes, CodeRush draws lines between braces, I always install and use the Consolas font and I have it setup to sync my settings across computers for when I ch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Open source examples of well designed Python applications Do you know of well designed open source applications that are instructive to analyse?
Of course this question is strictly related to this other post, but I am specifically interested in applications written in Python.
A: Django is a python package that is v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: BindingFlags for Type.GetMethods excluding property accessors Suppose I've got the following program:
namespace ReflectionTest
{
public class Example
{
private string field;
public void MethodOne() { }
public void MethodTwo() { }
public string Property
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Color mapping a texture in opengl I am displaying a texture that I want to manipulate without out affecting the image data. I want to be able to clamp the texel values so that anything below the lower value becomes 0, anything above the upper value becomes 0, and anything between is linearly mapped from 0 to 1.
Ori... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: AJAX, Rails, and dynamic loading of forms I have a rails app that has picked up a bit of traction, but I have a serious headache to deal with. It's a basic sort of asset manager application - users upload their photos, .pdfs, videos, etc., and the system allows them to manage how that asset is presented.
I started ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Should I always make my java-code thread-safe, or for performance-reasons do it only when needed? If I create classes, that are used at the moment only in a single thread, should I make them thread-safe, even if I don't need that at the moment? It could be happen, that I later use this class in multiple threads, and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Is TCHAR still relevant? I'm new to Windows programming and after reading the Petzold book I wonder: is it still good practice to use the TCHAR type and the _T() function to declare strings or should I just use the wchar_t and L"" strings in new code?
I will target only modern Windows (as of this writing versions 10... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "88"
} |
Q: Web site as image/clip art library with reference? As a software developer, I have done many web page applications and been doing blog for my programming experiences. I would like to use pictures in many cases. Pictures worth thousand words and they are universal language!
You could create your own clip art images o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I take numerous shapefiles and have them line up in GIS? I am trying to take a shapefile of subdivisions within a county that I have created and line it up with another shapefile that was given to me by the County Appraisal District (parcel data). When I try to get them to line up then my streets shapefiles... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: XmlReader - Read Current Node as string In the following snippet, using XmlReader, when I encounter an element. I would like to read it as-is, including all attributes and namespace decoration in the element. Using the oXml.Name property, I am only able to get the tag name. Is there a function to get the tag itself?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: RegSvr32 registering yet nothing actually registered A rather odd experience. Using the latest PDK (v7.3) from ActiveState, I used perlctrl to build a COM DLL. Perlctrl ran without a hitch. OLEView read the typelib okay. RegSvr32 registered it okay. However ... there's no sign of it in registry, and anything that tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Regex matching multiple occurrences per file and per line First post, so here goes. I'm writing a script that does intelligent search and replace on a file tree. Essentially, the script gets each file's contents into a buffer string and performs a match with a pre-defined pattern, in this case the pattern is /^[^\r\... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Generating a Deck of Cards I'm trying to make a simple blackjack program. Sadly, I'm having problems right off the bat with generating a deck of cards.
#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<char> deck;
char suit[] = {'h','d','c','s'};
char card[] = {'2','3','4',... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: SCM inside or outside the IDE? I've personally always used some type of external application for my SCM work; these days, that means tortoiseSVN on windows and versions.app on the mac. However, I keep running up against developers (namely eclipse users) who argue that SCM is better done within the IDE itself. I've... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Limiting assembly execution number of cpu cycles I have a project that dynamically loads in unknown assemblies implementing a specified interface. I don't know the contents or purposes of the assembly, other than it implementing my interface.
I need to somehow restrict the amount of processing power available to the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: In Silverlight, how to populate a sorted DataGrid from a dynamically changing connection I have a data set whose elements are displayed as rows in a DataGrid. The sort order for the rows changes in response to external events.
My initial thought was to store the rows as an ObservableCollection and resort the colle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SharePoint Development / Production Environments One of the biggest challenges that I've encountered with SharePoint is that it doesn't lend itself nicely to the typical project environment, which, at minimum, contain development and production environments. The issues I've run into the most are that content and li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Dynamic where clause in LINQ - with column names available at runtime Disclaimer: I've solved the problem using Expressions from System.Linq.Expressions, but I'm still looking for a better/easier way.
Consider the following situation :
var query =
from c in db.Customers
where (c.ContactFirstName.Contains("B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Adding a new project to an existing solution in TFS I added a project to an existing solution that is currently under source control using TFS, but for some reason I cannot check in the new project. When I view my pending changes, none of the files in the new project show up. None of the files have a plus (for a n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "74"
} |
Q: How do I create a rounded table with controls in the cells? I'm exploring the iPhone SDK and want to create and use a UI component like the figure below. A rounded table with cells in which each cell can have some label text, maybe an input text field and an action button that would take it to the next screen. The t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Do polymorphism or conditionals promote better design? I recently stumbled across this entry in the google testing blog about guidelines for writing more testable code. I was in agreement with the author until this point:
Favor polymorphism over conditionals: If you see a switch statement you should think polymorp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: Visual Studio (2008) mixed mode project dependencies. C-sharp project depends on C++ dll, but C++ dll is not getting re-built I have a Visual Studio 2008 solution with two projects in it. A C++ DLL and a Csharp application.
The Csharp application uses [DllImport] to access the functions in the DLL, and has a depende... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: determining the line terminator in Emacs I'm writing a config file and I need to define if the process expects a windows format file or a unix format file. I've got a copy of the expected file - is there a way I can check if it uses \n or \r\n without exiting emacs?
A: If it says (DOS) on the modeline when you open... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: firefox/IE designMode reference needed I am looking for reference documentation for designMode in Firefox 2/3 and IE 6/7/8. Does anyone have links to good references?
A:
Converting an app using document.designMode from IE to Mozilla.
http://starkravingfinkle.org/blog/2007/07/firefox-3-contenteditable/
http://sta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: using STL to find all elements in a vector I have a collection of elements that I need to operate over, calling member functions on the collection:
std::vector<MyType> v;
... // vector is populated
For calling functions with no arguments it's pretty straight-forward:
std::for_each(v.begin(), v.end(), std::mem_fun(&... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How can I setup iis with an ssl cert? Is there a way to programaticaly install a ssl cert for iis 6 and 7?
A: Yeah try IIS 6.0 Resource Kit Tools:
http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&displaylang=en
It includes a tool called: IISCertDeploy.vbs. This is a too... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are you using to unit test your C++ code? I'm looking into some possible options for unit testing C++ classes.
So, short and to the point, what are you using?
A: I'm using cppunit. It is a pretty good port of the iconic JUnit to c++.
A: UnitTest++. In the past I used Boost Test, which is also pretty good, bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: To foo bar, or not to foo bar: that is the question This was something originally discussed during a presentation given by Charles Brian Quinn of the Big Nerd Ranch at acts_as_conference. He was discussing what he had learned from instructing a Ruby on Rails Bootcamp to many people both new to programming and new t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Splitting strings in python I have a string which is like this:
this is [bracket test] "and quotes test "
I'm trying to write something in Python to split it up by space while ignoring spaces within square braces and quotes. The result I'm looking for is:
['this','is','bracket test','and quotes test ']
A: Here's a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I fix a Binding Failure in Soap? I reloaded an old project, and tried to run it only to run into the Binding Failure MDA Assistant:
BindingFailure was detected
Message: The assembly with display name 'SoapTest.XmlSerializers' failed to load in the
'LoadFrom' binding context of the AppDomain with ID 1. The ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Can I setup an IIS MIME type in .NET? Can I setup a custom MIME type through ASP.NET or some .NET code? I need to register the Silverlight XAML and XAP MIME types in IIS 6.
A: To add to the master mime type list:
using (DirectoryEntry mimeMap = new DirectoryEntry("IIS://Localhost/MimeMap"))
{
PropertyValueColl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: SQL - Multiple Values comma separated when using GROUP BY I have data that looks like
CUSTOMER, CUSTOMER_ID, PRODUCT
ABC INC 1 XYX
ABC INC 1 ZZZ
DEF CO 2 XYX
DEF CO 2 ZZZ
DEF CO 2 WWW
GHI LLC 3 ZYX
I'd like to write a query th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How can I disable ViewState for dynamically created controls? I can't seem to be able to disable ViewState for controls that I add to a page dynamically.
ASPX
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Page1.aspx.cs" Inherits="Page1" EnableViewState="false" %>
...
<asp:PlaceHolder ID="DropDownPlaceHolde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Skip Lists -- ever used them? I'm wondering whether anyone here has ever used a skip list. It looks to have roughly the same advantages as a balanced binary tree but is simpler to implement. If you have, did you write your own, or use a pre-written library (and if so, what was its name)?
A: Actually, for one of my ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Tab key == 4 spaces and auto-indent after curly braces in Vim How do I make vi-Vim never use tabs (converting spaces to tabs, bad!), makes the tab key == 4 spaces, and automatically indent code after curly brace blocks like Emacs does?
Also, how do I save these settings so I never have to input them again?
I've seen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1407"
} |
Q: One DB per developer or not? In a corporate development environment writing mostly administrative software, should every developer use their own database instance, or should they use a central database instance during development? What are the advantages and disadvantages of each approach? What about other environme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234580",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Java Swing, textarea as input/output? I want to load up a window using the java swing, something like this
However I want to be able to use it for text input also not just to dump data into it..
any idea how to do it?
A: JTextAreas are editable by default, so input is trivial. Just put one into a test UI and see f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Restricting access to objects in an application One problem that I come across regularly and yet don't have a solution to is to restrict or permit access to specific entities in a system. Some companies (banks, for example) have very strict policies regarding which employees may access certain information. For examp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Solving the shared-server security problem for Python So my group is trying to set up a shared-server environment for various and sundry web services. I think we've settled on setting disable_functions and disable_classes site wide in php.ini and php_admin_value to force open_basedir in each app's httpd.conf
for p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Upper vs Lower Case When doing case-insensitive comparisons, is it more efficient to convert the string to upper case or lower case? Does it even matter?
It is suggested in this SO post that C# is more efficient with ToUpper because "Microsoft optimized it that way." But I've also read this argument that convertin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "100"
} |
Q: Eclipse: Can you format code on save? In Eclipse, under Windows -> Preference -> Java -> Code Style, you can define code templates for comments and code, and you can setup a code formatter.
I'm wondering if it is possible in Eclipse to have these setting take affect every time I save a source file. Basically, inst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "134"
} |
Q: Can I use Class.newInstance() with constructor arguments? I would like to use Class.newInstance() but the class I am instantiating does not have a nullary constructor. Therefore I need to be able to pass in constructor arguments. Is there a way to do this?
A: myObject.getClass().getDeclaredConstructors(types list).... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "263"
} |
Q: Save a message from exchange 2003 in .msg format using WEBDAV, C# in C# .net 2.0, is there a quick and easy way to retrieve a message (including its possible attachments) from exchange 2003 and save it to disk in .MSG (outlook) format.
Thanks,
A: I've had a lot of luck using WebDav.NET to interact with exchange fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Oracle client with OpenforwardOnly flag in database connection. I am porting an existing windows based C++ application to 64 bit environment, and this is one of those weird errors.
In the code snippet you can that I am using openforwardonly and it used to work fine with our old setup but in the 64 bit environment it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you bring a failing project back on track? You must have heard the archetypical story of a failing/failed project:
*
*A team of inexperienced programmers work 24x7
*Bugs are fixed only to introduce new bugs
*Customer is screaming that he could not even do the basic stuff (Saving/Querying) etc.
*Programm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How to use Explain Plan to optimize queries? I have been tasked to optimize some sql queries at work. Everything I have found points to using Explain Plan to identify problem areas. The problem I can not find out exactly what explain plan is telling me. You get Cost, Cardinality, and bytes.
What do this indicate, a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Does the TIBCO EMS server manage reconnection? or does the client? The TIBCO EMS .NET reference guide says (pg 134)
To enable reconnection behavior and fault tolerance, the serverURL parameter must be a comma-separated list of two or more URLs. In a situation with only one server, you may supply two copies of tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the best java RPG (Role Playing Game) engine for an experienced programmer? I am looking into building a smallish Java rpg. I haven't found any good examples of a RPG engine that would be the most powerful yet most stable for an experienced Java programmer.
Any and all types. I just want to learn as much as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Binding ASP.NET GridView to an Oracle SYS_REFCURSOR We have a Procedure in Oracle with a SYS_REFCURSOR output parameter that returns the data we want to bind to an ASP.NET GridView control. I've seen this done before but I can't find the original reference I used to solve the problem.
Here is what the procedure look... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What unicode-friendly text editor would you recommend for Windows? I work on a lot of Asian Language localization projects, and am looking for a powerful text editor with the following features:
1) Unicode support
2) Find in Files
3) Replace in Files
4) Regular expressions
5) Multiline find/replace
6) Built-in diff
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to implement BaseValidator and IValidator in custom control - ASP.Net I have a custom control that inherits from WebControl and implements IValidator, but I also want to have a property for ValidationGroup. From research, it appears I need to inherit from BaseValidator to do so. Can anybody provide a successfu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Javascript Array.sort implementation? Which algorithm does the JavaScript Array#sort() function use? I understand that it can take all manner of arguments and functions to perform different kinds of sorts, I'm simply interested in which algorithm the vanilla sort uses.
A: I think that would depend on what browser ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234683",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "299"
} |
Q: Default parameters to actions with Django Is there a way to have a default parameter passed to a action in the case where the regex didnt match anything using django?
urlpatterns = patterns('',(r'^test/(?P<name>.*)?$','myview.displayName'))
#myview.py
def displayName(request,name):
# write name to response o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can HTML embed<> stop mp3s from automatically downloading? I have lots of mp3s on my site that I want my friends to be able to play only- but I don't want them all downloading as soon as the page opens and would prefer them to only start downloading into the buffer if someone wants to play it- is this possible with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Managing Cisco programmatically; Telnet vs SNMP? I was recently approached by a network-engineer, co-worker who would like to offload his minor network admin duties to a junior-level helpdesk tech. The specific location in need of management acts as an ISP for tenants on its single-site property, so there's a lot ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Tabbing behavior in WebForms In WinForms, I can design a form and have a TabValue to control which control is selected each time the user hits 'Tab'. My question, in a Webform, is there a mechanism for doing the same thing?
Edit: Does the same apply to an Ajax heavy application?
A: Web controls have a TabIndex p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Generic htaccess redirect www to non-www I would like to redirect www.example.com to example.com. The following htaccess code makes this happen:
RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
But, is there a way to do this in a generic fashion without hardcoding ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "548"
} |
Q: Is it possible to serialize and deserialize a class in C++? Is it possible to serialize and deserialize a class in C++?
I've been using Java for 3 years now, and serialization / deserialization is fairly trivial in that language. Does C++ have similar features? Are there native libraries that handle serialization?
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "153"
} |
Q: Use OCX without registering it Is it possible to use an ocx (ActiveX Control) on a winform (probably adding it programatically) without first having the ocx registered with regsrv32?
What I'm trying to achieve is to enable xcopy installation. I've had the "AxInterop..dll" and "Interop..dll" file generated from my de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Setting environment variables in Linux using Bash In tcsh, I have the following script working:
#!/bin/tcsh
setenv X_ROOT /some/specified/path
setenv XDB ${X_ROOT}/db
setenv PATH ${X_ROOT}/bin:${PATH}
xrun -d xdb1 -i $1 > $2
What is the equivalent to the tcsh setenv function in Bash?
Is there a direct analo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "82"
} |
Q: ASP.NET 2.0 IIS Setup Good afternoon,
This should be an easy one. I've done the cookie-cutter default ASP.NET 2.0 installation, but I have a couple of programming errors in my application.
When I access the webpage on the server itself, I get a detailed ASP error message. However, when i try to run the same thing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Custom button captions in .NET messagebox? Is there an easy way to display a messagebox in VB.NET with custom button captions? I came across What is an easy way to create a MessageBox with custom button text in Managed C++?, in the Stack Overflow archives, but it's for Managed C++.
A: No there is no method to acce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: What does '^' do in c# (Enums)? I was reading some 3rd party code and I found this:
x.Flags = x.Flags ^ Flags.Hidden;
What does it do?
I've used '&' and '|' for bitwise 'and' and 'or' with enums, but it's the first time I see the that symbol...
A: ^ is the bitwise XOR operator in C#.
EDIT: a ^ b returns true if a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What should the client do while the TIBCO EMS server attempts failover? The TIBCO EMS user's guide (pg 292) says:
The backup server will work indefinitely to either A) become the
primary server or B) reconnect to the primary server. It also says
clients may receive fail-over notification when the switch is succ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to convert a software shop to TDD? I would really love to push for TDD development inside the shop I'm working in. Lots of the seniors over there didn't work with unit testing or did unit testing that was hitting the database.
I would love to bring some good arguments, books for training, possible coach to ease ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Automatically joining tables without breaking default behaviour in Zend Framework The situation is as follows: I've got 2 models: 'Action' and 'User'. These models refer to the tables 'actions' and 'users', respectively.
My action table contains a column user_id. At this moment, I need an overview of all actions, an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Optimal data architecture for tagging, clouds, and searching (like StackOverflow)? I'd love to know how Stack Overflow's tagging and search is architected, because it seems to work pretty well.
What is a good database/search model if I want to do all of the following:
*
*Storing Tags on various entities, (how n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Regex in sed to convert ##XXX## to ${XXX} I need to use sed to convert all occurences of ##XXX## to ${XXX}. X could be any alphabetic character or '_'. I know that I need to use something like:
's/##/\${/g'
But of course that won't work properly, as it will convert ##FOO## to ${FOO${
A: *
*Encapsulate the alpha a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Has anyone used TIBCO GI? I was checking out the TIBCO GI the other day and I was impressed.
*
*Has anyone used it extensively?
*What are your thoughts?
*What drawbacks did you encounter?
*Is it suitable for Internet or only Intranet apps?
I appreciate any input you can shed on this.
A: Yes, I have used it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Change local administrator password in C# I am looking for a way to change the password of a local user account (local Administrator) on a Windows (XP in this case) machine. I have read the CodeProject article about one way to do this, but this just doesn't seem 'clean'.
I can see that this is possible to do with W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Is there a 'greatest' function in db2? I found in MYSQL and apparently other database engines that there is a "greatest" function that can be used like: greatest(1, 2, 3, 4), and it would return 4. I need this, but I am using IBM's DB2. Does anybody know of such an equivalent function, even if it only accepts 2 pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Replacing a message in a jms queue I am using activemq to pass requests between different processes. In some cases, I have multiple, duplicate message (which are requests) in the queue. I would like to have only one. Is there a way to send a message in a way that it will replace an older message with similar attribu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Variable Naming Conventions in C++ I come from a .NET world and I'm new to writting C++. I'm just wondering what are the preferred naming conventions when it comes to naming local variables and struct members.
For example, the legacy code that I've inheritted has alot of these:
struct MyStruct
{
TCHAR s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: Launching IE from winforms, can I close IE when my winforms closes? I have a winforms application, that why someone clicks on a button I need to open up IE to a specific URL.
When someone closes the winforms app, I then need to close IE.
Is this possible? If yes, how?
A: If you dont have the reference to the old pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is basicHttpBinding the only option for connecting a .Net 2.0 client to a WCF Service? This is a follow on to this question. I am trying to avoid using the x509 certificate method as that makes my client installs more complex. If basicHttpBinding is not the only option, where are some samples of other binding meth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Changing folder security permissions via Win32 API My C++ application stores some common user data in %CSIDL_COMMON_APPDATA%\Company\Product. I want to make sure the Users group has write permissions to this folder which on Vista it does not. How would do I do this?
A: Figured it out myself using ATL...
CDacl oDac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Abstracting data connection layers and presentation layers in an enterprise application We are building an enterprise application in which we will incorporate multiple platforms for user interfaces (i.e. ASP.net webapp, Windows Application, and someday, Mobile Apps) and multiple platforms for back-end databases (i.e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Model Framework for ASP .NET / MVC I have been using the CSLA framework for couple of years now for windows applications. With ASP .NET MVC / AJAX / jQuery out now, would there be any use for the CSLA framework (which is strongly Object Oriented ) in web apps?
A: Absolutely you would. CSLA is used for building you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the best practice for naming database tables to provide natural organization? We put common prefixes on related tables to assure they display next to each other in our DB management software (Toad, Enterprise Manager, etc).
So for example, all user tables start with the word User:
*
*User
*UserEvent
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: What's the purpose of the CIL nop opcode? I'm going through MSIL and noticing there are a lot of nop instructions in the MSIL.
The MSDN article says they take no action and are used to fill space if the opcode is patched. They're used a lot more in debug builds than release builds.
I know that these kinds of stateme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "82"
} |
Q: PL/SQL for parsing EDI (X12, NCPDP, HL7) I have some EDI messages (X12, HL7, etc ...) stored in an Oracle database. I sometimes want to pull out individual fields (e.g. ISA-03). Currently, I have some really ugly sql. I'd like to create a PL/SQL package to make it easier and was wondering if anybody had already d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Looking for a "Universal" Document viewer component/library I am looking for an Applet with similar functionality to the Oracle/Stellent OutsideIn ActiveX control or the Autonomy KeyView technology that act as a browser plug-in allowing the rendering/display of a large number of file formats (Word processing, spread... | {
"language": "en",
"url": "https://stackoverflow.com/questions/234914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |