text stringlengths 8 267k | meta dict |
|---|---|
Q: Insert default values in a column (access db) How can I do for inserting a Default Value into a column of a table in Access?
I use this instruction:
ALTER TABLE Tabella ADD Campo Double DEFAULT 0
ALTER TABLE Tabella ADD Campo Double DEFAULT (0)
ALTER TABLE Tabella ADD Campo DEFAULT 0
ALTER TABLE Tabella ADD Campo DE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/352991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: JQuery $.ajax "async: false" bug? I would appreciate your opinion/advice on the following
Scenario
HTML has PDF file nick name, back end has URL for each nick.
The link URL is always download.php?what=%PDF_Nick% to ensure download for JS disabled clients.
For JS enabled clients I do JQuery AJAX call and rewrite l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/352997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does a truststore need the sub-ca certificate? I'm trying to setup a hierarchical PKI. Can I create a truststore containing only the root ca certificate, and will that mean my application trusts certificates signed by a sub-ca certificate which is in turn signed by the root ca?
As an aside, it seems that you must pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: ApplicationSettings across libraries I'm trying to abstract out all database code into a separate library and then use that library in all my code. All database connections are done using typed TableAdapters that I create by dragging and dropping in datasets in VS2005, using a connection string from the appSettings.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Convert SQL server datetime fields to compare date parts only, with indexed lookups I've been doing a convert(varchar,datefield,112) on each date field that I'm using in 'between' queries in SQL server to ensure that I'm only accounting for dates and not missing any based on the time part of datetime fields.
Now, I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Calling Oracle SP with TableAdapter very slow I have a query that runs super fast when executed in the sql editor (oracle): 1ms.
The same query (as stored procedure) when executed by a DataSet-TableAdapter takes 2 seconds. I'm just retrieving 20rows.
Since I'm using a TableAdapter, the return values are stored in a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SQL - Temp Table: Storing all columns in temp table versus only Primary key I would need to create a temp table for paging purposes. I would be selecting all records into a temp table and then do further processing with it.
I am wondering which of the following is a better approach:
1) Select all the columns of my P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MFC carchive to xml We have a legacy app that uses MFC's CArchive. I am researching saving the data in XML vs. binary. I have looked several libraries such as:
*
*Boost
*http://www.codeproject.com/KB/XML/xmlize.aspx
*http://www.ucancode.net/faq/Visual-C-MFC-XML-Example.htm
*http://www.codeguru.com/cpp/data/dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Tail calling in Java and C#? I was reading about Clojure and found a discussion about Java not supporting tail calls, in the current version, and that people were throwing exceptions to simulate tail calling in the JVM, anyways it sounds like people are doing some crazy stuff out there. So this got me wondering abou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: _endthreadex(0) hangs I have some code which I did not originally create that uses _beginthreadex and _endthreadex. For some reason, when it calls _endthreadex(0), the call just hangs and never returns. Any ideas as to what would normally cause this call to hang?
A: My answer is too far late, but still someone wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I do high quality scaling of a image? I'm writing some code to scale a 32 bit RGBA image in C/C++. I have written a few attempts that have been somewhat successful, but they're slow and most importantly the quality of the sized image is not acceptable.
I compared the same image scaled by OpenGL (i.e. my vide... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: SQL query (order by) I want to list (a sorted list) all my entries from an attribute called streetNames in my table/relation Customers.
eg. I want to achieve the following order:
Street_1A
Street_1B
Street_2A
Street_2B
Street_12A
Street_12B
A simple order by streetNames will do a lexical comparision and then Stre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I get the GridView Control to use post backs for paging inside an update panel? I have a GridView Control that for other functionality has to be inside an update panel. The site is using the Ajax Control Toolkit and the "EnableSortingAndPagingCallbacks" property on the Grid is set to false. However, when I ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TimeOut Exception in WCF I'm running into a problem when modifying a WCF service.
The original service method looks like this:
[OperationContract(IsOneWay = true, IsInitiating = true, IsTerminating = false)]
void Login(string userName, string password);
This method works.
The problem is that when I change it to thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting data from a QTreeWidgetItem inherited class I have a class which inherits from QTreeWidgetItem and I intercept the click event.
I need to get another object from inside MY QTreeWidgetItem when I click the tree row, how can I do that??
A: You create and add the item:
newItem = new QTreeWidgetItem(myExplorer)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Jquery, alter image I know that I can use $('#myId').load('aPage.html'); to load a page into an element, how do I do use that to alter an image?
A: $("selectorforyourimage").attr("src","newimagelocation");
A: Note, that the image will load no sooner, than you load it, so you may want to preload it.
For this, you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JavaFX 1.0 released. What are your thoughts? JavaFX 1.0 was released on Thursday, Dec. 4.
As a developer, what do you think of JavaFX? In your workplace, do you have any plans to move forward with JavaFX-based apps or websites? Do you have near-term plans to learn JavaFX?
A: JavaFX is the only open RIA platform... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: jQuery fadeIn, fadeOut effects in IE The below fadeIn, fadeOut effect works fine in Firefox 3.0 but it doesn't work in IE 7 ... Whay is that and what's the trick? The idea is of course to get a "blink" effect and attract the attention of the user to a specific row in a table.
function highLightErrorsAndWarnings(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: quoted_identifier on? One of our programs is erroring out because a stored procedure was "created with QUOTED_IDENTIFIER option ON". This is a Microsoft SQL Server (8).
All that happened to it yesterday was:
Stored procedures were editted.
A table was created.
I have removed the edits. I have deleted the table. The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Exclude complete namespace from FxCop code analysis? Is it possible to exclude a complete namespace from all FxCop analysis while still analyzing the rest of the assembly using the SuppressMessageAttribute?
In my current case, I have a bunch of classes generated by LINQ to SQL which cause a lot of FxCop issues, and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Classic ASP Error Catching - Can it be done directly using an ASP.Net page? Is it possible to catch ASP errors in ASP.Net (setup custom error pages in IIS) and somehow gain access to the Err oject or something similar like you would using server.GetLastError() in VBScript?
Thanks.
A: not directly as far as i know, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C# - Multiple generic types in one list This is probably not possible, but I have this class:
public class Metadata<DataType> where DataType : struct
{
private DataType mDataType;
}
There's more to it, but let's keep it simple. The generic type (DataType) is limited to value types by the where statement. What... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "183"
} |
Q: Store Variable Name in String in VB.NET I'm trying to store the names of some variables inside strings. For example:
Dim Foo1 as Integer
Dim Foo1Name as String
' -- Do something to set Foo1Name to the name of the other variable --
MessageBox.Show(Foo1Name & " is the variable you are looking for.")
' Outputs:
' Foo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to check if NOT NULL constraint exists I am modifying a SQL table through C# code and I need to drop a NOT NULL constraint if it exists. How do I check to see if it exists first?
A: select is_nullable
from sys.columns
where object_id = OBJECT_ID('tablename')
and name = 'columnname';
A: Well, you cou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I use sqlmetal to generate an internal (not public) data context I'd like to use sqlmetal to generate dbml data contexts for my project, but the data context and all classes created are marked as public. As this is supposed to be an API layer I'd like to instead mark many of these classes or at least the cont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Unable to add reference from COM I am unable to select Microsoft.Office.Interop.Excel from my window/assembly directory. I can see that one is there but it does not give me the option to reference it. How can i select it?
A: Look on the COM tab and search for Microsoft Excel 12.0 / 11.0 Object Library.
Adding this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Making Python default to another version installed on a shared host I am on a shared host and can not change the symbolic link to Python2.4, it defaults to 2.3. I tried creating a sym link in the director I would be working on to 2.4, but it seems the the 'global' python interpreter under /usr/bin/python take presed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to work with very long strings in Python? I'm tackling project euler's problem 220 (looked easy, in comparison to some of the
others - thought I'd try a higher numbered one for a change!)
So far I have:
D = "Fa"
def iterate(D,num):
for i in range (0,num):
D = D.replace("a","A")
D = D.replac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to test whether a service is running from the command line I would like to be able to query whether or not a service is running from a windows batch file. I know I can use:
sc query "ServiceName"
but, this dumps out some text. What I really want is for it to set the errorlevel environment variable so that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "66"
} |
Q: converting virtual path to actual web path in ASP.NET I have a virtual path (example: "~/Images/Banner.jpg") and I want to make that an absolute web path (example: "/ApplicationRoot/Images/Banner.jpg"). There is a method that will do this, I believe in a class called something like HTTPUtility or similar name. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: How do I find the name of the calling function? I have been using PRETTY_FUNCTION to output the current function name, however I have reimplemented some functions and would like to find out which functions are calling them.
In C++ how can I get the function name of the calling routine?
A: Here is a solution you can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: Is there any way to modify query strings without breaking an ASP.Net postback? From reading here and around the net, I'm close to assuming the answer is "no", but...
Let's say I have an ASP.Net page that sometimes has a query string parameter. If the page has the query string parameter, I want to strip it off before... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I replace an Int property with an Enum in Entity Framework? I have an entity class that has a property with an underlying db column of datatype Int, however in reality I want this property to be an Enum. Is there any way to specify that this property returns an Enum?
A: Indirectly, like so.
Personally, I lea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Best way to test command line tools? We have a large collection of command-line utilities that we write ourselves and use frequently. At the moment, testing them is very cumbersome and consequently, we don't do as much testing as we aught to.
I am wondering if anyone can suggest good techniques or tools for doing a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: URL characters replacement in JSP with UrlRewrite I am using UrlRewrite in a JSP project over JBoss. I have configured some rules, so that stuff like:
http://mysite/parameter
Is read as:
http://mysite/index.jsp?parameter=parameter
And so on.
Now, what I would like to know if there's a way to replace certain characte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Warning Symbol Unsigned Java Applet In the recent update of java (6.10) http://java.sun.com/javase/6/webnotes/6u10.htmllink text the way that unsigned applets was changed. A warning is now displayed. Is it possible to turn this off without signing your applet?
A: What would be the point of such a warning if you cou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you do modulo or remainder in Erlang? I'm brand new to Erlang. How do you do modulo (get the remainder of a division)? It's % in most C-like languages, but that designates a comment in Erlang.
Several people answered with rem, which in most cases is fine. But I'm revisiting this because now I need to use nega... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: Facial recognition/merging software Can anyone point me in the right direction of some facial recognition libraries & algorithms ? I've tried searching/googling but i mostly find thesises and very little real software.
A: OpenCV is a great computer vision library.
Here's the OpenCV wiki page on face recognition.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: ApplyWebConfigModifications not working in the Farm So, I am trying to deploy a Web Application feature that updates the web.config using the WebConfigModifications collection. There is lots of information on doing this including all the issues you run into so I am very confident in the code but no matter what I try... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Server 2005 trigger - how to safely determine if fired by UPDATE or DELETE? I have the following code in a SQL Server 2005 trigger:
CREATE TRIGGER [myTrigger] ON [myTable]
FOR UPDATE,DELETE
AS
BEGIN
DECLARE @OperationType VARCHAR(6)
IF EXISTS(SELECT 1 FROM INSERTED)
BEGIN
SET @OperationType='Update'
END
E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ActiveX component can't create object (comReport) I am trying to print a pdf report and it is not printing and giving this error.
Error Type:
ComReport (0x800A01AD)
ActiveX component can't create object
I have registered the ComReport.dll with my OS.
This works fine on our developemtn and production server but is n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I set an Emacs buffer name with a file local variable? I want my emacs buffer to have a different name than the file name. Rather than setting this manually every time, I want to have this happen automatically based on the file contents, something like:
// Local Variables:
// buffer-name: MyName
// End:
But ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Search in a mysqldb with php How to implement a great search within a mysqldb - within a table
if i search with '...LIke %bla%....' not all entrys would be found - if bla within a word for example.
a search with soundex would be great to - but if i read the manual i must create an soundex-index to search for soundex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: System.Net.Mail.MailMessage Fields Dictionary We’re currently in the process of updating the email dispatch part of our application to replace the deprecated set of classes under System.Web.Mail with the System.Net.Mail classes.
The changes have been fairly straightforward but we’ve hit an obstacle today in that w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Are Object oriented databases still in use? Quite a while ago, I heard about Object databases. Cool concept and all. Now, with the event of ORMs everywhere, does anyone still use any of the Object oriented Databases systems? Are they relevant? Are they practical?
A:
In fact, database systems are one of
the areas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How can I detect a ThreadAbortException in a finally block? (.NET) I have some critical logic in a finally block (with an empty try block), because I want to guarantee that the code gets executed even if the thread is aborted. However, I'd also like to detect the ThreadAbortException. I've found that wrapping my cri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Class and Interface hierarchies in Entity Framework? I have two related classes which share a common interface and are both stored in the same underlying database table. However, the Entity Framework generates one common class, where I really need the two distinct classes. How do I resolve this? Is it best to use a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: ADO.NET Data Services 'Astoria' and Caching I just started diving into ADO.NET Data Services for a project, and I quickly ran into a problem. At first I was amazed by the performance, but then I realized that the data was cached. My project relies on real-time data, and I'd love to use the ADO.NET Data Services REST... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Double UIView Navigation Bars I made a UIView using Interface Builder with a top bar that has Cancel and Save buttons. But when the view is displayed in the simulator it has an extra Navigation bar below the one that I've designed on purpose. The extra bar has no buttons on it. Anyone has a clue where I can look to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best way to in situ delete an element I have a set of objects which I iterate through, however I may decide during the iteration that one (or more) of those objects now need to be deleted.
My code goes as follows:
if( ! m_Container.empty() )
{
for( typedefedcontainer::iterator it = m_Container.begin();... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to blend drawn circles with pygame I am trying to create an application like the one here:
http://www.eigenfaces.com/
Basically lots of overlapping circles drawn with pygame. I cannot figure out how the blend the circles to make them translucent. That is to have overlapping colors show through. My code so far is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can I save page pictures directly from GreaseMonkey script Can I save page pictures from GreaseMonkey script directly to my hard drive?
Is the easiest way to do it - to setup my server and translate picture urls to it using GM_xmlhttpRequest ?
A: No, you can't. GreaseMonkey still is within the Browser sandbox and t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353308",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: RegEx to get text within tags I need a Regular Expressions to get the text within 2 tags.
Lets say I want an array returned containing any text within <data> and </data> tags.
Or any text within "(" and ")" tags.
How can I do that with RegEx's in C#?
An advanced question would be:
*
*The input string is "color=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Connect to Oracle from Sybase For complicated reasons (aren't they always) I need to query an Oracle table from a Sybase view. Any thoughts of how I can do this?
example oracle con details:
database: dta@mydomain.com
schema: dta
pwd: 123
A: If you need to get the data live you'll need a gateway.Oracle Databa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ruby 1.8 and UTF-8 string case statement compare I have a Rake task (in lib/tasks directory) that I run with cron on my shared web hosting. The problem is that I want to compare a UTF-8 string using case statment but my source code is not UTF-8 encoded. If I save source code as UTF-8 there is error when I try to sta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is linq2sql behind the scence equal to Entity Framework i know its a new thing , more powerful and a lot more options added to it,
but is linq2sql is part of the new EF ?
if not , what is the main different between the two frameworks?
A: I've written a couple of opinion pieces about LINQ-to-Entities, and its relat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How does ivy:publish work? I'm completely at loss how the ant task ivy:publish is supposed to work.
I would expect that I do my normal build, which creates a bunch of jar files, then I would push those jars to the (local) repository.
How can I specify from where to retrieve the built jars, and how would those end up... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Flex - how do I sort a datagrid column that is using an item renderer in the header? I am using an advanced data grid that is using a custom item renderer for the column heading and now sorting doesn't work. If I take out the custom renderer it works fine but I need it to work with the renderer. Does anyone know how... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Performance of Object.GetType() We have lots of logging calls in our app. Our logger takes a System.Type parameter so it can show which component created the call. Sometimes, when we can be bothered, we do something like:
class Foo
{
private static readonly Type myType = typeof(Foo);
void SomeMethod()
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "61"
} |
Q: Parse multiple xml files, JDOM I am creating a java class that will search a directory for XML files. If the are some present it will use JDOM to parse these and create a simplified output outlined by the XSLT. This will then be output to another directory while retaining the name of the original XML (i.e. input XM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .NET Submit Fires Before Javascript onKeypress I am trying to use onkeypress on an input type="text" control to fire off some javascript if the enter button is pressed. It works on most pages, but I also have some pages with custom .NET controls.
The problem is that the .NET submit fires before the onkeypress. Doe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does DBCC SHRINKFILE work inconsistently in a database job? DBCC SHRINKFILE always works when I run it manually on a log file, even when I get the following message:
'Cannot shrink log file 2 (Claim_Log) because all logical log files are in use.'
When I run it from a job, however, it only shrinks the log about ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: .NET Winforms: Can the runtime dispose a form's handle out from under me? The current declaration of SendMessage over at PInvoke.net is:
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
static extern IntPtr SendMessage(HandleRef hWnd, uint Msg,
IntPtr wParam, IntPtr lParam);
Note: The ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How secure are the app settings on the iPhone? It appears that each app has access to its own config settings, which could be kept after app be shutdown. I am wondering whether one app's config setting could be accessed from other app.
Should I save sensitive data like password to the app config?
Is there some bett... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does the -XX:+HeapDumpOnOutOfMemoryError option work with Oracle Application Server? We are sometimes getting an OutOfMemoryError in production and I would like to be able to analyse what caused the problem, or at least what was going on when it occurred. It seems that I should be able to get an HProf profile by usi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to create value objects from struts form beans? I need to create value objects from struts form beans. Is it a good idea to use Bean Utils or create the VO manually?
Anyone faced any isues with bean utils?
A: value object is not created by developer side but it is automatically created by struts framework softw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get multiple parameters with same name from a URL in PHP I have a PHP application that will on occasion have to handle URLs where more than one parameter in the URL will have the same name. Is there an easy way to retrieve all the values for a given key? PHP $_GET returns only the last value.
To make this co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: Is there a standard way to count lines of code? I realize there's no definitely "right" answer to this question, but when people talk about lines of code, what do they mean? In C++ for example, do you count blank lines? Comments? Lines with just an open or close brace?
I know some people use lines of code as a prod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Beginners WCF Question - Consumable asynchronous services this is a more "can it be done" rather than a "how is it done" question. I'm looking at building a service (middle tier, .net, providing data abstraction and some business logic) that will be used by multiple internal client systems on different platforms. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I use jtracert to analyse an application running on Glassfish? I'd like to generate sequence diagrams of a running java ee application using jtracert. How do I do this?
A: There's a "Quick Start" chapter on the project main page: http://code.google.com/p/jtracert/
In a few words:
1. Install SDEdit (it's ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does the user need special permissions to call a package using LoadFromSqlServer? when calling a SSIS package (C# app) using LoadFromSqlServer, does the user account have to have any special permissions on the database or server?
I can't seem to view the packages in EM at the moment ...
A: You will need to grant so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Have to click twice to expand DropDownList in ASP.NET I have inherited an ASP.NET 2.0 project and one of the things I have noticed is that the user has to click a dropdownlist twice in order to expand it - why is this?
Sequence of Events
*
*The first click with give the control focus and the second will expand it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Link to a type not referenced by my project in XML comments? I've come upon this situation a few times before. I wish to reference a type in my XML comments, but the type is contained in an assembly not referenced by my project.
In A.Dll (references B.DLL):
using B;
///<summary>Hai I'm SomeClass and I use <seeals... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting "The source file is different from when the module was built." I'm trying to debug an ASP.Net web project that I received. I modified a class in the "Apps_LocalResources" folder.
When I debug and the code tries to step into that class, I get
"The source file is different from when the module was built.". ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: List of source members in a file with SQL Is it possible to generate a list of all source members within an iSeries source file using SQL?
Might be similar to getting table definitions from SYSTABLES and SYSCOLUMNS, but I'm unable to find anything so far.
A: Sadly SQL doesn't know anything about members, so all the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: SQL Conditional Where I have a Stored Procedure called spGetOrders which accepts a few parameters: @startdate and @enddate. This queries an "Orders" table. One of the columns in the table is called "ClosedDate". This column will hold NULL if an order hasn't been closed or a date value if it has. I'd like to add... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Easiest way to get a common base class from a collection of types I'm building a custom property grid that displays the properties of items in a collection. What I want to do is show only the properties in the grid that are common amongst each item. I am assuming the best way to do this would be to find the the comm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is it possible to write a script to easily deploy clr stored procedures? I would like to include CLR stored procedure deployment in our deployment script (powershell at the moment), however I can't figure out a nice way to do this automatically.
I would have thought there would be a nice command line option to do th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Set background color for GD Lib imagerotate and imagecopy I'm using PHP 5 GD Lib to do some graphic manipulations, and I can't find a way to get around the black background that shows up when you rotate an image or copy an image to another (larger) image.
Assuming that I am working with a JPEG file, which of course... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Verbatim Literals in Managed C++? (like C#'s @"blah") Is there a way to use verbatim String literals in managed C++? Similar to C#'s
String Docs = @"c:\documents and settings\"
A: in C++11, there is raw string literal:
cout<<R"((\"ddd\aa)\n)"<<endl;
cout<<R"delimiter((\"ddd\aa)\n)delimiter"<<endl;
output is:
(\"d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Monitoring a Custom Service I've created a service for one of my apps. How do i create a system tray component in VB.net that can be used to monitor the progress of the service? Is there a way to have this installed via tcpip on multiple client machines such as those that are for our employees?
A: We do exactly t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problem with LocalConnection connecting to actionscript 1 swf I'm building a shell application that will load other swf's inside of it based on which chapter and which section the user is in. The shell is written in actionscript 3 and it's loading various AS3, AS2 and AS1 swfs inside of it. I'm using LocalConnection... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery validate plugin clearing file input value in IE Im currently using this jQuery validate plugin and having an issue in IE where its removing the value of file input fields whilst validating the rest of the form.
This seems to me like an onfocus issue, I select a file to upload, click on another input field and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Stacking Divs with CSS I know this is particularly difficult with CSS and the current set of browsers, but nonetheless I have the requirement.
I need to be able to have 3 divs in a column. Each div should be able to take up a certain percentage of the vertical space (for example, 33%). The contents of each div could... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are the differences between Shockwave, Flash & Flex? Are they the same thing? If not, what are the differences?
A: Adding a bit: originally, the Shockwave player was a heavy-duty player intended for CD-ROM interfaces and such things, and Flash was a more light-weight player intended for web-based interfaces. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do you insert a query value as a parameter in sharepoint designer? I am trying to create a Data Source in SharePoint Designer that connects to a SharePoint List via XML Web Services. I have created the Data Source and connected to the list in question. I can view all the data using GetListItems, and I want to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Account based lookup in ASP.NET I'm looking at using ASP.NET for a new SaaS service, but for the love of me I can't seem to figure out how to do account lookups based on subdomains like most SaaS applications (e.g. 37Signals) do.
For example, if I offer yourname.mysite.com, then how would I use ASP.NET (MVC specific... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Cleaner way to query on a dynamic number of columns in Django? In my case, I have a number of column names coming from a form. I want to filter to make sure they're all true. Here's how I currently do it:
for op in self.cleaned_data['options']:
cars = cars.filter((op, True))
Now it works but there are are a pos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Extending both sides of a Visitor/Bridge pattern Say I have a hierarchy of classes, let's use the classic Shape examples:
abstract class Shape
Circle : Shape
Square : Shape
I have a second hierarchy of renderer classes that handle the rendering of shapes in different ways:
abstract class ShapeRenderer
HtmlShapeRen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Gettings started with Ruby on Rails 2.0 for Windows So like many people, I'm excited about Ruby on Rails. Being a Windows user, I downloaded InstantRails, got it going, and followed along with the screencast on how to make a blog with RoR 2.0 in fifteen minutes. I used Notepad++ as my text editor, because that's wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I get a JEditorPane to highlight the full width of a line (not just the text)? I'm trying to get a JEditorPane to highlight the full width of a displayed line. All the examples I've tried only highlight the textual content. For example if I have content such as this:
---------------------------------
|Here i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Redundancy, reliability and fault tolerance in C# - where to look for examples? I want to learn how to create truly robust applications in .net - ones that are fault tolerant and are capable of withstanding unexpected situations. Where can I find literature/guidance on this subject? So far, I am not having much luck... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Facebook sharer, pass in a comment? Is it possible to post a description/comment variable to the facebook sharer url? It's only possible for url and title as far as I can figure out.
A: The parameters that you can pass to the actual sharer.php are "u" and "t" which are url and title. You can add meta tags to your ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Reason for using @@identity rather than scope_identity On a SQL Server 2005 database, one of our remote developers just checked in a change to a stored procedure that changed a "select scope_identity" to "select @@identity". Do you know of any reasons why you'd use @@identity over scope_identity?
A: I can't think ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: IIS7, RewritePath and IIS log files I am using Context.RewritePath() in ASP.NET 3.5 application running on IIS7.
I am doing it in application BeginRequest event and everything works file.
Requests for /sports are correctly rewritten to default.aspx?id=1, and so on.
The problem is that in my IIS log I see GET request... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Automate burning of 100+ .ISO DVD images Suppose I have a directory of 100 .ISO files. Do you know how I could automate burning them to DVDs? I'd basically like to send them to a DVD burner with a hopper of DVDs similar to how you can print sheets of paper on a printer.
Any ideas on how to do this on Windows?
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to use same database and same program for two different locales in .NET I have a C# program which uses a SQL Server database.I am already using it in a country that uses . as decimal separator.
Now I want to use it in another country that uses , as decimal separator.
in C# is there some application level settin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Prevent creation of class whose member functions are all static All the member variables and member functions in my class ClassA are static.
If a user is trying (by mistake) to create an object of this class, he receives a warning: "ClassA, local variable never referenced", because all the functions are static, so ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Create pointer to parent object in deserialization process in C# I have a classes like:
[Serializable]
public class child {
public Parent parent;
}
[Serializable]
public class Parent {
public List<child> children;
}
When I deserialize Parent, I want each of each children to have a reference to it's parent. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to create a C# Winforms Control that hovers How can you create a C# Winforms control which goes out of the bounds of its region? Such as a drop down box. Kind of like if you had a DropDownBox in a Small Sized Panel.
A: Windows Forms doesn't support windows like that well, it is pretty fundamentally incompatibl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.