text stringlengths 8 267k | meta dict |
|---|---|
Q: How to get the actual path of a file in Vista with UAC? I am calling CreateFile() to create a file in the Program Data directory. I'm using SHGetSpecialFolderPath() to get the dir name.
I have a user with Vista for whom CreateFile() is returning error 5 (Access Denied). It would help if I knew where CreateFile() wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to diff/merge changes to a deployment project file I am currently using CVS (not my choice) and have several branches. I'm trying to merge two branches, but a deployment project file has conflicts that I can't resolve without spending a LOT of time. A trivial change to a project file results in drastic changes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why does 150 + 150 not equal 300 in browsers? I have the following HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<style>
.box {
border: solid black 1px;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Generating a code from Emacs How can I write the following code quickly in emacs?
\newcommand{\cA}{\mathcal A}
\newcommand{\cB}{\mathcal B}
\newcommand{\cC}{\mathcal C}
...
...
\newcommand{\cY}{\mathcal Y}
\newcommand{\cZ}{\mathcal Z}
Is there a way faster than writing
A
B
C
D
.
.
.
Y
Z
and then doing macro on ea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Creating a Popup Balloon like Windows Messenger or AVG How can I create a Popup balloon like you would see from Windows Messenger or AVG or Norton or whomever?
I want it to show the information, and then slide away after a few seconds.
Edit: It needs to be blocking like Form.ShowDialog() because the program exits af... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Simple approve/reject form for SharePoint workflow? I'm currently creating (in Visual Studio) a simple approval workflow within SharePoint so that I can execute some custom code once the user has approved an item. However, it seems that when I don't specify an approval form to use, SharePoint just selects a default ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: database configuration does not specify adapter I'm getting this error when I'm trying to connect to a mysql database. The problem is that the application works for weeks, and then randomly I get this message. When I get this error message the application is not able to reconnect to the database until I restart it.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: Eclipse 3.2; Subversion 1.5: compatible Subclipse or Subversive version? I'm trying to access a Subversion repository with an integration plugin in Eclipse 3.2.2.
(Okay, so I'm using EasyEclipse Server Java, it's just easier than setting up all of those plugins every time I have to setup a new development environmen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Howto bind TextBox control to a StringBuilder instance? I would like several textboxes to react to changes of an underlying string. So if I were to change the content of the string, all those textboxes would change their content too.
Now, I can't use the String type for that as it is immutable. So I went with String... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: SPContext.Current.Web.CurrentUser returns misleading value I'm trying to find out current user name for my sharepoint application. There are more that one way how to do this. However the sharepoint way returns misleading value.
System.Security.Principal.WindowsIdentity.GetCurrent().Name // returns MY_COMPUTER\\my_u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Windows Workflow Foundation or IoC container + Dependency Injection? I am trying to figure out the internals of the windows workflow foundation. So, we have some software components and we intertwine them in the form of a workflow be it a condition based sequential workflow or a state machine workflow. Now, I am thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Restore SQL Server 2008 DB *to* SQL Server 2005 Got myself in a bit of a pickle here ... working on a CMS project, under the assumption that sql server 2008 was greenlighted as the db of choice. Well it wasn't, we now have to backport all of our content out SQL Server 2008 and into SQL Server 2005.
A simple backup/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: What is the right way to initialize a non-empty static collection in C# 2.0? I want to initialize a static collection within my C# class - something like this:
public class Foo {
private static readonly ICollection<string> g_collection = ???
}
I'm not sure of the right way to do this; in Java I might do something... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: How can I make my development workflow more "enterprisey"? I'm the sole developer for an academic consortium headquartered at a university in the northeast. All of my development work involves internal tools, mostly in Java, so nothing that is released to the public. Right now, I feel like my development workflow is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How long would it take a non-programmer to learn C#, the .NET Framework, and SQL? I am not that good at programming. I finished my masters degree in electronics. I want to learn C#, the .NET Framework, and SQL. How much time do you think it would take (if I have 5 hours a day to devote to it)? Also, what order do I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Write to local disk from web page I'm working on a Silverlight control that will allow multi-file downloading. At the moment I'm trying to get my mind around the permission model of the browser.
Let's say, on a web page, a user enters a local folder (c:\temp) in a text box. The user then clicks a button.
Is it possi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Naming nodes in Erlang I'm playing with the distributed programming tutorial from the 5.4 documentation, and have run into a problem with node names.
My MacBook's default name (jamess-macbook) does not play well with Erlang's node-naming scheme, due to the dash:
(salt@jamess-macbook)4> {my_process, pepper@jamess-mac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Optimising if statements by reordering I remember reading once that the order of the members of an evaluation is important.
Such as
if (null == myClass)
is better (faster?) then
if (myClass == null)
is this the case?
If so could someone explain how and why?
If the answer requires a language then aim towards c#.
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Checking Reports against a changing Data Model I am working on a SharePoint application where the data is kept in lists. For ease of reporting, we create views in SQL Server 2005 that link lists together, and our Reporting Services model is based on these views.
As users add/modify/delete fields, our views become s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Server Reference a Calculated Column I have a select statement with calculated columns and I would like to use the value of one calculated column in another. Is this possible? Here is a contrived example to show what I am trying to do.
SELECT [calcval1] = CASE Statement, [calcval2] = [calcval1] * .25
A: Yes ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: How to get a recursive svn blame report in a single xml file for all non-binary files in a branch? How can I get a fully recursive svn blame report for all non-binary files in a branch, where the output is in a single file in xml format and includes revision, date, author, filename & path, and the text of the line o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: HttpContext and writing a component for both WebForms and MVC I'm writing a component that I would like to be able to use in both MVC and WebForms web apps, but I'm not sure how to handle the differences between how HttpContext is handled.
My component involves a custom IHttpHandler (for WebForms) or a custom Action... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to know which URLs are mapped in the current servlet context in a Spring 2.0 Controller method? In Spring 2.0, is there a quick way to have a list of the current servlet context's mapped URLs from inside a Controller method?
I'm writing a method called getMappedUrls(), and the purpose of this method is to show w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Web security, are there issues with hidden fields (no sensitive data)? I was having a discussion with coworkers. We have to implement some security standards. We know not to store 'sensitive, addresses, date of birth' information in hidden fields but is it OK to use hidden fields for your application, in general.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Is there a way for non-root processes to bind to "privileged" ports on Linux? It's very annoying to have this limitation on my development box, when there won't ever be any users other than me.
I'm aware of the standard workarounds, but none of them do exactly what I want:
*
*authbind (The version in Debian testi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "479"
} |
Q: Why the Full-Text indexing option is greyed out? I installed SQL Server 2008 Express with Advanced Services, but when I try to create a new database, the option Full-Text indexing is greyed out, I believe the full-text indexing has been installed, because I did a query as below:
use [mydbname]
select fulltextservic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: SELECT * EXCEPT Is there any RDBMS that implements something like SELECT * EXCEPT? What I'm after is getting all of the fields except a specific TEXT/BLOB field, and I'd like to just select everything else.
Almost daily I complain to my coworkers that someone should implement this... It's terribly annoying that it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: How do you optimize the performance of getting/setting attribute-decorated properties? In C#, I'm marking some classes' properties with attributes and I'm using reflection to find these properties in order to perform gets and sets on them. I've found, however, that getting/setting with reflection in this manner is a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Integrating Oulook/Exchange Tasks with Linux-based Rails Is it possible to integrate MS Outlook/Exchange tasks with Rails? I know how to send emails with Rails, but that isn't using anything "special" about exchange, just pointing it at the server.
What is "special" about an Outlook Task and how I can I create/read/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you configure a WCF service for clients running on networked machines? I’ve just created a WCF service/client and it all works fine when running on the same machine. But can’t figure out how to configure it to run on different machines. Do you know how?
At the moment the URI is set to http://localHost:8000.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Propagating C++ exceptions across C stack frames on OS X The application I'm working on (it's a game, actually) uses XML for some of its configuration. Since I'm using CEGUI for the GUI, and it has its own XML parsing objects, I converted my code to use that instead of my own hand-rolled parser class. If the docum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Reading UISegmentedControl's identity I have an UITableView with about 30 custom cells each containing an UISegmentedControl. I have wired up the UIControlEventValueChanged event to get hold of selectedIndex.
I would also like to get hold of UISegmentedControl's identity to identify it among the 30 UISegmentedContro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Licensing error message with BeCubed 6 Boring introduction:
In my workplace, we have a very old WinForms product (in market since 1994, and still running on VB3). It has three very different versions, each of them goes to one client. The clients pass it on to their users, some of which are shared. The versions can l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In Windows CE .NET 4.2, why might SetTimeZoneInfo hang? Our product contains a task-manager system that allows applications to run code in a DLL upon a scheduled interval, specify rules about whether a failure of the task should disable the related application, etc. Mostly it's used for data-upload, data-download, l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to programmatically select an item in a WPF TreeView? How is it possible to programmatically select an item in a WPF TreeView? The ItemsControl model seems to prevent it.
A: This is not as simple as it looks, the link provided by Steven has a solution posted in 2008, which may still works but doesn't take care... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: What does the 'static' keyword do in a class? To be specific, I was trying this code:
package hello;
public class Hello {
Clock clock = new Clock();
public static void main(String args[]) {
clock.sayTime();
}
}
But it gave the error
Cannot access non-static field in static method main
So I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "467"
} |
Q: Mixing OpenGL and GDI on Windows I'm trying to work out a way to mix OpenGL rendering and GDI in Windows. Previously I've been rendering my OpenGL contents into a framebuffer object, extracting it and then blitting it into the windows GDI graphics context and then drawing my GDI stuff over the top. This is really cr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Configuring IIS7 for PHP on multiple sites I have PHP5.2.8 installed on IIS7, and it works fine for my default site (at C:\Inetpub\wwwroot).
Now, I need to run local copies of my company's sites on my machine, and each of those are directores in wwwroot. I have set each up on a separate port so I can just go to htt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Ribbon UI Control for WinForms Is there a Ribbon UI Control available in VS 2008? Will it be available if i have office 2007 installed on the development and deployment machines?
EDIT: I would imagine that Microsoft would include the Ribbon UI control in VS 2008 as this is the way the UI of office is going to be m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Why does my iframe content have an empty area around it? I have created an iframe code that I want people to use as a widget on their website. This iframe will load a webpage which has a button and a counter. In the accessed page I've got a graphic.
But the iframe is rendered in the browser with a white empty area a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Want to display a 3D model on the iPhone: how to get started? I want to display and rotate a single 3D model, preferably textured, on the iPhone. Doesn't have to zoom in and out, or have a background, or anything.
I have the following:
*
*an iPhone
*a MacBook
*the iPhone SDK
*Blender
My knowledge base:
*
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: Commits missing after incomplete "git svn dcommit" I'm missing a few important commits after my computer lost power in the middle of a "git svn dcommit" operation, and I'm unsure of how to get them back. "git log" doesn't show the commits, any ideas?
A: Git keeps track of everything you do to the repository in the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ASP.NET Unit test woes (odd exception error) I have created a new solution with a minimal amount of code that represents the issue I am having. This is the simplest I could get it down to.
namespace EntServ.BusinessObjects
{
/// <summary>
/// Summary description for EntServSession
/// </summary>
pub... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Are these PHP conditionals the same or does one have an advantage Is there any advantage to writing a PHP conditional like this:
if ($variable != NULL) {
versus
if (!empty($variable)) {
versus
if ($variable) {
Aren't they all same thing? It seems like the last is always the simplest if you are just trying to tell... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Weak typing in PHP: why use isset at all? It seems like my code works to check for null if I do
if ($tx)
or
if (isset($tx))
why would I do the second one when it's harder to write?
A: isset() has nothing to do with TYPE or VALUE - only with EXISTENCE.
if ($condition)... will evaluate the VALUE OF THE VARIABLE ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How to compose `not` with a function of arbitrary arity? When I have some function of type like
f :: (Ord a) => a -> a -> Bool
f a b = a > b
I should like make function which wrap this function with not.
e.g. make function like this
g :: (Ord a) => a -> a -> Bool
g a b = not $ f a b
I can make combinator like
n f ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: How can I prevent/detect an underflow in a Postgresql calculation that uses EXP() I am receiving a value out of range: underflow error from pgsql, in a query that uses the EXP(x) function. What values of x trigger this? How do I prevent or detect it?
A: The function exp is called the exponential function, and its... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Drop caps in pdfLaTeX I want to find a way to produce drop caps (large initial letters several lines high) in pdfLaTeX. I know that there is a dropping package which works well when used with latex + dvips. However, when used with pdflatex the result looks ugly.
My source file is:
\documentclass[12pt]{article}
% fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How to write Linux driver module call/use another driver module? I'm developing a Linux driver loadable module and I have to use another device in my driver.(kind of driver stacked on another driver)
How do I call/use another driver in my driver? I think they are both in the kernel so there might be a way that can u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Why is 'cp' failing in this shell script? Here's a snippet of code from a shell script I have written:
for src in $(find . -type f -maxdepth 1 \! -name ${deploy} \! -name gvimrc)
do
src=$(basename ${src})
dest="~/.${src}"
copy="${src} -> ${dest}"
cp $src $dest && echo -e "${ok} ${copy}" || echo -e "$... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there real value in multi-touch interface for a desktop? I was lucky enough recently to be involved in a Surface project at Microsoft writing an educational game for an upcoming "trade show". I can really see how the collaborative nature and natural interaction of the Surface could be huge in the education space,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Commenting try catch statements What is the proper place to explain error handling in a try-catch statement? It seems like you could put explanatory comments at either the beginning of the try block or the catch block.
// Possible comment location 1
try
{
// real code
}
// Possible comment location 2
catch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Leveraging JQuery find or inArray method to find an item in an array I was wondering if anyone knows of a way to use the JQuery find method or inArray method to find an item in an array. I can't seem to find anything in the docs.
for example:
var items = [{id:1, name:'bob'}, {id:2, name:'joe'}, {id:3, name:'ben'}];... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Flex: Databinding on object Lets say I have the following:
public class MyObject
{
[Bindable]
public var foo:int = 3;
}
...
[Bindable]
var _obj:MyObject = null;
What's the best way to bind foo so that this binding is updated when _obj is set to a new instance?
I've tried:
<mx:Label text="{_obj&&_obj.f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Loading a Reusable UITableViewCell from a Nib I am able to design custom UITableViewCells and load them just fine using the technique described in the thread found at http://forums.macrumors.com/showthread.php?t=545061. However, using that method no longer allows you to init the cell with a reuseIdentifier which me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "90"
} |
Q: Can't login to TFS using TeamExplorer while it works using directly the webservice from IE I've installed TFS 2008 sp1, full edition, on a windows 2008 server.
I can connect locally using either team explorer or IE
From a remote computer :
The TFS webservice works fine if I provide the good credentials on the follow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/413996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Variable naming conventions in Java In PHP, we (at least the good programmers) always start general variable names with a lower-case letter, but class variables/objects with an upper-case letter to distinguish them. In the same way we start general file names with a lower case letter, but files containing Classes wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Infragistics Training We are a somewhat advanced user of this technology but have had to learn it by trial and error. We are looking for formal training either online or instructor-led that is worth the cost. How is the vendor's offering? Any other recommendations?
A: As a former technical trainer that worked for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Make text paragraph readonly using VBA (Microsoft Word 2003) Is there a way to make a paragraph in a Microsoft Word 2003 document readonly using VBA?
A: I think you can only do it by selecting the paragraphs that will not be protected.
Below is a sample macro that is selecting a piece of text, enabling it for editi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error using the Pivot transformation in MS SQL Server 2005 I have the following table which I'm pivoting:
(ID, Name, Value)
1, 'Task ID', 123
1, 'Language', 'Java'
2, 'Task ID', 456
I have set the PivotKey to be the Name column, and the PivotedValue to be the Value column. For each of my new columns (Task ID and Lan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a good Java networking library? I'm currently searching for a Java networking library. What I want to do is sending XML, JSON or other serialized messages from a client to another client and/or client to server.
My first attempt was to create an POJO for each message, plus a MessageWriter for sending and a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Is there a Python library than can simulate network traffic from different addresses Is there a python library out there than can allow me to send UDP packets to a machine (sending to localhost is ok) from different source addresses and ports? I remember that one existed, but can't find it anymore.
A: You can spoo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Actively maintained PHP libraries for user authentication? I'm aware of the risks of rolling your own user authentication scripts, but I'm also wary of using packages that don't seem to be actively maintained: the current version of PEAR LiveUser is almost a year old.
Please recommend (and argue the case for) an act... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How do I implement an SMS service? I have a client that wants the application to be able to send SMS text message alerts to people that have subscribed to the service. I have seen this done on a lot of sites but I am not aware of what is involved in setting this up. Does anybody have any experience doing this? Wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Is there a Visual Basic 6 decompiler? I lost the source code from one project I did on the company I'm working for and haven't been able to find a Visual Basic 6 decompiler; does that even exists?
I only have the EXE that I've rescued from a user's machine.
A: For the final, compiled code of your application, the s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Performance of Dynamic SQL with Bind vs Normal SQL within Package In an Oracle 10g environment, I have a statement that needs to be executed several million times based on the results of a cursor. For flexibility, the current code has the statement as a constant in the package body. Here is a simplified version of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: TwoWay Manual Binding Implementation for ListBox.SelectedItems? I've been trying to see if there is an easy/clever way to implement binding to ListBox.SelectedItems. If you have tried yourself, you will know, that markup binding using BindingExtension will not work - the property doesn't support it. So you are left ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Detect if code is running as a service Is there a way for an .NET library to detect whether or not it is being run as a service?
My library can be run either way. But when its run as a service, developers need to call an additional method indicating that fact or certain features won't work correctly. I want my libr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How should I import highly formatted data from Excel to a database? What is the best way to import highly formatted data from Excel to SQL server.
Basically I have 250+ Excel files that have been exported from a reporting tool in a format that our business users would prefer. This is a 3rd party tool that can not ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Has anyone seen a tutorial of building a Cocoa Touch plug-in for Interface Builder Does anyone know where I can find an example or a tutorial of building a Cocoa Touch plug-in for Interface Builder?
A: Unfortunately, you can't make Cocoa Touch IB plugins. There's no support for making Cocoa Touch frameworks and th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Linq vs. database views Here’s an interesting question. Suppose we have related tables in the database, for example, Instrument and Currency. Instrument table has a currency_id field that is mapped to entry in Currency table. In Linq land what’s the better way:
a) Create Instrument and Currency entities in the DataC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Should a .NET generic dictionary be initialised with a capacity equal to the number of items it will contain? If I have, say, 100 items that'll be stored in a dictionary, should I initialise it thus?
var myDictionary = new Dictionary<Key, Value>(100);
My understanding is that the .NET dictionary internally resizes ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Problem with QVariant/QTreeWidgetItem/iterator on qt4.4.3 In my qt app I have this object, filled before setting up my QTreeWidget's content:
QList<QTreeWidgetItem*> items;
I fill the QList by this way:
QVariant qv; // I need this for "attaching" to the item my linuxPackage object
qv.setValue(linuxPackage);
pac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: XY-Scatter Chart In SSRS Won't Display Points I'm a bit confused with this one.
I have a Dataset with a BackupDate and a BackupTime as well as a BackupType. The BackupDate is comprised of 12 characters from the left of a datetime string within a table. The BackupTime is comprised of 8 characters from the right of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Filtering With Multi-Select Boxes With SQL Server I need to filter result sets from sql server based on selections from a multi-select list box. I've been through the idea of doing an instring to determine if the row value exists in the selected filter values, but that's prone to partial matches (e.g. Car matches Ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SharePoint Permission Levels in Production for Developers We are trying to clean up our SharePoint (MOSS 2007) environment.
As of right now, our developers, System Administrators and Content Administrators all have "Full Access" rights to the root site (and just about everything underneath it) in our production en... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Able Commerce POS Data Merge We are building an AbleCommerce 7 web store and trying to integrate it with an existing point-of-sale system. The product inventory will be shared between a phyical store and a web store so we will need to periodically update quantity on hand for each product to keep the POS and the web... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I select random files from a directory in bash? I have a directory with about 2000 files. How can I select a random sample of N files through using either a bash script or a list of piped commands?
A: This is an even later response to @gniourf_gniourf's late answer, which I just upvoted because it's by far ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "194"
} |
Q: How are they doing the accordion style dropdown on the following website? I was taking a look at http://www.zenfolio.com/zf/features.aspx and I can't figure out how they are doing the accordion style expand and collapse when you click on the orange links. I have been using the Web Developer Toolbar add-on for firef... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C# lambda expressions and lazy evaluation One advantage of lambda expressions is that you have to evaluate a function only when you need its result.
In the following (simple) example, the text function is only evaluated when a writer is present:
public static void PrintLine(Func<string> text, TextWriter writer)
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What are the relative merits of pdflatex? Not sure this is a programming question, but we use LaTeX for all our API documentation and user documentation, so I hope it will go through.
Can someone please explain what are the relative merits of using pdflatex as opposed to the "classic" technique of
latex foo
dvips -P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Are Apache Ant Javadocs Included in the Eclipse Plugin? I was trying to add Ant libraries to a project in eclipse, and I used the ones that were part of eclipse's plugins folder. When I tried to associate them with Javadocs, I couldn't locate them in the plugin folder. I searched for them online, and I found this pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When to use assertion over exceptions in domain classes Are there any situations when you would use assertion instead of exceptions-handling inside domain classes...
A: Use exceptions for parameter validation and other checks which verify that the users of you classes use them as intended.
Use assertions for intern... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using \verbatim as part of an argument for a macro? Most things I've wanted to do in LaTeX have either been straight-forward, or easily found on the web, but this one has been stumping me.
I have a macro 'solution': to apply some common formatting to each solution:
\newcommand\solution[1]{{\\ \\* \bf Solution.}#1\qe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Fatal errors in live servers I'm writing some client/server software and I'm facing the following design issue. Normally, I use a VERIFY macro very liberally - if something is wrong in an user's machine, I want the software to fail and log the error so it can be fixed. I was never a fan of ignoring any kind of error... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best practices re sharing IDbConnection or connection string/factory in your .Net code I'm wondering what would be the best prectice regarding mainataining connections to the database in .Net application (ADO.NET but I guess the practice should be the same for any data layer). Should I create a database connection a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: exchange powershell : parsing an array boolean value In my output, I get
@{ActiveSyncEnabled=False}
how do I parse this so that it just says "False"?
the output is coming from this line of code:
$pda = get-casmailbox -Anr $user.displayname | select activesyncenabled
A: To access the value directly:
(get-casmail... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .NET Shell Control Library Looking for a good quality .NET Control library that provides shell capabilities such as folder trees, item lists, right click, file context menu, and OLE drag/drop.
Update: (I am asking this for someone else) Specifically want to provide the list of "files" which may be from numerous loca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Selecting most recent date between two columns If I have a table that (among other columns) has two DATETIME columns, how would I select the most recent date from those two columns.
Example:
ID Date1 Date2
1 1/1/2008 2/1/2008
2 2/1/2008 1/1/2008
3 1/10/2008 1/10/2008
If I wanted my re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Visual Studio solutions - how to ensure project properties are shared? If you use Visual Studio 2008 and have many project files within solutions how do you keep them in sync? In other words, if you change a property in one project, how do you ensure that this property is automatically changed in other projects?
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is there any way to make a PDF savable from inside the browser? I have a file that I can get to with the UNC \mypath\myfile. I retrieve the path with c# and assign it to a link. The browser opens the file inside itself (ie display in the browser) without problem. But, when I try and save to \mypath\myfile I am pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: python "'NoneType' object has no attribute 'encode'" I wrote this tiny Python snippet that scrapes a feed and prints it out. When I run the code, something in the feed triggers the error message you see here as my question. Here's the complete console output on error:
> Traceback (most recent call last):
> File "/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Java keyboard input parsing in a console app I've just started messing around with JLine to parse character input in console mode. It seems to work well, but I'm wondering:
Is there a nonblocking way in JLine to find out if characters are available? (i.e. like kbhit() in Windows.)
I suppose I could always wrap keybo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Lazy evaluation in C++ C++ does not have native support for lazy evaluation (as Haskell does).
I'm wondering if it is possible to implement lazy evaluation in C++ in a reasonable manner. If yes, how would you do it?
EDIT: I like Konrad Rudolph's answer.
I'm wondering if it's possible to implement it in a more generi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "79"
} |
Q: Why the name "Decorator" for the Decorator design pattern? Can anybody explain why the name "Decorator" was chosen for the functionality conveyed by the Decorator design pattern?
I've always found that name fairly misleading, because decorator and marking interface sound very similar to me in their purpose. However... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Which contract (Design by contract) is better? Suppose I have a method
public Patient(int id)
{
----
}
that returns Patient object given an id.. I could define contract in 2 ways
*
*Method would return null if patient does not exist
*Method would throw an exception if patient does not exist. In this case I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: C#: Where do you call your own save method after pressing OK on a Settings Dialog for your program? Where would you place the SaveSettings method in your project when the user is done editing any settings on the Settings dialog in your program?
Should it be in the return like:
using (frmSettings frmSettings ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Possible Bug in Fluent-NHibernate Repository? I think I might have found a bug, but I'm not really sure. It could be
a syntax error on my part, but the compiler isn't catching. Anyway,
here is what I'm trying to do. Basically I've written my own
repository class that essentially just wraps the Fluent Repository
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MS-SQL Express 2005/2008 multi instance CPU and memory utilization With SQL Express (either 2005 or 2008 edition) there is a limit of 1GB memory and 1 CPU that can be used. What I'm wondering, is if two instances are installed on the same machine, would they use the same CPU and same 1GB of memory? Or, would they us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: The latest version of gcc to use libstdc++.so.5 What is the latest version of gcc that still uses libstdc++.so.5 (as opposed to libstdc++.so.6)?
A: In the Gnu ABI policy, you can find this:
*
*...
*gcc-3.3.3: libstdc++.so.5.0.5
*gcc-3.4.0: libstdc++.so.6.0.0 (Incompatible with previous)
*...
So unless they ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.