text stringlengths 8 267k | meta dict |
|---|---|
Q: hibernate column name issues @Column(name="DateOfBirth")
private Date dateOfBirth;
I specifically need the above code to create a column named "DateOfBirth," instead Hibernate gives me a column named date_of_birth. How can I change this? Is there a web.xml property? I came across DefaultNamingStrategy and Improv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Setting JVM/JRE to use Windows Proxy Automatically I did see the question about setting the proxy for the JVM but what I want to ask is how one can utilize the proxy that is already configured (on Windows).
Here is a demonstration of my issue:
*
*Go to your Control Panel->Java and set a proxy address.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: How do I automate building the source distribution for an iPhone app with Xcode? I am looking to distribute an open source iPhone app and I have a few questions about making the source distribution:
*
*How can I automate creating the source archive (or diskimage) with XCode? I want something along the lines of a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: UITextField in UIAlertView on iPhone - how to make it responsive? I placed a UITextField into a UIAlertView and moved it up so the keyboard wouldn't cover it up with the following code:
[dialog setDelegate:self];
[dialog setTitle:@"Enter Name"];
[dialog addButtonWithTitle:@"Cancel"];
[dialog addButtonWithTitle:@"OK"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Using Assembly.GetType("MyCompany.Class1.Class2") returns null I'm attempting to use Assembly.GetType("MyCompany.Class1.Class2") to dynamically get a type from a string.
Assembly.GetType("MyCompany.Class1");
works as expected.
If I embed a class within another class such as:
namespace MyCompany
{
public class Cla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How do you override vim options via comments in a python source code file? I would like to set some vim options in one file in the comments section.
For example, I would like to set this option in one file
set syntax=python
The file does not have a .py extension and I am not interested in making my vim installation... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Why databound ContextMenu items don't hide? I wan't to hide/show menuitems in a contextmenu using some propery of databound object.
But my menuitems don't hide, they behave as if their Visiblity would be set to Visibility.Hidden (not Visibility.Collapsed as it really is), what's the reason of such behaviour?
Here's ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Developing Web Applications on the Mac How does one build Web applications on the Mac that is not RoR or PHP? Can Web applications be created using Objective-C and Cocoa? I'm entirely new to this subject
- Hahnemann
A: Cocoa is really not a web application framework, so I wouldn't recommend you go that route. WebOb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Difference between WebLogic Integration and Oracle Service Bus? I have limited knowledge of Java-based technologies, and for business enforced reasons, I may need to decide whether WebLogic Integration (WLI) or Oracle Service Bus (OSB) is the better choice for integrating a small number of standalone systems togethe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is there a way to debug an already running application compiled in release mode? I have a dotnet windows service that's currently hung, but running. Is there anyway to attach a debugger to it, despite the lack of symbols; and that it's already running?
A: Ignore the "no symbols" warning. Once you have a native debu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: RedirectToAction Bug? I Have following code:
Controller:
public ActionResult Step1()
{
return View();
}
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Step1(FormCollection form)
{
TempData["messageStatus"] = new Random().Next(1, 1000);
return RedirectToAction("Step1");
}
View:
<%=TempDat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can Spring Webflow 2.0's entity manager commit from subflow states? My team and I are currently starting up a project using Spring 2.5.6 and Spring Webflow 2.0 (JDK 1.4.2). We're in the design phase right now, and I would like to know whether or not Spring's Persistence context/entity manager (we're going to use Hi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I add an ampersand for a value in a ASP.net/C# app config file value I've got a C# program with values in a config file. What I want is to store ampersands for an url value like...
<appSettings>
<add key="myurl" value="http://www.myurl.com?&cid=&sid="/>
</appSettings>
But I get errors building my site. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "236"
} |
Q: Changing the value of stdout in a C++ program I have a Windows C++ program that is doing something like:
FILE* pf = ...;
*stdout = *pf; // stdout is defined in stdio.h
I'm looking for an explanation about what happens when you change the value of the stdout file handle. Is this just a way of redirecting std... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Outlook 2007 wants password over HTTP. (Exchange 2007) I have an Exchange 2007 configured with ActiveSync and RPC over HTTP.
Here are the things that work:
*
*Outlook inside the network.
*Mobile devices.
*Outlook Web Access.
Only thing that doesn't work is:
*
*Outlook outside of the network.
Whenever, s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Expand Recurring Events from a Sharepoint Calendar over WebServices? Is it possible to get a list of events (with recurring events expanded) out of Sharepoint's Calendar using the Web Service exposed through Lists.aspx?
This is evidently possible if you are using C# or VB, as described here using a snippet like this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Deep routes in Zend Framework without modules - how? I'm writing some routes for a REST service. One of my resource's URI looks like this
resources/user/:id
I also want to give access to individual attributes of a user, which would look like this
resources/user/:id/:attribute
But when I try to define that latter ro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is std::map + std::tr1::bind + standard algorithms worthwhile? This is a follow-up to my question from yesterday. I have Scott Meyers' warning about write-only code on my mind. I like the idea in principle of using standard algorithms to access the keys or values of a std::map, but the syntax required is a little ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: MemoryStream.Read doesn't copy bytes to buffer - c# I don't really get it and it's driving me nuts.
i've these 4 lines:
Image img = Image.FromFile("F:\\Pulpit\\soa.bmp");
MemoryStream imageStream = new MemoryStream();
img.Save(imageStream, ImageFormat.Bmp);
byte[] contentBuffer = new byte[imageStream.Length];
imageS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: What is a typical OSGi life-cycle? I would like to gain some insight into the life cycle that is used in industry when developing and deploying OSGi based systems.
My main focus is on the deployment phases, after the development phase has created versioned and packaged a bundle. Specifically testing procedures that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a python library for editing msword doc files?
Possible Duplicate:
Reading/Writing MS Word files in Python
I know there are some libraries for editing excel files but is there anything for editing msword 97/2000/2003 .doc files in python? Ideally I'd like to make some minor changes to the formatting of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What assemblies do I need to start using Castle Windsor in my application? I've got a pretty basic question about how to start using Castle Windsor. I've read up on IOC/DI and would like to try Castle Windsor in an existing solution. I typically like to put any external assemblies in a Lib folder within the soluti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: DropDownList SelectedIndex always = 1 I have a dropdownlist in a page. The values of all the list items = "0". I have viewstate turned off. When the page posts back, the selected index always = 1 in Page_load event, regardless of the selection in the list. If the values of the list items are different, the selectedI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Visual Studio fails to deploy report to MSRS Visual Studio fails to deploy reports or data sources on remote MSRS instance. Error message is
Unable to connect to the remote server.
The server is up and running and TargetServerURL property of the project points to correct url which works in the browser.
I googled a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: linqtosql will not allow updating of fields as it casts them as read only I am having an issue with linq updating in linqtosql
from the code below
Dim lqPatientTable As New lqHospitalDataContext
Dim strPatientId As String
strPatientId = Me.ucboPatientInfo.SelectedRow.Cells(5).Value
Dim lqPatientName = (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Zend Framework - Zend_Form Decorator Issue I have a class that extends Zend_Form like this (simplified):
class Core_Form extends Zend_Form
{
protected static $_elementDecorators = array(
'ViewHelper',
'Errors',
array('Label'),
array('HtmlTag', array('tag' => 'li')),
);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Programmatically launch multiple slide shows using python-uno I have been using the Python-uno interface to launch OpenOffice and run PowerPoint slide shows on a Linux-based noticeboard system. Now the customer wants to make a split-screen and show four different slide shows on the screen at the same time.
But whene... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Debug a java application without starting the JVM with debug arguments Normally to attach a debuger to a running jvm you would need start the jvm with arguments such as the following:
> java -Xdebug -Xrunjdwp:transport=dt_socket,address=1000,server=y,suspend=n
Now if I want to debug a process that wasn't started in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "101"
} |
Q: Connecting To A Private Remote MSMQ Queue I'm trying to connect to a remote private MSMQ queue using the path:
"FormatName:DIRECT=OS:remoteMachineName\Private$\MyQueue"
and I'm getting the following error:
"The specified format name does not support the requested operation. For example, a direct queue format name ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Programmatic mail-merge style data injection into existing Excel spreadsheets? I'd like to automate data entry into Excel spreadsheets. User data will exist on a web site, and when the user requests it, that data will need to be injected into an Excel spreadsheet. The complication is that the format of the Excel spr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I hook the TAB key in a usercontrol so that focus doesn't move to a different control? I have a usercontrol that is meant to take up the entire form. I want my usercontrol to handle the TAB key press and do something rather than have the TAB move focus to another control on the form. I'm handling the KeyDow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Forward declaration problem I'm using C++ .NET 2.0
I have 2 forms
the first one is declared as follow
#include "stdafx.h"
namespace myNamespace{
public ref class frmMain : public System::Windows::Forms::Form {
/*... snip ...*/
public void addNewRow(String^ text){ /*... snip... */ }
publ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best solution for XmlSerializer and System.Drawing.Color System.Drawing.Color objects apparently won't serialize with XmlSerializer. What is the best way to xml serialize colors?
A: The simplest method uses this at it's heart:
String HtmlColor = System.Drawing.ColorTranslator.ToHtml(MyColorInstance);
It will just ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Database and EF performance concern? I have a basically sql select question that people gave me different answers over the years. Say I have a couple of tables designed each with over 40 columns and potentially will hold ten and thousands of row, I'm using SqlServer2005.
On joining these tables, in the where clause... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Any workaround for printing repeating backgrounds? We have an HTML page which displays a bunch of pretty bars using divs and repeating backgrounds. We are in the process of making a report out of this that can be printed nicely, but this may take some time because we don't have a reporting framework in place. As an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why doesn't globally declared DataTable retains its value? I have an aspx page with a gridview. In my page load event, I load a datatable with all the data like so:
HistoricalPricing historicalPricing = new HistoricalPricing();
DataTable dtHistoricalPricing = new DataTable();
protected void Page_Load(object sender... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: One blog for each Django user with the "blog role" What approach is the best way to make content-types restricted to a user in Django?
Let us say I want all users with the user-role "blogger" to have its own blog.
I have created a weblog app. How do I restrict it so that the user logged in can only post in his "own"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CSS Selector Style Simple question, and probably reflects my inexperience with CSS, but...
When creating a style sheet I like to explicitly specify the '*' wild card, so:
*.TitleText {
instead of just
.TitleText {
I find it reminds me that TitleText is applied to "any" tag, and can be overridden by a subsequent h1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Stretch and scale CSS background Is there a way to get a background in CSS to stretch or scale to fill its container?
A: In one word: no. The only way to stretch an image is with the <img> tag. You'll have to be creative.
This used to be true in 2008, when the answer was written. Today modern browsers support backg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "679"
} |
Q: Can you get a list of variables on the stack in C#? All, just wondering if it's possible in .NET/C# to get a list of variables on the stack and their values? I am creating an exception handler for my app and beyond a standard stack trace I'd also like to see the names and values for any variables that are on the sta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WHM: Moving an account to a new server I have an account on WHM for a PHP web app that's over 50GB in size on a dedicated server, the company decided to move it to a new server, and I was assigned the task.
I would like to know what is the best way to do it, built-in WHM copy account function, or creating full backu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Parameter evaluation order before a function calling in C Can it be assumed a evaluation order of the function parameters when calling it in C ? According to the following program, it seems that there is not a particular order when I executed it.
#include <stdio.h>
int main()
{
int a[] = {1, 2, 3};
int * pa;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "76"
} |
Q: Wait until tomcat finishes starting up I have a script that needs to run after tomcat has finished starting up and is ready to start deploying applications. I'm using $TOMCAT_HOME/bin/startup.sh which returns immediately. How can I wait until tomcat has finished starting up?
A: It's not hard to implement programati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Building both DLL and static libs from the same project I have a number of native C++ libraries (Win32, without MFC) compiling under Visual Studio 2005, and used in a number of solutions.
I'd like to be able to choose to compile and link them as either static libraries or DLLs, depending on the needs of the partic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Is empty string valid XML? Is '' a valid piece of XML?
Can '' insert into oracle xblob column or XML column from MSSQL?
A: No. The spec says a well-formed XML document satisfies:
document ::= prolog element Misc*
where
element ::= EmptyElemTag
| STag content ETag
A: It's not an XML document -... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Are data structures an appropriate place for shared_ptr? I'm in the process of implementing a binary tree in C++. Traditionally, I'd have a pointer to left and a pointer to right, but manual memory management typically ends in tears. Which leads me to my question...
Are data structures an appropriate place to use sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What are the common undefined behaviours that Java Programmers should know about The same as this question but for java
Update
Based on the comments and responses of a few people, Its clear that Java has very little undefined behaviour.
So I'd like to ask as well what behaviour is not obvious. Please when answering ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: random string generation - two generated one after another give same results I have a simple piece of code:
public string GenerateRandomString()
{
string randomString = string.Empty;
Random r = new Random();
for (int i = 0; i < length; i++)
randomString += ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Project Euler (P14): recursion problems Hi I'm doing the Collatz sequence problem in project Euler (problem 14). My code works with numbers below 100000 but with numbers bigger I get stack over-flow error.
Is there a way I can re-factor the code to use tail recursion, or prevent the stack overflow. The code is belo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is the best way to allow for multiple buttons on an ASP.NET MVC form? I have a feeling I'm being too "webforms" with this, but I'll ask anyway. I have a form in an ASP.NET MVC project that has some input fields and two buttons on it. One button is used to 'filter' one of the list boxes. The other is used to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best way to databind a Winforms control to a nullable type? I'm currently using winforms databinding to wire up a data editing form. I'm using the netTiers framework through CodeSmith to generate my data objects. For database fields that allow nulls it creates nullable types. I've found that using winforms databi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Passing Value Between Web User Controls - DifferentQuestion I want pass values between web user controls without writing any code to the main page which user controls are put on. I do something like that but after doing that I need to click double to pass the value.
The example of what I've done :
Department User Co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET Localization with singular and plural Can I with ASP.NET Resources/Localization translate strings to depend on one or other (the English grammar) in a easy way, like I pass number 1 in my translate, it return "You have one car" or with 0, 2 and higher, "You have %n cars"?
Or I'm forced to have logic in my vi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Editing a UITextField inside a UITableViewCell fails In my application I have a UITextField inside a UITableViewCell. If I click inside the text field and add some text I find that if try to move the insertion point it works the first time but fails on subsequent attempts. I am completely unable to move the selectio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Pretty printing XML with javascript I have a string that represents a non indented XML that I would like to pretty-print. For example:
<root><node/></root>
should become:
<root>
<node/>
</root>
Syntax highlighting is not a requirement. To tackle the problem I first transform the XML to add carriage returns and w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "164"
} |
Q: LEFT JOIN vs. multiple SELECT statements I am working on someone else's PHP code and seeing this pattern over and over:
(pseudocode)
result = SELECT blah1, blah2, foreign_key FROM foo WHERE key=bar
if foreign_key > 0
other_result = SELECT something FROM foo2 WHERE key=foreign_key
end
The code needs to branch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: CVS Tagged Files Report I found this question: How to find out which CVS tags cover which files and paths?
However, the results are not at all what I'm expecting.
I'm using the following:
cvs -n -q update -r ET30908
I'm looking for every file tagged with 'ET30908'.
A: I find the easiest way to do this is to check ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Ultimate Home Development setup - massive desktop w/ thin client laptop? POSSIBLE? I'm trying to figure out the best lower-budget home office development hardware setup. My laptop is aging.
My latest idea is that I would like a very powerful desktop paired with a less-powerful laptop. The idea being that the desktop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Hosting user videos My client would like website visitors to embed videos in their profiles. We've suggested that we use YouTube for a quick and cost-effective (free) solution. However he is not keen that YouTube would control access to the videos which are an important part of his service. It seems unlikely that Yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a PDF version of the Castle Windsor documentation? The only documentation I've found for the components of the Castle project I've found here in the form of online HTML files. Does anyone know of anything that is more off-line friendly or printable (e.g. PDF). I've got quite the long train commute and I'd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using breakpoints to debug Javascript in IE and VS2008 I am not able to use the breakpoint in Studio with Javascript. I'm able to debug if I use the debugger;
I've seen this Breakpoint not hooked up when debugging in VS.Net 2005 question already. I tried the answer and it didn't work.
Looking in the Modules wind... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Multiple keyboards popping up on iPhone alert dialog? I am setting up an alert with a text field in it so players can enter their name for a high score. The game is oriented in landscape mode, but when I call to show the alert, the alert pops up in portrait mode while two keyboards are displayed, one in landscape a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Cookies across subdomains and hosts In the application I'm writing using a combination of development environments and languages, I have need of accessing a cookie from two different subdomains, each on a separate host.
The cookie is being set on www.mydomain.com using the PHP code that follows, and I'm attempting t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Load an ASP.NET 2.0 aspx page using System.Reflection? Can I load an stand alone aspx page in another stand alone aspx page using System.Reflection?
I am using the ASP.NET 2.0 Web site project model.
A: Try using BuildManager.CreateInstanceFromVirtualPath. Sample usage:
Page p = BuildManager.CreateInstanceFromVir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: 'Friends' equivalent for Java? having a little architectural trouble here.
In C++, we have the notion of 'friends,' where such friend classes can access private members.
So, I'm deving a Java app and trying to adhere to the MVC architecture. I've got a controller class that manages graph connectivity between 'map_ob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: How to use T4 and Visual Studio to Extend a Partial Class I wanted to use T4 to generate properties for a partial class. I'm running into a configuration problem where my .TT file is in the same project as the class file I want to extend. So if I have to include the assembly in the .TT file it get's locked. I tried ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you find the last loop in a For Each (VB.NET)? How can I determine if I'm in the final loop of a For Each statement in VB.NET?
A: With a foreach, you cannot know this until it is too late (ie. you're out of the loop).
Note, I'm assuming you're using something where you only have an IEnumerable interface. If ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Enforce strong type checking in C (type strictness for typedefs) Is there a way to enforce explicit cast for typedefs of the same type? I've to deal with utf8 and sometimes I get confused with the indices for the character count and the byte count. So it be nice to have some typedefs:
typedef unsigned int char_idx_t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: LINQ: Cannot insert duplicate key row in object 'dbo.tblOutstandingCompletions' with unique index I have an application (ASP.NET 3.5) that allows users to rerun a particular process if required. The process inserts records into an MS SQL table. I have the insert in a Try / Catch and ignore the catch if a record alre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: String concatenation vs. string substitution in Python In Python, the where and when of using string concatenation versus string substitution eludes me. As the string concatenation has seen large boosts in performance, is this (becoming more) a stylistic decision rather than a practical one?
For a concrete example, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "98"
} |
Q: ASP.Net resource files I'm using selenium to run some functional tests on the UI for our current application.
I want to ensure that strings from the resource files in the Web project are being displayed at the correct time and place.
Simple (I thought) all I have to do is reference the assembly of the web applicati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: maproute, querystings and mvc I have two routes:
routes.MapRoute(
"FetchVenue",
"venue/fetchlike/{q}",
new { controller = "venue", action = "fetchlike" }
);
routes.MapRoute(
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Abstracting a secure .jsp page's functionality? There's a webpage that enables service providers to check customers insurance validity.
The page comprises a text box to enter the customer's insurance number, a button to send the number for checking and a frame in which the results appear.
It's a java server page and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET - Single large web request triggers System.OutOfMemoryException - Still have plenty of available memory Environment:
Windows 2003 Server (32 bit); IIS6, ASP.NET 2.0 (3.5); 4Gb Ram; 1 Worker Process
We have a situation where we have a very large System.XmlDocument is being loaded into memory, and then it hea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can an Ajax-enabled WCF Service pass back a DataTable as a Sys.Data.DataTable? Can an Ajax-enabled WCF Service pass back a DataTable as a Sys.Data.DataTable?
Like this but in WCF.
My OperationContract looks like:
[OperationContract]
public DataTable GetEmployees()
{
NorthwindService ns = new Nort... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a C# wrapper for the VMware VIX API? I am using VMware Workstation 6.5 on Windows Vista x64. I would like to automate some of the VM management tasks. I know that there is a COM API (http://www.vmware.com/support/developer/vix-api/) available which I could use directly.
Is there a C# wrapper for this COM AP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Updating the view count of a webpage in a database I have a database table called "Posts" which stores all the information regarding an article submission on a website. There is a column named "Views" which is a value that gets incremented each time that particular post gets viewed.
The process is this:
*
*Get t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Microsoft Patch 958369 MS08-070 broke my VB6 App (Type Mismatch - dynamically created control) We upgraded our machines with a microsoft patch listed above and are now having issues with some winsock controls. While moving on to the new component library there were two issues that we faced:
*
*We are creating a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Word 2007, Open XML - embedding an image Do you know what basic information MUST include a paragraph (<w:p/>) in document.xml inside a *.docx document, that specifies an image? I do know there must be:
<a:blip r:embed="rId4" />
specifing the relationship id, but what else?
It's very hard to find it in Google and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I get ruby to print a full backtrace instead of a truncated one? When I get exceptions, it is often from deep within the call stack. When this happens, more often than not, the actual offending line of code is hidden from me:
tmp.rb:7:in `t': undefined method `bar' for nil:NilClass (NoMethodError)
fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "212"
} |
Q: Programmatically compare two lines (stock pattern matching) What I want to do is take a certain stock pattern (defined as a series of x and y coordinates) and compare it against historical stock prices. If I find anything in the historical prices similar to that pattern I defined, I would like to return it as a mat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to find the record in a table that contains the maximum value? Although this question looks simple, it is kind of tricky.
Consider the following table:
CREATE TABLE A (
id INT,
value FLOAT,
"date" DATETIME,
group VARCHAR(50)
);
I would like to obtain the ID and value of the records that contain the max... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Dispatch-like CGI Approach Opinions: I want to disallow direct invocation of certain scripts, that have functionality accessible from a menu, via Web at the OS level (Linux).
I was hoping to call a authorize.pl script that checks the session validity, checks user privileges etc. Then it will redirect to the targe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Populate Excel with data from LINQ to SQL query I am trying to send some data from a LINQ query in C# to an Excel speed sheet using OLE
I have a query like this:
Var data = from d in db.{MyTable}
where d.Name = "Test"
select d;
I have the Excel OLE object working fine, I just can't figure out ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to make a pure CSS dropdown list (nav for a website) Trying to make a pure css dropdown list that works well, and can't find any good resources.
A: A List Apart is a great resource, here's their take: Drop-Down Menus, Horizontal Style
A: Maybe you'll be able to find something like what you want at http://css.m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can I use WMI to find the network usage by each process? I'd like to use WMI on some windows systems to poll the network usage of each process. From what I can tell, there are many IO instances in the Win32_PerfRawData_PerfProc_Process but they are for the combined IO of network,disk,and device. Is there a way to br... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Grails MySQL MaxPoolSize How do I increase the maxPoolSize in Grails when using mysql? It appears to be using a default connection pool only 8 connections.
A: Unfortunately you will need to configure the dataSource spring bean for yourself if you want to gain more control over it. This can be done by defining t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to check out a Subversion repository using svn+ssh protocol? I'm trying to checkout a repository via command line (the 'svn co' command), using the svn+ssh protocol. I need to checkout as a different user than what I currently am. The command svn co svn+ssh://username@server/repo/ would make sense, however when ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: PHP - What should I call the information stored in my Page class? I have a class named Page with a private property currently called _pageData which stores all the information (such as title, content, keywords etc).
However, this to me doesn't look so good when I refer to it $this->_pageData. I want to think of a b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there an openID implementation in Java? Is there an openID implementation in Java? I would like to use this in a tomcat application.
A: Spring Security provides an OpenID authentication method too
A: If you don't mind using a service there is RPX
A: The openid4java library seems to be the most popular.
A: I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: How to determine if the default document was served in traditional ASP? In a file called index.asp, which is set up in IIS as a default document for the directory, I'm trying to determine via .asp VBScript if the page was called as the default document versus directly by name, i.e. I'm trying to distinguish between ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a best practice for accessing business logic services in a web app? Is there a best practice for instantiating / calling business logic layer service in a web app? I've got a large number services that I keep instantiating and then disposing for just one method call.
Should these be implemented as provid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: XML Schema: Element with attributes containing only text? I'm having difficulty searching for this. How would I define an element in an XML schema file for XML that looks like this:
<option value="test">sometext</option>
I can't figure out how to define an element that is of type xs:string and also has an attribute... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "151"
} |
Q: Document score I'm trying to read document score of lucene search results.
I get a set of document scores through the hits object when I use the following method :
Hits hits = IndexSearcher.search(myQuery);
However,if i use the method:
searcher.search(myQuery, hitsCollector);
I get a totally different set of documen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can different connections of the same sqlite's database begin transactions concurrently? I met with a strange problem about sqlite3. I obtained different connections of the same database file using open() method. connection 1 begins a transaction, and connection 2 begins another transaction, which is to update sever... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Does an ADO.NET DataReader read a whole row, or does it only read the columns you "Get"? If I do something like this:
using (SqlCommand cmd = new SqlCommand("SELECT * FROM TBL"))
{
using (SqlDataReader reader = cmd.ExecuteReader())
{
while (reader.Read())
{
string s = reader.GetSt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I export Trac tickets to MS Excel including the ticket description, with formatting? I need to be able to export Trac tickets from a report or custom query to Excel, including the ticket description. The catch is that the description must be formatted as defined by the wiki syntax rather than displaying the r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Why interpreted langs are mostly ducktyped while compiled have strong typing? I just don't know that, is there any technical reason for that? Is it more difficult to implement a compiler for a language with weak typing? What is it?
A: Because compiled languages need to take the amount of memory used in account when... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376611",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: C#: How do you save a list of items like a Combobox to the .NET Settings file? C#: How do you save a list of items like a Combobox to the .NET Settings file?
A: If you are talking about the Application User Settings, I'd loop through the combobox and save the values in a delimited string:
StringBuilder sb = new Str... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: PHP: printing undefined variables without warning I'm just wondering if there is a quick way to echo undefined variables without getting a warning? (I can change error reporting level but I don't want to.) The smallest I have so far is:
isset($variable)?$variable:''
I dislike this for a few reasons:
*
*It's a bit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.