text stringlengths 8 267k | meta dict |
|---|---|
Q: How can I grab each page of text in a Word doc separately (using .NET)? I need to determine which pages of a Word document that a keyword occurs on. I have some tools that can get me the text of the document, but nothing that tells me which pages the text occurs on. Does anyone have a good starting place for me? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can you tell png8 from a png24 I'm working on a website that uses lots of png24 files, for transparency.
I need to replace them with png8 files, as all the png fix style javascript workarounds for png24 cause IE6 to lock up randomly.
See this link to get an idea of the symptoms IE6 displays - http://blogs.cozi.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Rendering Excel from browser I have some content that i have to render as a excel file in browser. I was able to render a grid content to excel with the below code.
Response.Clear();
Response.AddHeader("content-disposition", "attachment;filename=FileName.xls");
Response.Charset = "";
Response.ContentType = "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is writing server log files to a database a good idea? After reading an article about the subject from O'Reilly, I wanted to ask Stack Overflow for their thoughts on the matter.
A: Write locally to disk, then batch insert to the database periodically (e.g. at log rollover time). Do that in a separate, low-priority ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: NHibernate many-to-one and unique constraint violation I have a problem trying to model a many-to-one relationship in NHibernate, where the object on the 'one' side has a unique constraint on a column. The problem is as follows:
I have two tables, 'Person' and 'Country'. Each Person has one and only one Country asso... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I customise error messages in SSRS? I have SSRS Report being accessed from a Report Server. Is there any way I can give an error message of my own, if my report fails to open there?
A: I can't think of any way to capture RS errors if you are using SSRS report manager. On the other hand, if you are using th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to convert an RPC/encoded style WSDL into document/literal I need to generate a new WSDL file in the document/literal style based on an old RPC/encoded one. I've viewed the other WSDL questions here - and read http://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/. This suggests that the document/l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do I develop web 2.0 apps with CGI.pm? A few years ago I did a lot of work with CGI.pm. I'm evaluating using it again for a quick project. Can someone bring me up to speed on the current state of developing with CGI.pm in the "Web 2.0" world? What are the best libraries on CPAN to use with it? Are there clea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Outlook Interop: How to iterate over all items in folder I would like to search the bodies of all outlook items. I know how to do this for the four PIM items (Notes/Tasks/Appointments/Contacts). But the code is identical for all of them with the exception of casting the COM object to the specific item type (i.e., C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Internet Explorer serves up unknown file type I have a web server on port 80 and port 81. IE can connect to the server on either port. This worked fine until I installed an application with a file type (.TPJ) that had a MIME type of text/xml on the client PC. At that point IE no longer opened the web site, but offer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SharePoint: Make a list field hidden programmatically I'm trying to hide the "Title" field in a list.
This doesn't seem to work:
SPList myList;
...
SPField titleField = myList.Fields.GetField("Title");
//titleField.PushChangesToLists = true; <-- doesn't seem to make a difference
titleField.ShowInEditForm = false;
ti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: how can i leave out fields from an axis2 soap response? I have an Axis2 Web Service that requests the status of some objects. The objects can either exist on the server, or not exist.
The web service is implemented with POJOs, and the wsdl is generated with java2wsdl tool.
Lets say the relevant part of the SOAP res... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: StAX XML formatting in Java Is it possible using StAX (specifically woodstox) to format the output xml with newlines and tabs, i.e. in the form:
<element1>
<element2>
someData
</element2>
</element1>
instead of:
<element1><element2>someData</element2></element1>
If this is not possible in woodstox, is there... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: SQL Server and the Guest Account - what is this for? How is the guest account in SQL Server (2000, 2005, 2008) supposed to be used? What is it good for? I've tried enabling the account but I still can't get certain users to be able to refresh Excel 2007 PivotTables attached to views which I have given SELECT rights ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I position an element at the bottom of its container in Firefox? I have a table cell, and I want a div within it to always be at the bottom left corner. The following works fine in IE and Safari, but Firefox is positioning the div absolutely on the page, not within the cell (code based on the solution solut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: A Good, Free screen sharing program for pair programming? I am looking for a good, free (preferred) screen sharing program that works well for pair programming and code review sessions for Windows (Vista x64, Server 2008). It should allow either person take control of the screen and be fairly responsive for text edi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How do I get sendmail to work reliably on a Mac OS 10.5? I need to use sendmail from Macs in an office. At the moment, I can get it to work on the two development Macs (which I think is due to MAMP being installed and working), but getting it to go on the others seems to be a problem...
I assume it's down to some co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Editing all external links with javascript How can I go through all external links in a div with javascript, adding (or appending) a class and alt-text?
I guess I need to fetch all objects inside the div element, then check if each object is a , and check if the href attributen starts with http(s):// (should then be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: HTML/CSS: Horizontal bar/design on sites like jQuery I'm sure it's just simple html/css but I don't know what to call the bar (googling horizontal bar html always results in a horizontal rule).
http://jquery.com/ has one - the grayish bar the runs across the top separating the menu from the content of the page. I'd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Has anyone else seen this IE6.0 Display problem? Has anyone seen this type of IE display problem?
Example http://xs133.xs.to/xs133/08465/ie_problem910.jpg.xs.jpg
Note that it is doing some sort of word-wrap/duplication when it renders.
The code for the brown box and the text that should be in it is:
<div class='span... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java Application Server Performance I've got a somewhat dated Java EE application running on Sun Application Server 8.1 (aka SJSAS, precursor to Glassfish). With 500+ simultaneous users the application becomes unacceptably slow and I'm trying to assist in identifying where most of the execution time is spent and wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: jQuery UI - when should I use destroy method on the widgets When I attach functionality to an element do I need to call .widgetName('destroy') before removing it from the DOM or does jQuery handle this?
A: Try using remove .
I don't think this happens automatically, but then again, I don't think you need to call t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Django Template System: How do I solve this looping / grouping / counting? I have a list of articles, and each article belongs to a section.
class Section(models.Model):
name = models.CharField(max_length=200)
def __unicode__(self):
return self.name
class Article(models.Model):
section = models.ForeignKe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: RadioButtonList.SelectedIndex vs RadioButtonList.SelectedValue Out of curiosity, anyone knows the particulars of the internal implementation of
ListControl.SelectedIndex = (int) <new valueIndex>
VS
ListControl.SelectedValue = <new value>.ToString()
I'm having difficulties with a custom validation object we've bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is using a GUID security though obscurity? If you use a GUID as a password for a publicly facing application as a means to gain access to a service, is this security through obscurity?
I think the obvious answer is yes, but the level of security seems very high to me since the chances of guessing a GUID is very very... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Filter a Python list by predicate I would want to do something like:
>>> lst = [1, 2, 3, 4, 5]
>>> lst.find(lambda x: x % 2 == 0)
2
>>> lst.findall(lambda x: x % 2 == 0)
[2, 4]
Is there anything nearing such behavior in Python's standard libraries?
I know it's very easy to roll-your-own here, but I'm looking for a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "79"
} |
Q: ORM solutions for multi-database queries In an ORM you can have nice syntax like this:
my $results = Model.objects.all()[10];
And in the Django ORM it even quite nicely handles foreign key relationships and many to many relationships all through the ORM.
However, in MySQL you can run a query like this:
SELECT t1.c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Macro Replacement during Code Generation Presently I have a some legacy code, which generates the op code. If the code has more number of macros then the code generation takes so much of time (In terms of hours!!).
I have gone through the logic, they are handling the macro by searching for it and doing a replace of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I disallow numbers in a regular expression? Hello I was writing a Regular Expression (first time in my life I might add) but I just can't figure out how to do what I want. So far, so good since I already allow only Letters and spaces (as long as it's not the first character) now what I'm missing is that I don... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Restful commands I am new to RESTful stuff. But, I want to use it in my rails app. When I add this to my routes.rb map.resources :notes I get routes to these methods created:
*
*index
*create
*new
*edit
*show
*update
*destroy
What I am wondering is what is the difference between edit/update and create/n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Using python to build web applications This is a follow-up to two questions I asked a week or so back. The upshot of those was that I was building a prototype of an AI-based application for the web, and I wondered what language(s) to use. The conclusion seemed to be that I should go for something like python and the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Why would someone use Button instead of LinkButton control in navigation I am reworking some ui in an application written by freelance .Net developers from another country.
I am not going to go into how bad the code is and entangled the code with structure content and presentation are...
But one of the things I n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can someone explain the Flickr API and how security is established? Why not use AES instead of md5? Just trying to understand Flickr's API setup, and how secure it really is.
Flickr API
Why do a MD5 hash and not something like AES?
A: The hash is strictly a signature, so a one-way hash like MD5 is good enough for t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I set up a build server on the cheap/free? Currently I'm tasked with doing the daily build. We have an ASP.NET 2005 website with a SQL Server 2005 backend. Our current source control is Visual Source Safe 2005.
At this point, I use the brute-force method of daily builds.
*
*Get Latest version of source c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to paste over without overwriting register Does anyone know of a way to paste over a visually selected area without having the selection placed in the default register?
I know I can solve the problem by always pasting from an explicit register. But it's a pain in the neck to type "xp instead of just p
A: Luc He... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "135"
} |
Q: SQL Server Express Idle Mode Partial Data Returns? I'm attempting to help our network engineers troubleshoot a situation for one of our clients. This client purchased a point-of-sale system from quite literally a "mom-and-pop" vendor, and said vendor recommended SQL Server Express 2005 as the back-end database to sa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Read-only Access data source We have a major VB6 trading application which uses MS Access (Don't ask!) It is always blasting trades into an MS Access database.
The rest of the infrastructure here has moved on considerably and I want to read this Access database periodically and copy any new trades into a SQL server ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What file permissions should I set for uploaded files I have a PHP script that processes file uploads. The script tries to organise the files that are uploaded and may create new folders to move the files into if needed. These files will be below the www root directory (ie, a web browser will be able to access them)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Simple text menu in C++ I am writing a silly little app in C++ to test one of my libraries. I would like the app to display a list of commands to the user, allow the user to type a command, and then execute the action associated with that command. Sounds simple enough.
In C# I would end up writing a list/map of comm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does this code remove a file extension? This isn't my code; I am trying to figure out what exactly this does. This is a part of a big, ancient system written in C (actually it was written 4 years ago, but most likely written by a late 80s programmer mentality). Part of the code:
char DestFile[256];
char DestFile2[25... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Image Dropdownlist I am looking for a drop down list which can present the user with a series of images to choose from. Each image will be about 50x50 pixels and a small text description will be under the image. A jQuery and compatable ASP.NET solution would be preferred.
A: I wrote a super basic jQuery plug in to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you split a file base on a token? Let's say you got a file containing texts (from 1 to N) separated by a $
How can a slit the file so the end result is N files?
text1 with newlines $
text2 $etc... $
textN
I'm thinking something with awk or sed but is there any available unix app that already perform t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Regex pattern for numeric values I need an regular expression pattern to only accept positive whole numbers. It can also accept a single zero.
I do not want to accept decimals, negative number and numbers with leading zeros.
Any suggestions?
A: /([1-9][0-9]*)|0/
A: /^0|[1-9]\d*$/
A: "[1-9][0-9]*|0"
I'd just us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "67"
} |
Q: Can you estimate an application's performance before testing? It's a tricky question I was asked the other day... We're working on a pretty complex telephony (SIP) application with mixed C++ and PHP code with MySQL databases and several open source components.
A telecom engineer asked us to estimate the performance ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ListView Shows Repeated Elements When the Underlying Generic List Does Not Contain Repeated Elements I am binding a generic List to an <asp:ListView /> control to display a tag cloud. The elements in the list are Tag objects, where Tag is basically just something like:
public class Tag {
public string Name { get... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: In sharepoint disabling a individual list item from being updated What im wondering how to do is when someone edits a list item and it goes through my event code that is fired when a change is made and save is hit, i dont want anyone to be able to edit that list item itself while its still processnig that request. S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does VB.NET optimize the concatenation of string literals? Similar to this question, but for VB.NET since I learned this is a language thing.
For instance, would the compiler know to translate
Dim s As String = "test " + "this " +
"function"
to
Dim s As String = "test this function"
and thus avoid the performan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Best way to find "next" form input element in jQuery? Using jQuery, what's the best way to find the next form element on the page, starting from an arbitrary element? When I say form element I mean <input>, <select>, <button> or <textarea>.
In the following examples, the element with the id "this" is the arbitrary ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: Wrongly created output folders with Visual Studio 2008 I have a solution with many projects. There is actually a Core project and a few plugins. I changed OutputPath for all plugins so all binaries end up in the Core bin\debug folder. (this is necessary as the Core do not have a reference on plugins, hence it does n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to automatically copy data to new RMI threads? I am adapting a little rmi client-server application. I have written several things :
HelloInterface -> A Hello World interface for RMI
Server -> The server app'
Client -> The client app'
Nothing special, but... I have put my hands in a new RMISecurityManager, whic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Validate a username and password against Active Directory? How can I validate a username and password against Active Directory? I simply want to check if a username and password are correct.
A: We do this on our Intranet
You have to use System.DirectoryServices;
Here are the guts of the code
using (DirectoryEntry a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "584"
} |
Q: How do I stop/start a scheduled task on a remote computer programmatically? I want to write a script that will stop a scheduled task on a remote computer, do some stuff, and then start the schedule task back up.
How can I do it?
A: Note:
"schtasks" (see the other, accepted response) has replaced "at". However, "at... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: Advice about forming Hackers Club I'm thinking of forming a Hackers Club at work. My idea is that we would meet monthly and at each meeting one member would present an interesting hack he had created. (The hacks presented wouldn't necessarily have to be software hacks; they could also be the sort of things you rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: JAX-RPC, Spring web services, and UnsupportedOperationCallException I have a JAX-RPC web service that I am attempting to consume using Spring. This is my first time using Spring to consume a web service, so right now I'm just trying to get it to integrate with the JAX-RPC web service as a test.
The web service has s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Do I have to use J2ME for Blackberry development? I would like to begin developing for the Blackberry platform and, specifically, the Bold and also the Storm device which is coming out soon. Do I need to get into Java and J2ME or can I develop sites in ASP.NET and just keep utilizing the skills I already have?
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Handling MySQL Full Text Special Characters When using MySQL full text search in boolean mode there are certain characters like + and - that are used as operators. If I do a search for something like "C++" it interprets the + as an operator. What is the best practice for dealing with these special characters?
The cu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What is causing ObjectDisposedException from SerialPort while debugging .NET winform? Vista SP1
Visual Studio 2008 SP1
.NET 3.5 SP1
C#
I have a winforms app I'm playing with that uses a SerialPort object as a private variable. When the application is compiled and executed, it works great. It also works running in de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Javascript menu remembering position I am currently working on a JS menu for a web app. It consists of two bars, the fixed main one and the submenu which is activated (display:block from display:none) by Javascript function. The selected options of the main menu as well as the submenu are also highlighted by adding ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Detecting dead applications while server is alive in NLB Windows NLB works great and removes computer from the cluster when the computer is dead.
But what happens if the application dies but the server still works fine? How have you solved this issue?
Thanks
A: By not using NLB.
Hardware load balancers often have c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: control lost focus event when using keyboard shortcut For both .NET Winforms and Windows Presentation Foundation, if I have a text box that the user has just entered text into, and a button, if the user clicks the button the "LostFocus" event fires before the button click event fires. However if the user uses a key... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sql server complaining about this IF NOT EXISTS statement Sql server complaining about this IF NOT EXISTS statement, saying that there is 'incorrect syntax near the keyword 'OR'.
My query:
IF NOT EXISTS (
(SELECT * FROM Users where userID = 1)
OR
(SELECT * FROM sales ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290596",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Phone Number Columns in a Database In the last 3 companies I've worked at, the phone number columns are of type varchar(n). The reason being that they might want to store extensions (ext. 333). But in every case, the "-" characters are stripped out when inserting and updating. I don't understand why the ".ext" chara... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290597",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Changing font tracking in Cocoa I'm doing some text rendering in Cocoa using NSAttributedString, and setting the font and underline properties, etc. However, I can't figure out how I can change the text's tracking. Any suggestions?
A: I don't think font tracking is an exposed property for text layout with attribu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Parallel LINQ in WebApps? I just watched the last Channel 9 vid on the upcoming parallel extensions to .NET.
How would you use this in a web app? I'm specifically thinking of using the parallel Linq extensions against a SQL db. Would this makes sense to use as a way to speed up your data access layer in a multi-user... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Updating sort keys after delete I have a table which has a field sort_id. In this field there are numbers from 1 to n, that define the order of the data sets.
Now I want to delete some elements and afterwards I want to reorder the table. Therefore I need a query that "finds" the gaps and changes the sort_id field ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Translate a url to a route I feel like I'm re-inventing the wheel here, but I need to find a way of taking a URL from a catchall,and redirecting that to another route.
The reason for this is because I need to do some things like adding session cookies for certain urls, and then pass them on to their relevant action.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Where the deploy files goes for .NET Web Service running inside Visual Studio? When I use my browser to test my web service, it opens at http://localhost:4832/ -- where can I find its files physically on my drive?
Update
I do not want to know where the files of my VS.NET solution are located but where I should put t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cannot tab out of databound Winforms dropdown list This is a bit of a strange one, but I've been struggling for a few hours now and I can't understand what is happening.
I was wondering if anyone else has experienced this problem, and can perhaps explain it. I'm building a simple Winforms app and trying to use many ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: DB-side encryption via NHibernate We're looking to encrypt a field using DB-side encryption via NHibernate (most examples we've come across are app-side, which is not what we would like). The issue has been raised a couple of times, but no answers yet it seems.
On SQL Server 2005, for instance, and forgetting key-r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to overload operator<< that doesn't take or return ostream Original Question
I am writting a logging class where the goal is to be able to do this:
// thread one
Logger() << "Some string" << std::ios::hex << 45;
// thread two
Logger() << L"Some wide string" << std::endl;
Currently my Logger header looks somethi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is the performance hit of Performance Counters When considering using performance counters as my companies' .NET based site, I was wondering how big the overhead is of using them.
Do I want to have my site continuously update it's counters or am I better off to only do when I measure?
A: A performance counter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: Using Java 6, on linux how can I make sure to use an ipv4 socket? I'm trying to write a quick little java application to read the contents of a pcap file (from Wireshark) and play the data back on the network on a linux box. The file will only contain UDP broadcast packets, so my application only really needs the t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: TinyMCE Plugin building I am working on modifying an existing spell check plugin for TinyMCE.
This is what is supposed to happen:
1. User hits "space" and the spell check runs.
2. If the word is spelled wrong the word gets wrapped with a span and gets a red underline
what I find happening is that when the user hit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Fastest way to hash a set of GUIDs I have a list of n GUIDs and I need to hash them into a single value. This value could be the size of a Guid object or the size of an Int32, it doesn't really matter, but it does need to be statistically unique (say with a probably similar to MD5).
So one approach could be to sort... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Get output parameter value in ADO.NET My stored procedure has an output parameter:
@ID INT OUT
How can I retrieve this using ado.net?
using (SqlConnection conn = new SqlConnection(...))
{
SqlCommand cmd = new SqlCommand("sproc", conn);
cmd.CommandType = CommandType.StoredProcedure;
// add parameters
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "99"
} |
Q: Custom Errors for "App" folders? (ASP.NET) Where can I setup custom errors for directories in my application such as App_Code, App_Browsers, etc.? I already have customErrors configured in the web.config and that works as expected. For example,
http://www.mysite.com/bla.aspx > redirects to 404 page
but
http://www.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# penalty for number of lines of code? Are there limits or performance penalties on the amount of code inside of my home.cs form?
I am writing a database application front-end in C# in Visual Studio 2008. The way things are lining up, I am using a tab-page way of changing the info shown to the end users, instead of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Basic template for Transactions in sqlserver If I simply wrap my query with:
BEGIN TRANSACTION
COMMIT TRANSACTION
If anything fails inside of that, will it automatically rollback?
From looking at other code, they seem to check for an error, if there is an error then they do a GOTO statement which then calls ROLL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Examples for creating stub data structures with dynamic JVM Languages? Over the years, I think I have seen and tried every conceivable way of generating stub data structures (fake data) for complex object graphs. It always gets hairy in java.
* * * *
A---B----C----D----E
(Pardon cheap UML)
The key issu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Will there be a Log4J 2.0 release (and if so, when)? It seems like v2 of Log4j has been in development for literally years. The Apache Log4J site no longer lists a roadmap, the dev mailing list seems almost entirely about 1.2 (which is appreciated!), use of v1.3 is discouraged, and the 2.0 branch is listed as "expe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you monitor file access and changes on a file server by user name? I was asked to find a way to monitor changes (modification, renaming, deletion, moving) of files in specific folders on the company's shared file server (simple windows shared directory). I wrote a simple app in C# that uses FileSystemWatcher ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: insert html listbox items from database how do i insert items into an html listbox from a database?
im using asp c#. i cant make the listbox run at server because the application wont work if i do that. so i have to insert values from a database into an html listbox. I just need to display 1 column of data. cheers..... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: warning C4244: 'argument' : conversion from 'SIZE_T' to 'DWORD', possible loss of data I need to have a set of overloaded functions in my code but I get convertion wanrings.
Here is a test code:
#include windows.h
void f(DWORD arg){...}
//void f(SIZE_T arg){}
void main(void)
{
DWORD dword=0;
SIZE_T size_t=dword;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can you concatenate two huge files with very little spare disk space? Suppose that you have two huge files (several GB) that you want to concatenate together, but that you have very little spare disk space (let's say a couple hundred MB). That is, given file1 and file2, you want to end up with a single file whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Using C# and gppg, how would I construct an abstract syntax tree? Is there a way to do this almost out-of-the-box?
I could go and write a big method that would use the collected tokens to figure out which leaves should be put in which branches and in the end populate a TreeNode object, but since gppg already handled... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL Server 2005 Replication and different indexes on the subscriber We have SQL Server database setup. We are setting up a replication scenarios where we have one publisher and on subscriber. The subscriber will be used as a reporting platform so that we can run all the BI queries that we need and have to hit the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Can you register an ActiveX dll in Java programmatically? I have a third-party ActiveX dll, and I'd like to register it programmatically at run time, if possible. Can this be done in Java? The application I'm working with is an Eclipse application on Windows XP.
A: You could execute regsvr32 via the ProcessBuilder ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Difference between Multiview control and AjaxToolkit Tabs Is there a major difference between the Multiview control in ASP.NET 2.0 and the Tab control in the AjaxToolkit?
Other than the built in visuals of the tab control, is there anything different in the way they handle the hiding/showing of controls?
A: There'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unlocking SVN working copy with unversioned resources I have a repository which contains some unversioned directories and files. The server running svn was recently changed and since the checkout was done using the url svn://OLD-IP, I relocated my svn working copy, this time to the url svn://NEW-DOMAIN-NAME.
Now si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Avoid losing PostBack user input after Auth Session has timed out in ASP.NET I have a form that sits behind ASP.NET forms authentication. So far, the implementation follows a typical "out of the box" type configuration.
One page allows users to post messages. If the user sits on that page for a long time to compos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Toolbar moves up when call finishes While in a call, if the user wants to use my application, and if the call finishes, and the user is still in the application, the toolbar moves up, well all the view moves up, and so the toolbar now has a space in the bottom. Basically the height "Touch to return to call" has. I a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I redirect terminal output from a C program to System.out with JNI? I am invoking a C library via JNI that prints to stdout. How can I redirect this output to System.out?
A: System.out is stdout. Is there some more fundamental problem you're having (mixed up output, perhaps?).
Since another member has also... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290743",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Access Database Replacement Does anyone know of a drop-in replacement for an access database, ideally open source. A group I work with occasionally is looking for a replacement database where they'll need to change as little actual SQL as possible. Their app is VB6/COM.
A: SQL Server Express is the best option. It... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a Restful Blog API I can't seem to find a true restful Blog API - are there any?
I'm writing some blog software and wondered if there was a standard restful API, if not I'll go buy the RESTful Web Services book and design my own.
A: How about AtomPub?
Atom is the name of an XML-based Web
content and me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Flex Builder 3 executing old source codes I'm facing this problem again and again, but can't find any solution (except mine, which is not as a good one I guess).
Don't know why, sometimes Flex Builder executes old source codes after making changes. While debugging I see how it steps through a source (e.g. changing l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Identifying Unused Objects In Microsoft SQL Server 2005 It's a trivial task to find out if an object is referenced by something else or not. What I'd like to do is identify whether or not it's actually being used.
My solution originally involved a combination of a table that held a list of objects in the database a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How to get rid of View State completely in .NET How can I get rid of:
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="..."/>
Completely !
A: At the control level, EnableViewState="false".
At the page level, EnableViewState=false in the Page directive.
At the applicaiton level add this to .config, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Service.Controller Status / Polling I'm having a problem with a administrative app I'm working on. I'm build an interface for stopping, starting and querying various services across 40 or so servers.
I'm looking at service.controller and have been successful in stopping and starting various services with button e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is more important, testability of code, or adherence to OOP principles? My teams evolution of TDD includes what appear to be departures from traditional oop.
*
*Moving away from classes that are self sufficient
We still encapsulate data where appropriate. But in order to mock any helper classes, we usually ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Sabre web-services DepartureWindow format Do you know what's the format of the DepartureWindow parameter for sabre web-services' OTA_AirLowFareSearch call? Whatever I pass, it shows me an error.
This is the entire documentation for those parameters (I kid you not):
<!--"DepartureDateTime" represents the date and tim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.