text stringlengths 8 267k | meta dict |
|---|---|
Q: Is there a site to manage API keys? I remember there was a third party site that did all the sign up, quotas and key generation for API keys. I can not remember the name, so wondering if anyone knows about it?
A: I haven't used them and know very little about them but Mashery came across my radar the other day when... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Serialize ASP.NET Control collection I've been tasked with converting an existing ASP.NET site from using InProc session management to using the ASP.NET State Server.
Of course what this means is that anything stored in the Session must be serializable.
One of the most complicated pages in the app is currently stori... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I handle non-ASCII characters when retrieving data from SQL Server using Perl? I have a Perl script running on UNIX that uses DBI to connect to and retrieve data from a SQL Server database. The script looks like the following:
$dbh = DBI->connect("dbi:Sybase:server=$connect;charset=UTF-8", $login, $password)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Are quotes around hash keys a good practice in Perl? Is it a good idea to quote keys when using a hash in Perl?
I am working on an extremely large legacy Perl code base and trying to adopt a lot of the best practices suggested by Damian Conway in Perl Best Practices. I know that best practices are always a touchy s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: How to open a multi-frame TIFF imageformat image in .NET 2.0? Image.FromFile(@"path\filename.tif")
or
Image.FromStream(memoryStream)
both produce image objects with only one frame even though the source is a multi-frame TIFF file. How do you load an image file that retains these frames? The tiffs are saved using t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Why does the time matter in web services? In WCF web services (or all web services?), if the client and server times are off you get a security exception.
Can someone explain to me why this is?
It is a pain if you are building client server services and the time has to be accurate?
see: http://msdn.microsoft.com/e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to profile? I've developed a little screenshot application but I've heard that I should profile my code to see where it's using a lot of resources and stuff.
What is a profiler? what does it do? Where can i get it for free? and How do I use it?
A: A profiler is a software tool which intercepts and measures eve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ways to validate subscription service in freemium product is valid We have a freemium product, which menas that some functionality is available if the monthly subscription has been paid; if not paid, then the free capabilities remain available.
Here is how I am thinking of processing it, but wanted to check:
1) When... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Understanding what goes on with textarea selection with JavaScript I am working on an in-browser editor within a textarea. I have started looking for some information on dealing with textarea selection and found this jQuery plugin, fieldSelection that does some simple manipulation.
However, it doesn't explain wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How can I get the length of a JTextField's contents as the user types? JTextField has a keyTyped event but it seems that at the time it fires the contents of the cell have not yet changed.
Because of that .length() is always wrong if read here.
There must be a simple way of getting the length as it appears to the us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I Change the FontFamily on a ContentPresenter? I have a custom template for an expander that is close to the code below. I had to change some of the code to take out custom classes, brushes, etc..
<Style TargetType="{x:Type Expander}">
<Setter Property="HorizontalContentAlignment"
Value="Stretch" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: Can't get CSS Sprite to work..what am I doing wrong? I am using CSS Sprite Generator to create sprites for a web page I am working on, but it doesn't seem to work, and I don't know why...I guess it's something obvious but..!
So, I picked up 3 images, zipped, generated the PNG file (I checked out the result it is see... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Bouncing Card Algorithm What's a good algorithm for "bouncing cards" like the ones you see in solitaire games?
What's the coolest card animation you've seen?
Edit - Any besides the Windows game?
A: The x-axis velocity is constant. The y-velocity is incremented by some value every frame. Each frame, the current x ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Which is faster? Multiple DELETE statements or a single DELETE Statement using "IN ('x', ''y')" Just wondering which is faster:
DELETE FROM table_name WHERE X='1'
DELETE FROM table_name WHERE X='2'
DELETE FROM table_name WHERE X='3'
or
DELETE FROM table_name WHERE X IN ('1', '2', '3')
Any ideas, hints, or referenc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Best way to for C++ types to self register in a list? Suppose I have some per-class data: (AandB.h)
class A
{
public:
static Persister* getPersister();
}
class B
{
public:
static Persister* getPersister();
}
... and lots and lots more classes. And I want to do something like:
persistenceSystem::registerPersi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Good rules for setting up print css? I'm looking for any suggestion/rules/guides on making a decent print css for when a webpage is printed. Do you have any to offer?
A: You have this old but still relevant article from Eric Meyer on a List apart.
The main point is to start afresh, explicitly setting borders and m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Capturing mouse-clicks in the DOM with JQuery? Background
I'm using POST form submissions instead of links with concatenated arguments inside a Web application, so I can exercise control over input.
Unfortunately this means users can't use the quick shortcuts they know to open links in new windows, like control-clic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Good beginners material on Prolog I am looking for good beginners material on Prolog, both online and printed. I am not only interested in 'learning the language' but also in background and scientific information.
A: Writing an Adventure Game in Prolog could also be a good way to learn.
A: If you want a very acces... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "70"
} |
Q: How to use Office from Visual Studio C#? The technique for adding a reference to the COM interop of Office in Visual Studio is to go to:
*
*References
*Add Reference
*Select the COM tab
*Select Microsoft Office 11.0 Object Library
And magically named reference appears:
Microsoft.Office.Core
The Project.csproj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401637",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Secure hash and salt for PHP passwords It is currently said that MD5 is partially unsafe. Taking this into consideration, I'd like to know which mechanism to use for password protection.
This question, Is “double hashing” a password less secure than just hashing it once?
suggests that hashing multiple times may be ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1242"
} |
Q: uncheckable items in CheckedListBox? In .NET framework, is it possible to set some of the items in the CheckedListBox as "uncheckable" ? I don't want to allow user to check the same items again and add them to a another existing list.
I hope I am clear.
Thanks in advance.
A: I would set those items as "Indetermin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can ReportViewer render a hyperlink with a relative path? I have created a local report on a datasource that has a field named "RelativePath". When my WinForms app renders the report, it exports files to the location specified in the RelativePath field. In the report builder, I set Navigation|Hyperlink action|Jump t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Visual Studio Unit Testing of Windows Forms We're working on a project here in Visual Studio 2008. We're using the built-in testing suite provided with it (the Microsoft.VisualStudio.TestTools.UnitTesting namespace). It turns out, that much to our chagrin, a great deal of complexity (and therefore errors) have wou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How can I get CSS comments with jQuery? I am wondering how I can read CSS comments out of a linked stylesheet.
I have this sample CSS loaded via:
<link rel="stylesheet" type="text/css" media="all" href="test.css" />
#test1{ border:1px solid #000; }
#test2{ border:1px solid #000; }
#test3{/* sample comment text I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do IN () statements work in NHibernate? (Using Criteria) I'm trying to create the equivalent of the below using NHibernate. I've done all the mappings using fluent and I can do the basic queries just fine but I have no idea how to do this.
-**Product Table**
Reference
Title
Subjects (Many to Many relationship)
P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I get the correct text definition of a generic type using reflection? I am working on code generation and ran into a snag with generics. Here is a "simplified" version of what is causing me issues.
Dictionary<string, DateTime> dictionary = new Dictionary<string, DateTime>();
string text = dictionary.GetType(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Change an image to text via CSS for printing? Lets say I have a header banner on a webpage I'm about to print. Instead of wasting someone's ink printing the entire block of the image, is there a way via css to replace the image with text of H1 size?
A: You could put an h1 element and an image in the same place in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to draw subsection of text using .net graphics I'm doing custom drawing in datagridview cells and I have items that can vertically span across multiple cells. An item displays text and the issue at hand is how can I draw just the cell's part of the text? I have the item's rectangle and the cellBounds.
Currently... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: "Brokered definition set" design pattern -- well-known under another name? In a project that I've been involved with for many years, I've gradually evolved a design pattern that's proven to be extremely useful for me. I sometimes feel I should get a bit evangelical with it, but I'd be a bit embarrassed if I tried a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Regex that only matches text that's not part of HTML markup? (python) How can I make a pattern match so long as it's not inside of an HTML tag?
Here's my attempt below. Anyone have a better/different approach?
import re
inputstr = 'mary had a <b class="foo"> little loomb</b>'
rx = re.compile('[aob]')
repl = 'x'
o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there anyway to speed up SQL Server Management Objects traversal of a existing database? I'm currently using SMO and C# to traverse databases to create a tree of settings representing various aspects of the two databases, then comparing these trees to see where and how they are different.
The problem is, for 2 re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: In Specman, how can I tell if a reference to a unit has the do-not-generate modifier in front of it? In Specman, how can I tell if a reference to a unit has the do-not-generate modifier, '!', at the reference's definition?
e.g.
unit foo_u {
};
extend sys {
foo : foo_u is instance;
foo_ptr_generated : foo_u;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Generating PDF with Quick Reports behind a Delphi Web Server I have a Delphi web server providing some web services*. One of them is supposed to generate and return a PDF report.
The PDF creation is done with a QReport that is then exported into a PDF file with the ExportToFilter procedure.
The routine works fine wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401743",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: URL Rewrite on IIS7 for Wordpress I am using shared hosting with IIS7 and support for PHP. I am trying to run a wordpress blog with "pretty urls" (removing index.php). The hosting provider doesn't want to install the URLRewrite module, so that option isn't available to me. I found a plugin for wordpress that will re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Did isset work differently in older versions I got some legacy code that has this:
<?PHP
if(isset($_GET['pagina'])=="homepage") {
?>
HtmlCode1
<?php
} else {
?>
HtmlCode2
<?php
}
?>
I don't know exactly why but this seems to be working. The htmlcode1 is loaded when I have ?pagina=homepage and the htmlcode2 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Corrupt file when using Java to download file This problem seems to happen inconsistently. We are using a java applet to download a file from our site, which we store temporarily on the client's machine.
Here is the code that we are using to save the file:
URL targetUrl = new URL(urlForFile);
InputStream content =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Whats the best way to resolve name conflicts in javascript? I recently wrote some javascript code that filled a drop down list based on some XML, pretty simple stuff. The problem was I had to write similar code to do almost the same thing on a different page.
Because the code was almost identical I named most of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Field having multiple distinct values Am building a "Book search" API using Lucene.
I need to index Book Name,Author, and Book category fields in Lucene index.
A single book can fall under multiple distinct book categories...for example:
BookName1 --fiction,humour,philosophy.
BookName1 --fiction,science.
BookName1 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Parsing JSON using Json.net I'm trying to parse some JSON using the JSon.Net library. The documentation seems a little sparse and I'm confused as to how to accomplish what I need. Here is the format for the JSON I need to parse through.
{
"displayFieldName" : "OBJECT_NAME",
"fieldAliases" : {
"OBJ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "110"
} |
Q: How can I find non-ASCII characters in MySQL? I'm working with a MySQL database that has some data imported from Excel. The data contains non-ASCII characters (em dashes, etc.) as well as hidden carriage returns or line feeds. Is there a way to find these records using MySQL?
A: You can define ASCII as all characte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "145"
} |
Q: Web Parts with a markup file? I'm an ASP.NET web part novice. I've built a few simple ones using only a class that derived from WebPart and overriding the CreateChildControls method, but nothing really very substantial. My question is whether it's possible to have a web part that also takes advantage of a separate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to parse a binary file with floats (Java generated) using Cocoa Touch? Given the following Java code for generating a binary file:
DataOutputStream out = new DataOutputStream(new FileOutputStream("foo.dat"));
out.writeInt(1234);
out.writeShort(30000);
out.writeFloat(256.384f);
I'm using the following Objective-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Scaling the y-axis with Matplotlib in Python How to scale the y-axis with Matplotlib? I don't want to change the y-limit, I just want to extend the physical space.
^ ^
| |
| |
+----> |
Before +---->
After
A: Just use a larger height value when you instantiate the figure:
from pylab import *
x... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: C# Active Directory, Create an Organizational Unit for each OU in an LDAP path? I'm trying to create an Organizational Unit for each OU in an LDAP path if the OU doesn't exist, the program doesn't know the OU names or how deep the OUs go, there could be 1 OU in the path or 10 deep.
Example:
strPath = "OU=Test1,OU=Te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sharepoint Search Service Crashed after patch KB956716 Our networks guys installed this patch over the weekend to our single server sharepoint front end: KB956716
http://www.microsoft.com/downloads/details.aspx?familyid=a7fda284-273c-42ab-8188-433beaacca86&displaylang=en
http://support.microsoft.com/kb/956716
After ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the proper way to cast from an 'OLE_HANDLE' to an 'HICON'? What is the proper way to cast from an 'OLE_HANDLE' to an 'HICON' for an x64 target build?
In particular with a normal C-Style cast, I get this warning when compiling with an x64 config:
warning C4312: 'type cast' : conversion from 'OLE_HANDLE' to 'H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I make a Click-once deployed app run at startup? How can I make a Click-once deployed app run a startup?
The best option I found by searching was to set the Publisher on the app to Startup, so the Start menu shortcut would be placed in the Startup folder, but that seems like a huge hack and I would like ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: ASP.net Ajax: Use Code behind function instead web service Is it possible not to use web service for ASP.net ajax instead call code-behind function to fetch data?
any example or link is much appericate.
A: According to the ASP.NET AJAX documentation (at least for the AutoComplete TextBox control), if you do not pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to elegantly compute the anagram signature of a word in ruby? Arising out of this question, I'm looking for an elegant (ruby) way to compute the word signature suggested in this answer.
The idea suggested is to sort the letters in the word, and also run length encode repeated letters. So, for example "mississipp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Circle-Rectangle collision detection (intersection) How can I tell whether a circle and a rectangle intersect in 2D Euclidean space? (i.e. classic 2D geometry)
A: This is the fastest solution:
public static boolean intersect(Rectangle r, Circle c)
{
float cx = Math.abs(c.x - r.x - r.halfWidth);
float xDist ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "233"
} |
Q: Naming convention for Qt widgets I'm working with a group of other programmers on an open source project built using C++ and Qt.
Now, we need a naming convention for widgets (and other variables generally) to use it as a standard in all of our code so that, the code gets better readability and we get better coordina... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Any delphi component for digital signing documents? I'm looking for a good standard based component for digitally sign documents with x509 certificates. I can't see no one native component for this. Only Activex components.
A: You can use OpenSSL for that.
take a look here: delphiopenssl
A: The problem with doing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is copy-and-paste coding ever acceptable? It's generally accepted that copy and paste programming is a bad idea, but what is the best way to handle a situation where you have two functions or blocks of code that really do need to be different in just a few ways make generalizing them extremely messy?
What if the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Web Service not caring about Timeout property I'm using an automatically created (with wsdl.exe and the GUI-based "Add web reference" command) web service for LyricWiki.org. However, since my internet connection is sucking lately, it's been taking ages to complete and is annoying me.
I'm trying to make it timeout in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I manually increment/decrement index in a Labview for/while loop Here is my basic use case:
After Labview receives a trigger from external hardware start collecting analog data. It monitors this data and triggers another piece of hardware if the analog data reaches a threshold. This threshold can have differe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Merge and override .NET configuration files with C# I wrote this piece of code to merge two .NET configuration files: Add non existent nodes and override values on existing ones.
I avoided to use the much faster reader/writer way because the app I'm using it for is not performance critical. What do you think of thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: mysql configuration error on windows vista I am trying to install and configure MySQL 5.0.41 on Windows Vista Home Premium and am getting the following error message:
Could not connect to the Service Control Manager. Error: 0
I am running the installer via an Administrator account, so I'm not sure why it would not h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is COM+ still recommended? I used to write ASP.Net apps deploying business dataaccess layers in COM+ components several years ago. This was the standard in several corporate infrastructure here in my country. Is this still recommended? What is the alternative?
A: COM+ is really just MTS (Microsoft Transaction Serve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to capture only part of an id? I'm trying to capture the id of an element that will be randomly generated. I can successfully capture the value of my element id like this...
| storeAttribute | //div[1]@id | variableName |
Now my variable will be something like...
divElement-12345
I want to remove 'divElement-'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP: __toString() and json_encode() not playing well together I've run into an odd problem and I'm not sure how to fix it. I have several classes that are all PHP implementations of JSON objects. Here' an illustration of the issue
class A
{
protected $a;
public function __construct()
{
$this->... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Trace and Debug statements Im a little confused over how to use the .NET Trace and Debug classes.
Why would you bother using Trace instead of Debug?
Trace.TraceError()
Trace.TraceInformation()
Trace.Assert()
Debug.WriteLine()
Debug.Assert()
Also, I understand that Debug statements are ignored when your in Release ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Best Default and User Selected Fonts for a Unicode Application What is the best default font to use for a Unicode Application in which the user can select the font he wants to use?
The problem I notice is that not all Windows machines have every Unicode font. And every Unicode font does not include all the Unicode c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Finding System Fonts with Delphi What is the best way to find all the system fonts a user has available so they can be displayed in a dropdown selection box?
I would also like to distinguish between Unicode and non-Unicode fonts.
I am using Delphi 2009 which is fully Unicode enabled, and would like a Delphi solutio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is hard-coding literals ever acceptable? The code base I'm currently working on is littered with hard-coded values.
I view all hard coded values as a code smell and I try to eliminate them where possible...however there are some cases that I am unsure about.
Here are two examples that I can think of that make me won... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Format SQL in SQL Server Management Studio In Visual Studio & other IDEs, you can easily auto format your code with a keyboard shortcut, through the menu, or automatically as you type.
I was wondering if there is yet a way to enable this standard feature in SQL Server Management Studio?
I'm working with some large-i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "339"
} |
Q: Filtering Null values in Select I have IQueryable list of objects of type T which I want to transform into objects of type K
List<K> tranformedList = originalList.Select(x => transform(x)).ToList();
the transform function returns null if it cannot tranform the objects.If I want to filter out null elements can I cal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "73"
} |
Q: Worst SQL Ever? What is the worst SQL query you've ever seen? What made it bad?
A: A customer was storing a comma delimited list of 3 values in a varchar field (classic ASP application) so they had a stored procedure that looked something like this:
SELECT *
FROM
SomeTable
WHERE
Field LIKE @Param + ',%'
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Where can I find the following classes in Java I am a .NET dev learning Java. As a result, I understand all the fundamentals of programming like loops, variables, functions, etc. My biggest bottleneck is that I don't know my way around Java's packages like I do with .NET's.
This is the reason for this thread - where... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WAP Push atop FLASH SMS I want to send a WAP Push SI, but I want the message to look like an alert - like FLASH SMS. I've tried to make the SMS carrying the WAP data a FLASH SMS, but the it seems the phone can't handle it. I tried it on a Nokia 6230i.
Is there something wrong with what I'm doing, or phones in genera... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: OS X: creating or extracting preview(.jpg,.png) of .eps file I'm using a mac and looking to batch convert a large amount of eps files and create jpg previews of each. I'm looking for preferably a command-line utility, or some type of workflow to easily batch a large number of files.
Thanks for any ideas or input
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: When to use query parameters versus matrix parameters? Query parameters: http://example.com/apples?order=random&color=blue
Matrix parameters: http://example.com/apples;order=random;color=blue
*
*When should one use query parameters versus matrix parameters?
*Why can matrix parameters be used in the middle of a U... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "93"
} |
Q: PHP Login system using Cookies and Salted Hashes I am developing a PHP-based login system.
Each user has an ID(a number) and a password, which is stored as a salted hash.
I am able to figure out if a login is sucessful or not, but now I need to store that information somewhere(so that the user is not permanently log... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How can I vertically center text in two side by side divs? Thanks for reading this.
I have markup similar to what is below. Using the line-height works when there is only one line of text, but the comments data will frequently be multi-line. What is the best way to get the label and the data vertically centered?
<ht... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can my uninstall process properly deal with restoring registry entries? Sometimes it's necessary to modify Windows registry settings during an application install. I've recently been frustrated by applications that don't restore these settings when they are uninstalled. As I thought more about this, it occurs ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/402017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is a suitable replacement for the SQL Like operator to increase performance? I'm working on an application that runs on Windows Mobile 6 that needs to be able to retrieve all items from an item table that contain a given string (provided by the end user) within the item's description field. The problem is that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/402022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is MacBook Air suitable for occasional Dev Work? (Ruby, Objective C, Cocoa) Will a MacBook Air have enough horsepower for occasional development in Ruby? Objective C? Cocoa?
Are there any other major limitations with doing this?
Notes:
*
*I hook it up to a large Monitor.
*I would be hoping to use standard
mainst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/402026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: OpenGl ES scrollable ListBox clipping problem I am trying to create a generic list box in OpenGl ES (for the iPhone/iTouch) and I am running into a bit of a conundrum with clipping the ListBoxItems. Each ListBoxItem object will know how to draw itself. The ListBox I am making will just draw each one after another. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/402031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: SubText and IIS 7's Integrated Pipeline Mode Out of the box, SubText is unable to run under IIS7's Integrated Pipeline Mode. Unfortunately, it goes beyond "migrating" the web.config to match the required format. For example, moving httpModules and httpHandlers to their new location within . As it turns out, Request ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/402034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Should I do more JavaSE before jumping to JavaEE? I'm almost finished with the book "Head First Java". The reason I'm studying this is I'm hoping to get a job developing with JavaEE someday. Now I'm thinking, should I go ahead and study EE (moving on to Head First Servlets and JSP) or should I spend more time with S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/402056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Lines get trimmed when Printer.Print to a "Generic Text Only" printer I am maintenance a old vb6 application that print ZPL-II.
I just find out that it has a bug if I print long lines to the printer by "Printer.Print", the lines will be trimmed to first 89 bytes/line only.
It works perfect and keep lines as it is wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/402062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Internet Explorer http referer issue it seems I have run into a problem with Internet Explorer 7.
I have an html page that has links to files on another server. The server I am linking to checks the referrer of the request and if the referrer is valid, it allows access to the resource. It works fine in firefox 2 an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/402065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is this join hint dangerous? A coworker asked me to look at indexing on some tables because his query was running very long. Over an hour.
select count(1)
from databaseA.dbo.table1
inner join databaseA.dbo.table2 on (table1.key = table2.key)
inner join databaseB.dbo.table3 on (table1.key = table3.key)
Note the dif... | {
"language": "en",
"url": "https://stackoverflow.com/questions/402077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can you iterate in LaTeX? I'm new to LaTeX and I must say that I am really struggling with it. I discovered the \newcommand command that is kind of like a function/method in regular programming languages. You can give it arguments and everything.
I was wondering though, can I somehow iterate in LaTeX? Basically, wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/402086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Where can I start about designing a website I want to design a website but I don't know from where to start.
Is there a beginners' guide to start with?
A: How much dedication do you hope to provide? If you merely want to design a single website, quickly and dirty, there's a plethora of open source web templates av... | {
"language": "en",
"url": "https://stackoverflow.com/questions/402089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Easiest/Best Hide/Show Client Side Hide/Show for ASP.NET I have a DropDownList and a TextBox on a Page. When the user chooses the "other" option in the DropDownList I want to display a TextBox just to the right of it. I do not want to use the traditional PostBack technique. I want this interaction to be client side.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/402094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SQL Insert with large dataset When running a query like "insert into table " how do we handle the commit size? I.e. are all records from anotherTable inserted in a single transaction OR is there a way to set a commit size?
Thanks very much ~Sri
PS: I am a first timer here, and this site looks very good!
A: In go... | {
"language": "en",
"url": "https://stackoverflow.com/questions/402119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Access Excel workbook from javascript Is there a way to access an Excel worksheet using javascript?
A: you can convert excel to csv or json by using php and the show it in datatable using YUI Datatable or ExtJS data grid.
A: I wanted to do something similar (display Excel data in a web page without requiring a we... | {
"language": "en",
"url": "https://stackoverflow.com/questions/402123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Roll back or revert entire svn repository to an older revision I messed up on my SVN repository and now need to revert the entire repository from revision 28 to 24 and don't want to deal with diffs or conflicts. Is there a quick and simple way to do this? I've been able to revert back single files before fine with t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/402159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "76"
} |
Q: Working with large wsdl, can we trim it? My webservice provider give me a large WSDL file, but we are going to use only a few function inside.
I believe that the large WSDL have negative impact to the application performance.
We use the webservice in client appliction, startup time and memory usage are issues.
Large... | {
"language": "en",
"url": "https://stackoverflow.com/questions/402160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Inversion of control container What is the most important features a IOC container should contain? You can easily create containers in 15 lines of code, but what should it include to be "useful" in a project?
A: In descending order of importance:
*
*Allow at least setter and constructor injection,
*Separate con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/402171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Add image to targets folder by code i want to add a image to the iphone application Targets-Copy Bundle Resource folder by using code,can make it?any suggestion
A: Do you want to add images to your built application, so they're available at runtime? In this case, just drag them to your Project tree and make sure yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/402176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Array upgrading If I understand Section 15.1.2.1 of the Common Lisp standard correctly, it is perfectly legal for (upgraded-array-element-type '(unsigned-byte 8)) to be '(unsigned-byte 16), or even t. My question is therefore about the actual behavior of implementations.
Are there any implementations in use today w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/402186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: asynchronous select db2 Does db2 support asynchronous SQL operations? I.e. if I execute a select stmt on a table which has 20M rows and I expect back 5M rows. When I run this query via JDBC, I want the control to be returned immediately while the db is executing the query and populating the ResultSet asynchronously ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/402187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Layering images in CSS - possible to put 2 images in same element? Supposing I'm setting a background image for a web page in CSS like this:
body {
font-size: 62.5%; /* Resets 1em to 10px */
font-family: Verdana, Arial, Sans-Serif;
background-color: #9D5922;
color: #000;
margin-left: auto;
margin-right: auto;
mar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/402200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How to use XPath function in a XPathExpression instance programatically? My current program need to use programatically create a XPathExpression instance to apply to XmlDocument. The xpath needs to use some XPath functions like "ends-with". However, I cannot find a way to use "ends-with" in XPath. I
It throw excepti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/402211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: PHP Readonly Properties? In using PHP's DOM classes (DOMNode, DOMEElement, etc) I have noticed that they possess truly readonly properties. For example, I can read the $nodeName property of a DOMNode, but I cannot write to it (if I do PHP throws a fatal error).
How can I create readonly properties of my own in PHP?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/402215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: How to store a dictionary on a Django Model? I need to store some data in a Django model. These data are not equal to all instances of the model.
At first I thought about subclassing the model, but I’m trying to keep the application flexible. If I use subclasses, I’ll need to create a whole class each time I need a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/402217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "71"
} |
Q: Anyone found a way to download google chat logs? I'd like to be able to get all my Google chat logs so that I can use them for training a chat bot type of thing.
I am aware of the limitations that have been imposed by Google so that chats cannot be simply downloaded through IMAP. I'm looking for workarounds.
A: As... | {
"language": "en",
"url": "https://stackoverflow.com/questions/402219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: declare a string type variable as a global variable in one aspx file,which is better to Initialize with null or string.empty which is best for a string type global variable in one aspx page?
A: I personally use String.Empty, but the choice was a flip of a coin for me.
I find that using String.IsNullOrEmpty() to tes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/402231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Anyone using short and byte primitive types, in real apps? I have been programming in Java since 2004, mostly enterprise and web applications. But I have never used short or byte, other than a toy program just to know how these types work. Even in a for loop of 100 times, we usually go with int. And I don't remember... | {
"language": "en",
"url": "https://stackoverflow.com/questions/402247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.