text stringlengths 8 267k | meta dict |
|---|---|
Q: Running a web app automatically I have an asp.net update web app. Users go the the page, hit the update button and the program runs. We also want this program to run as a scheduled task everynight. Is this possible? How would you handle this?
thanks
A: You could create a shortcut on your program to a page on your w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# Console Application failing to run I am using Visual Studio 2008 Express and I tried creating a simple console application to test it. When I try to compile it, it compiles fine, but when I try to run it, it complains about the absence of a manifest file. As far as I know, VStudio should create the manifest file ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using XmlSerializer with private and public const properties What's the simplest way to get XmlSerializer to also serialize private and "public const" properties of a class or struct? Right not all it will output for me is things that are only public. Making it private or adding const is causing the values to not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Update Windows Service Assembly Without Restart It? How can I update some Windows Service Seperated Assemblies without restarting the service?
Note: This Windows Service hosted WCF Services, so in addition without restarting the service and so don't shutdown down WCF Clients ..
A: AFAIK, you will have to run the re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: how do I normalize a large, user-generated data-set of company names? Use case: User 1 uploads 100 company names (e.g. Microsoft, Bank of Sierra)
User 2 uploads 100 company names (e.g. The Gap, Uservoice, Microsoft, Inc.)
I want User 1's notion of Microsoft and User 2's notion of Microsoft to map to a centrally mai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: TCL: Recursively search subdirectories to source all .tcl files I have a main TCL proc that sources tons of other tcl procs in other folders and subsequent subdirectories. For example, in the main proc it has:
source $basepath/folderA/1A.tcl
source $basepath/folderA/2A.tcl
source $basepath/folderA/3A.tcl
source $ba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: ASP.NET Wizard and framework 3.5 After upgrading our web application to .NET 3.5 we noticed a strange issue with the Wizard control. Usually after IIS is restarted and a page with the control is loaded, the left hand navigation pane will not be displayed. Hitting this page again will solve this issue. It is also vis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iPhone Memory Debugging I'm using Instruments to try to determine if there are places in my application that I could be more efficient with use of memory. I've taken the time to get somewhat familiar with Instruments but I'm generally a newbie with hunting memory management issues having come from a Java background.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: what's the pythonic way to count the occurrence of an element in a list? this is what I did. is there a better way in python?
for k in a_list:
if kvMap.has_key(k):
kvMap[k]=kvMap[k]+1
else:
kvMap[k]=1
Thanks
A: Single element:
a_list.count(k)
All elements:
counts = dict((k, a_list.count(k)) for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Freezing the DOM to JavaScript: Overwriting DOM modification functions as no-ops I'm writing a piece of code that requires the DOM of a website to remain frozen while arbitrary JavaScript runs. Attributes changing is fine but I can't have anything changing the original tag structure of the page!
I know in JavaScript... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Specifying Required / Optional Claim Types in the Relying Party for a Passive STS I have an asp.net application (relying party) that uses a passive STS for authentication and retrieval of claim values. The relying party is using the FederatedAuthenticationModule (FAM) to enable a passive redirect to the sts. I fou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: extracting stream from pdf in python How can I extract the part of this stream (the one named BLABLABLA) from the pdf file which contains it??
<</Contents 583 0 R/CropBox[0 0 595.22 842]/MediaBox[0 0 595.22 842]/Parent 29 0 /Resources<</ColorSpace<</CS0 563 0 R>>/ExtGState<</GS0 568 0 R>>/Font<</TT0 559 0 R/TT1 560... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: "Specified network name is no longer available" in Httplistener I have built a simple web service that simply uses HttpListener to receive and send requests. Occasionally, the service fails with "Specified network name is no longer available". It appears to be thrown when I write to the output buffer of the HttpLi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: MS Test Inconsistent failing tests after changes when project is under source control? I have noticed that if I have a set of regression tests and decide to change a property on one of my objects (DTO) from int to decimal for example - i make all the other changes and the tests pass like normal. But if this project... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Syncing Django users with Google Apps without monkeypatching I am writing a Django app, and I would like an account to be created on our Google Apps hosted email using the Provisioning API whenever an account is created locally.
I would solely use signals, but since I would like the passwords to be synchronized acro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# 'var' keyword versus explicitly defined variables I'm currently using ReSharper's 30-day trial, and so far I've been impressed with the suggestions it makes. One suggestion puzzles me, however.
When I explicitly define a variable, such as:
List<String> lstString = new List<String>();
ReSharped adds a little squi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Generate webpages directly from database or cache? [I'm not asking about the architecture of SO, but it would be helpful to the question.]
On SO, when a user clicks on his/her name and clicks on "responses" they see other users responses to comment threads, questions, and answers in which they have participated. I'v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is it possible to open a PDF inside a c# application with Acrobat.dll? I know that I can display a PDF file in my c# executable (not web app) with:
private AxAcroPDFLib.AxAcroPDF axAcroPDF1;
axAcroPDF1.LoadFile(@"somefile.pdf");
axAcroPDF1.Show();
But that is the regular pdf viewer like in the browser. I don't wan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Array posting in PHP I am trying to post an array full of checkboxes and to open it in the next page..
It only gives me the last result, anyone know why? or how to fix it?
<form name="input" action="createevent.php" method="post">
Event title:
<input type="text" name="Eventtitle" size="20">
<br>Event Description
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Auto generate function documentation in Visual Studio I was wondering if there is a way (hopefully keyboard shortcut) to create auto generate function headers in visual studio.
Example:
Private Function Foo(ByVal param1 As String, ByVal param2 As Integer)
And it would automagically become something like this...
'-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "113"
} |
Q: Schema design for when users can define fields Greetings stackers,
I'm trying to come up with the best database schema for an application that lets users create surveys and present them to the public. There are a bunch of "standard" demographic fields that most surveys (but not all) will include, like First Name, La... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Naming conventions for abstract classes I distinctly remember that, at one time, the guideline pushed by Microsoft was to add the "Base" suffix to an abstract class to obviate the fact that it was abstract. Hence, we have classes like System.Web.Hosting.VirtualFileBase, System.Configuration.ConfigurationValidatorBas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "112"
} |
Q: Do I need to dispose a web service reference in ASP.NET? Does the garbage collector clean up web service references or do I need to call dispose on the service reference after I'm finished calling whatever method I call?
A: Instead of worrying about disposing your web services, you could keep only a single instance... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Pulling Data from a Mysql Table Field and putting it into an array I can find lots of tutorials showing you how to load an array into a database field but can't seem to figure out how to pull each entry in a field into an array as seperate items. Seems simple enough just can't get it to work, any help?
A: If using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Macintosh C Creating a navigation window to choose an app I'm writing a C program for mac, and I need to allow the user to choose an application to send an apple event to. I can create a navigation window, using NavCreateChooseFileDialog(), but I can't get it to enable any .app files. If I restrict the types using N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Javascript: How to access a class attribute from a function within one of the class's functions Within my a certain function of a class, I need to use setInterval to break up the execution of the code. However, within the setInterval function, "this" no longer refers to the class "myObject." How can I access the v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Anything wrong with moving CLI validation/logic server-side? I have a client/server application. One of the clients is a CLI. The CLI performs some basic validation then makes SOAP requests to a server. The response is interpreted and relevant information presented to the user. Every command involved a request t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MVP and UserControls and invocation I'm having some fun trying to get my head around some MVP stuf, as it pertains to User Controls. I'm using .NET WinForms (or something close to it) and Supervising Controller pattern (well, I think I am :).
The User Control is itself part of an MVP application (its the View and h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Are there alternative methods for saying 'next' in a pl/sql for loop? So I've got a for loop that processes a list of IDs and has some fairly complex things to do. Without going into all the ugly details, basically this:
DECLARE
l_selected APEX_APPLICATION_GLOBAL.VC_ARR2;
...snip...
BEGIN
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: why is the iframe contents empty? I'm trying to understand this bit of code:
in display.php:
<html>
...
<body>
<table>
<tr>
<td>
User info: <iframe id="SpControlFrame1" name="SpControlFrame1" src="javascript:'';"path_src="index.php?cmd=YYY" ></iframe>
</td>
</tr>
</table>
</bo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Apache rewrite I want to proxy all requests to Mongreel except for a few ruby apps that are running with fastcgi on apache.
So basically i have http://domain.com/ Mongreel app
http://domain.com/appa ruby app handled by apache
http://domain.com/app_testb ruby app handled by apache
My httpd.conf looks like this:
Rewr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Autorelease iPhone Coming up towards the end of developing an iPhone application and I'm wondering just how bad is it to use autorelease when developing for the iphone. I'm faced with some fairly random crashes and, so far, I can't pinpoint it to anything other than sloppy memory usage.
As a Cocoa newbie I remember... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Parsing Form Post Values From a Table in ASP.NET MVC? Ok, I'm an MVC newbie coming from a webforms background, so please excuse any ignorance here. Here is my scenario. I've got a table consisting of a list of applications and associated permissions. Each table row consists of 3 pieces of information: a checkbox, so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What does the @ symbol before a variable name mean in C#? I understand that the @ symbol can be used before a string literal to change how the compiler parses the string. But what does it mean when a variable name is prefixed with the @ symbol?
A: The @ symbol allows you to use reserved word. For example:
int @cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "615"
} |
Q: Lightweight process execution timer for Windows Is there a lightweight process execution timer like Unix's time included with Windows? Sometimes I just want a rough estimate, without having to get out a real profiler. While I could roll my own, I would prefer to use an existing solution.
A: You can grab a release ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I get the signature of a C# delegate by its type? Is there a straightforward way using reflection to get at the parameter list for a delegate if you have its type information?
For an example, if I declare a delegate type as follows
delegate double FooDelegate (string param, bool condition);
and later get the ty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "61"
} |
Q: Scheduled Task: Directory cleanup using windows batch script I have a shared disk that I would like to clean up once per week using a scheduled task of some sort. I would like to use a batch script so that the system admins can easily modify it or reuse it on other directories when needed.
The directory has files wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: IIS7 - what does MaxProcesses do? Does anyone know what this value is for?
If it is set to 1, then it seems that you can only have one request going to the server at once. For example, we have a classic ASP file that loads fine, but also has images in it (which come from the same script on the server). The page wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Click Once Setup.exe returns 404 with IIS Whenever I try to install a Click Once application, I always get a 404 error from the setup.exe file. I've checked the physical folder the web server points to and confirmed that setup.exe exists at the correct location.
The CO deployment also works fine if I open the web pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429580",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Working with GridView and ItemTemplates (ASP.net/C#) I have a GridView that is populated via a database, inside the GridView tags I have:
<Columns>
<asp:TemplateField>
<ItemTemplate><asp:Panel ID="bar" runat="server" /></ItemTemplate>
</TemplateField>
</Columns>
Now, I want to be able to (in the code) apply... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Export HTML Table in asp.net MVC I trying to export an HTML table named Table that is dynamically binded to ViewData.Model in C#. I have a method called export that is called based on another method's actions. so everything before that is set up.. I just don't know how to export the data to a CSV or Excel file.. So ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: SQL Cluster - using datasource (local) Using (local) in the connection string doesn't work on my cluster. I'm assuming it's looking for the default instance on the currently active node instead of the Virtual SQL name. Anyone know how to make this work?
edit note:
I'd like to use (local) and not localhost - I d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Best Way to Automate Adding Text to an Image and formatting for Printing? Here's what I have:
Quarter Sheet Flyer (4 per page) as a PSD or JPG
Text file with one entry of text per line.
What I want to do:
Print out 100 flyers (on 25 pieces of paper)
Somehow automate the process of adding the text to the image,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the best way to reuse functions in Flex MVC environment? I am using a Cairngorm MVC architecture for my current project.
I have several commands which use the same type of function that returns a value. I would like to have this function in one place, and reuse it, rather than duplicate the code in each comm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: BlazeDS vs. GraniteDS Anyone have any experience evaluating BlazeDS and GraniteDS? I'm curious about which is better at integrating with Spring/Hibernate.
A: If you are just looking for simple RPC and messaging, I would go with Blaze. The implementations are more mature and better proven, especially with respect to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: where can I lookup if I am running .net 3.5 or 3.5 sp1? I want to verify if a computer is running .net 3.5 or 3.5 sp1, where do I look this info up?
A: In the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP
This topic has been covered here:
Determine highest .NET Framework version
A: You ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: merge cells in ms-access I'm using access 03.
let's say i'm modeling a parties database. each party has some people invited. each party also has a location and date.
when presenting the information in a form, i want to be able to merge the recurring cells. something like:
_________________ ____________ ___________
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What do you deploy to clients SVN branches or tags Not long ago we were using Microsoft VSS as our version control tool, and used to create branch of our code after the end of every release and deploy that to our clients.
Now we have moved to SVN and lately there have been lot of discussion about tags/branches, shou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to speed up floating-point to integer number conversion? We're doing a great deal of floating-point to integer number conversions in our project. Basically, something like this
for(int i = 0; i < HUGE_NUMBER; i++)
int_array[i] = float_array[i];
The default C function which performs the conversion turns out... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Rails: FasterCSV - Unique Occurrences I have my CSV file imported as such:
records = FasterCSV.read(path, :headers => true, :header_converters => :symbol)
How can I get the unique occurrences of my data? For instance, here some sample data:
ID,Timestamp
test,2008.12.03.20.26.32
test,2008.12.03.20.26.38
test,2008.1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to do pretty OSD in Python Is there a library to do pretty on screen display with Python (mainly on Linux but preferably available on other OS too) ? I know there is python-osd but it uses libxosd which looks quite old. I would not call it pretty.
Maybe a Python binding for libaosd. But I did not find any.
A: A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using pointers in Objective C for NSMutableArray objects When retrieving objects from an NSMutableArray in cocoa-touch is the below code ok? Should I be allocating([alloc]) new Page objects each time or is just pointing to it alright? Do I need to do anything to the Page *pageObj after, such as set it to nil?
const ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the difference between new Some::Class and Some::Class->new() in Perl? Many years ago I remember a fellow programmer counselling this:
new Some::Class; # bad! (but why?)
Some::Class->new(); # good!
Sadly now I cannot remember the/his reason why. :( Both forms will work correctly even if the constructor ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: How can I flip/rotate a PrintDocument in .NET? I have a document that I want to be flipped / rotated 180 degrees when printed.
(This is due to the orientation of label stock in the printer).
There is a property PrintDocument.PrinterSettings.LandscapeAngle but it is read only.
I think this property is influenced by ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using the results of a query in OPENQUERY I have a SQL Server 2005 database that is linked to an Oracle database. What I want to do is run a query to pull some ID numbers out of it, then find out which ones are in Oracle.
So I want to take the results of this query:
SELECT pidm
FROM sql_server_table
And do somethi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Properly notifying all listeners of a system wide named manual reset event and then immediately resetting it I have a system-wide manual reset event that I create by doing the following:
EventWaitHandle notifyEvent = new EventWaitHandle(false, EventResetMode.ManualReset, notifyEventName, out createdEvent);
Several ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Using DataPager without retrieving all rows on each request I have a ListView that I am databinding to a collection of objects something like this:
int total;
List<Client> clientList =
clientData.GetClients(criteria, pageNum, pageSize, out total);
uxClientList.DataSource = clientList;
uxClientList.DataBind();
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Image recognition and 3d rendering How hard would it be to take an image of an object (in this case of a predefined object), and develop an algorithm to cut just that object out of a photo with a background of varying complexity.
Further to this, a photo's object (say a house, car, dog - but always of one type) woul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Regex Pattern - Allow alpha numeric, a bunch of special chars, but not a certain sequence of chars I have the following regex:
(?!^[&#]*$)^([A-Za-z0-9-'.,&@:?!()$#/\\]*)$
So allow A-Z, a-Z, 0-9, and these special chars '.,&@:?!()$#/\
I want to NOT match if the following set of chars is encountered anywhere in the s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to get rid of validation warnings The complete warning is Validation (): Element 'html' occurs too few times
This is for a JSON view, which you might guess returns a JSON result and hence no html.
A: ASP.NET MVC has the ability to return JSON data as a proper json response. It seems you're using HTTP response ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: web service being called twice with jquery ajax function I am using the $.ajax function in jquery to make a call to an asmx service. When I look at the requests from fiddler, I see two requests for each call I make. One has a content type of text/html which of course returns a 401 not authorized status, and the ot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Detecting installed programs via registry I need to develop a process that will detect if the users computer has certain programs installed and if so, what version. I believe I will need a list with the registry location and keys to look for and feed it to the program which is not a problem. Is there a better way to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "66"
} |
Q: What is the best way to check for the existence of a Login in SQL Server 2005 I am looking for the best way to check that a database login exists in SQL Server 2005. I am currently using
IF suser_sid('loginname') IS NOT NULL
but suser_sid() returns a value in some cases where a login does not exist.
In SQL 2000 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery: Color fade-rotate I need a function that I can call when somthing is done, for example a fadeOut, fadeIn and so on...
The function I need is a bg-color/font-color rotate with jQuery. I want it to fade betwen two colors for X seconds. Have used google with no result.
A: There is a plugin for that:
http://plu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: IDataReader and "HasColumn", Best approach? I've seen two common approaches for checking if a column exists in an IDataReader:
public bool HasColumn(IDataReader reader, string columnName)
{
try
{
reader.getOrdinal(columnName)
return true;
}
catch
{
return false;
}
}
Or:
public bool H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is there a file descriptor leak when using sockets on a linux platform? If I open and close a socket by calling for instance
Socket s = new Socket( ... );
s.setReuseAddress(true);
in = s.getInputStream();
...
in.close();
s.close();
Linux states that this socket is still open or at least the file descriptor f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Customize Google Maps info window? I'm working on a website of a client, a local church. I've embedded a Google Map using the Link feature on the Maps page. The info window on the map includes "Reviews," and the church is concerned about this. Is there a way to remove that from the info window? I don't want to r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: ORA-28579: network error during callback from external procedure agent Has anyone seen this error when trying to call an external C function from an Oracle query? I'm using Oracle 10g and get this error every time I try to call one of the two functions in the library. A call to the other function returns fine ever... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MySQL Question - Unique Key Not functioning correctly, or am I misunderstanding? I'm trying to create a relation where any of four different parts may be included, but any collection of the same parts should be handled as unique.
Example:
An assignment must have an assigned company, may optionally have an assigned l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How should I handle errors in Perl methods, and what should I return from the methods? I've wrapped Perl's Net::SSH::Expect with a small module to reduce the boilerplate code needed to write a new configuration script for use with our HP iLO cards. While on one hand I want this wrapper to be as lean as possible, so ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to deploy to a single specific server using Capistrano I have a system in production that has several servers in several roles. I would like to test a new app server by deploying to that specific server, without having to redeploy to every server in production. Is there a way to ask Capistrano to deploy to a spe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: How can I programatically display the context menu for a file? In a C# program I would like to display the context menu for a file.
For example: If the user clicked on the files name in my program, I would like to display the actual right click menu. By actual, I mean, the system context menu. I don't need programma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where can I find ASP MVC documentation? Could anyone can tell me where I can find full ASP.NET MVC beta documentation?
A: A few good places to start:
*
*http://www.asp.net/learn/mvc/
*http://weblogs.asp.net/scottgu/archive/2007/10/14/asp-net-mvc-framework.aspx
*http://www.asp.net/mvc/
I would expect full docu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: The "Waiting lists problem"
A number of students want to get into sections for a class, some are already signed up for one section but want to change section, so they all get on the wait lists. A student can get into a new section only if someone drops from that section. No students are willing to drop a section th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I call a method from an instance of a class? -(NSDictionary *)properties;
+(NSDictionary *)ClassProperties;
Now, how can I call ClassProperties from sub-classes?
-(NSDictionary *)properties {
return [? ClassProperties];
}
The point is that ClassProperties gets the list of properties in the class, so i c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Double dispatch/multimethods in C++ I have a question on C++ double dispatch. In the code below, I want the results from the second set to match the results from the first set.
I don't know the actual type (unless I try dynamic_cast) but I do know that the object inherited from the BaseClass type. What is the most ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Scientific notation when importing from Excel in .Net I have a C#/.Net job that imports data from Excel and then processes it. Our client drops off the files and we process them. I don't have any control over the original file.
I use the OleDb library to fill up a dataset. The file contains some numbers like 3082930... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: C# File/Directory Permissions I am writing an application to manage user access to files. The short version of a very long story is that I have to use directory and file priveleges to do it. No document management system for our cheap CEO...
Anyway... I have everything working except the case where the user can view... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Domain Entity Property Names For domain entities, should property names be prefaced with the entity name? I.E. my class Warehouse has a property WarehouseNumber. Should that property be named WarehouseNumber or simply Number?
Thoughts?
A: I prefer not using the prefix, I find it easier to type, and more readable, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WinForms ReportViewer: slow initial rendering UPDATE 2.4.2010
Yeah, this is an old question but I thought I would give an update. So, I'm working with the ReportViewer again and it's still rendering slowly on the initial load. The only difference is that the SQL database is on the reporting server.
UPDATE 3.16.2009... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Choosing a method to store user profiles? I'm in the process of working on a user profile system for a website and am pondering what would be a better (scalable) approach to take. I've come up with two solutions and am looking for either input or perhaps pointers to something I might have missed.
The following creat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to use IHTTPAsyncHandler? Imagine I have some code to read from the start to end of a file like so:
while(sw.readline != null)
{
}
I want this to be fully asynchronous. When deriving from IHTTPAsyncHandler, where would this code go and where would would the code to get the content of each line go?
A: I recent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is the with() construct not included in C#, when it is really cool in VB.NET? I am C# developer. I really love the curly brace because I came from C, C++ and Java background. However, I also like the other programming languages of the .NET Family such as VB.NET. Switching back and forth between C# and VB.NET is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Bypassing SET NAMES UTF8 for MySQL The mysql manual says that SET NAMES 'x' is equivalent to
SET character_set_client = x;
SET character_set_results=x;
SET character_set_connection=x;
According to my config file for SERVER variables, I have all three of these set to utf8.
However, if I actually do a SHOW VARIAB... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to use TypeConverters to convert a System.Datetime to custom type For some reason I need to cast/convert a DateTime into one of many custom objects
This proves to be very difficult to do in a nice generic fashion.
I am thinking of implementing an extension method on object or perhaps extending DateTimeConverter.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Design from the database first through to UI or t'other way round? Do you always lean towards thinking of db schema when starting or planning a new project it or do you go the other way and start designing UI then moving down the stack?
Or do you have a different way of developing?
Not really an agile/waterfall/spec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Eclipse, ant and custom tasks Sorry, I'm not terribly experienced with Ant.
I like the eclipse "Export ant buildfile" function, but I need to insert a few custom tasks (Copying files, calculating checksums that are used at runtime, etc).
How do I integrate custom ant tasks with the antfile that Eclipse exports? Als... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How can I make this query easier to write I have a query that pulls up questions from one table and answers from another.
SELECT
questions.question,
questions.answers,
(SELECT COUNT(answer) FROM answers WHERE question_id = 1 AND answer = 1
GROUP BY answer) as ans1,
(SELECT COUNT(answer) FROM a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MSDN Subscription ISO extraction What do you use to extract the contents of an ISO after you've downloaded it from MSDN Subscription?
A: To look what's in the ISO you can:
*
*mount ISO image as a drive
*burn ISO on a cd/dvd
*use WinRAR to look at / extract the contents
A: DaemonTools is a great free virtual ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to Mock Indexed Property with Rhino Mocks? How can I Mock Indexed Property with Rhino Mocks ?
A: I'm assuming you mean a property using this[]
var mockClass = MockRepository.GenerateMock<MockClass>();
mockClass.Expect( m => m["key"] ).Return( "value" ); // return a value
mockClass.Expect( m => m["key2"]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Change the Text of an asp:CheckBox when clicked How can I change the Text for a CheckBox without a postback?
<asp:CheckBox ID="CheckBox1" runat="server" Text="Open" />
I would like to toggle the Text to read "Open" or "Closed" when the CheckBox is clicked on the client.
A: If you're interested to use a framework ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there any events based calendar that is available for ASP.NET Hi i am looking for an events calendar where user can come in and add their events.. and then latter on other ppl can view it...
what i am looking for is something like this..
http://www.torontoparentsguide.com/Events/tabid/92/Default.aspx
A: Depend... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: "Open in visual studio" link in an ASP.net exception default page When my ASP.NET application crashes (when it shows the default exception page), I'd like to be able to click on a line of the call stack in the browser and Visual Studio would open the code file at the given line.
Do you think it's possible ? Maybe wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are some good resources to look into synchronizing contact data on mobile devices with a .NET application? Basically we want to be able to somehow synchronize our .NET application's contacts with the contacts on a mobile device (Pocket PC, iPhone, Blackberry, etc) Preferably a one shot deal that can interface ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When do you use reflection? Patterns/anti-patterns I understand the reflection API (in c#) but I am not sure in what situation would I use it. What are some patterns - anti-patterns for using reflection?
A: There is no hard and fast rule. Basically, you don't use reflection without a good reason. Use reflection w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: "The resource cannot be found." error when there is a "dot" at the end of the url I'm using ASP .NET MVC Beta and I get the HTTP 404 (The resource cannot be found) error when I use this url which has a "dot" at the end:
http://localhost:81/Title/Edit/Code1.
If I remove the dot at the end or the dot is somewhere in t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: Having problems creating a custom lookup function in excel. Issue with match and concatenated ranges I'm having some trouble with a large spreadsheet of mine. I bring in a lot of raw data into a data sheet, and then do a number of lookups across the data. Using built in functions I've come up with
=IF(ISNA(INDEX(Dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Which distro is best for hosting LAMP + memcache? (answer gets a Linode or Slicehost referral) Despite having very little Linux experience, I'm too enticed by VPS (and too sick of cPanel/shared hosting crap) to not give it a try.
I'm a smart kid and pick up things pretty quick. I took a class in Linux and know ba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Gac Multiple Projects From Visual Studio We currently have "gacutil /i $(TargetPath)" as an external tool in visual studio and it works fine for gac'n a single project.
I want to be able to select multiple projects and gac them so I put together a batch script to test.
set randomfile=%random%
echo %1 %2 %3 > %rando... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Compression formats with good support for random access within archives? This is similar to a previous question, but the answers there don't satisfy my needs and my question is slightly different:
I currently use gzip compression for some very large files which contain sorted data. When the files are not compressed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/429987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "68"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.