text stringlengths 8 267k | meta dict |
|---|---|
Q: Can anyone recommend a good reference for setting up Hibernate3 with Eclipse? I've looked at some of the Eclipse and Hibernate tutorials and the ones for Hibernate2 are pretty good, pretty intuitive. Recently I tried to setup Hibernate3, using the Eclipse plugin, and failed to get the Hibernate tools to work, outsi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Visual Studio 2008: is there any way to turn on the Class Name/Method Name drop downs in C#? (like VB.Net has) I'm working in .Net 3.5sp1 in C# for an ASP.Net solution and I'm wondering if there's any way to turn on the Class Name and Method Name drop-downs in the text editor that VB.Net has at the top. It's one of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: RAII vs. exceptions The more we use RAII in C++, the more we find ourselves with destructors that do non-trivial deallocation. Now, deallocation (finalization, however you want to call it) can fail, in which case exceptions are really the only way to let anybody upstairs know of our deallocation problem. But then ag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: .net framework version req'd for MS Sync Framework Can anyone tell me what version of the .NET framework (CLR and BCL) is req'd for the recently-released MS Sync Framework (for support of occasionally-connected-applications)?
Its listed as Sync Framework V1 for ADO.NET v2.0 but none of its listed req'ments say anyth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pitch identification in Linux Is there any free software tool or combination that allows me to identify the pitch of a recorded singing session?
The idea is to display some kind of graph with the current pitch in a time line along with markers for the standard notes (C3, C#3, D, etc). I don't need pitch correction a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I perform an action after an UpdatePanel updates? When I have a regular textbox in a UpdatePanel (not an ASP.NET control) with some JavaScript events on it, after the UpdatePanel updates my events are gone. Is there a way to re-attach my events after the update? (Preferably without putting my events inline).
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the ideal data type to use when storing latitude / longitude in a MySQL database? Bearing in mind that I'll be performing calculations on lat / long pairs, what datatype is best suited for use with a MySQL database?
A: We store latitude/longitude X 1,000,000 in our oracle database as NUMBERS to avoid round ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "488"
} |
Q: Cross Browser Flash Detection in Javascript Does anyone have an example of script that can work reliably well across IE/Firefox to detect if the browser is capable of displaying embedded flash content. I say reliably because I know its not possible 100% of the time.
A: SWFObject is very reliable. I have used it w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "97"
} |
Q: Seeking a way to have a "Hover button" to expand a section i have a flow panel that i'm adding extra items to it at runtime based on whether they have chosen to show all the items. that's all works fine; the expansion is controlled by a toolbar button.
the trouble is we'd like the user to be able to move his mouse ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: In Flash, how would I run an e4x statement when that statement is stored in a String? So I have something like this:
var xmlStatement:String = "xmlObject.node[3].@thisValue";
What mystery function do I have to use so that I can execute xmlStatement and get thisValue from that xmlObject? Like....
var attribute:Strin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Do OCUnit and OCMock work on the iPhone SDK? I simply could not make it work, and I am wondering if I am wasting my time, or if I am simply stupid!
Sorry I don't have the exact error I have right now. But I just want to know if it work or not!
A: Colin Barrett has a blog post about OCMock and the iPhone.
A: Not so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Java RMI: Client security policy grant {
permission java.security.AllPermission;
};
This works.
grant file:///- {
permission java.security.AllPermission;
};
This does not work. Could someone please explain to me why?
A: The syntax should be:
grant codeBase "file:///-" {
...
};
See the docs. Note the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I create a custom directive for Apache Velocity I am using Apache's Velocity templating engine, and I would like to create a custom Directive. That is, I want to be able to write "#doMyThing()" and have it invoke some java code I wrote in order to generate the text.
I know that I can register a custom directi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How can I prevent a base constructor from being called by an inheritor in C#? I've got a (poorly written) base class that I want to wrap in a proxy object. The base class resembles the following:
public class BaseClass : SomeOtherBase
{
public BaseClass() {}
public BaseClass(int someValue) {}
//...more c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: How do you compile static pthread-win32 lib for x64? It looks like some work has been done to make pthread-win32 work with x64, but there are no build instructions. I have tried simly building with the Visual Studio x64 Cross Tools Command Prompt, but when I try to link to the lib from an x64 application, it can't s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Runtime callable wrapper (RCW) scope - process or application domain? What is the scope of Runtime Callable Wrapper (RCW), when referencing unmanaged COM objects? According to the docs:
The runtime creates exactly one RCW
for each COM object, regardless of the
number of references that exist on
that object.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: When should you override OnEvent as opposed to subscribing to the event when inheritting When should one do the following?
class Foo : Control
{
protected override void OnClick(EventArgs e)
{
// new code here
}
}
As opposed to this?
class Foo : Control
{
public Foo()
{
this.Click... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: What's wrong with my SOAP call to OnTime from my SVN post-commit hook? My Subversion repository is on a Linux server and my OnTime 2007 system is on a Windows 2003 server. I have a post-commit hook script that launches two Perl scripts. One sends an email—works great. The other is supposed to write the details from... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C++ compile-time expression as an array size I'm not sure if the term's actually "Array Addition".
I'm trying to understand what does the following line do:
int var[2 + 1] = {2, 1};
How is that different from int var[3]?
I've been using Java for several years, so I'd appreciate if explained using Java-friendly wor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to troubleshoot "DataMember Not Found" in ActiveReports ActiveReports seems like a powerful flexible tool, but if you make a mistake anywhere, you get an exception "data member not found. please check your datasource and datamember properties".
There is no indication as to which datasource/datamember is at faul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why can't we declare var a = new List at class level? I know we cannot do this at class level but at method level we can always do this.
var myList=new List<string> // or something else like this
This question came to my mind since wherever we declare variable like this. We always provide the type information at t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Are standard .Net 2 dlls compatible with the silverlight 2.0 runtime? If I avoid referencing assemblies that don't exist in the silverlight 2.0 runtime, will the.Net 2.0 library dlls I create with VS2008 work with silverlight without recompilation or other alteration?
A: No, you will still need to recompile against... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Attribute not included in the generated proxy class Using .Net 3.0 and VS2005.
The objects in question are consumed from a WCF service then serialized back into XML for a legacy API. So rather than serializing the TestObject, it was serializing .TestObject which was missing the [XmlRoot] attribute; however, all the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ReportViewer Control and Ajax UpdatePanel Did anyone of you ever find a way of getting the Microsoft Report Viewer Control (Web) to work from within an Ajax UpdatePanel?
A: The only way really is to create an iframe with the report in there iirc. However, this post here a guy claims he has a way to fix it with some... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I parse Apache's error log in PHP? I want to create a script that parses or makes sense of apache's error log to see what the most recent error was. I was wondering if anyone out there has something that does this or has any ideas where to start?
A: there are piles of php scripts that do this, just do a goo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Are there any user interface prototyping tools for Eclipse? I am looking into designing new features for Eclipse-based programming tools, from the requirements/ideas perspective. To really do this quickly, I would like to sketch UI elements without having to code things -- my concern is with the concepts and ideas r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Awk scripting help - Logic Issue I'm currently writing a simple .sh script to parse an Exim log file for strings matching " o' ". Currently, when viewing output.txt, all that is there is a 0 printed on every line(606 lines). I'm guessing my logic is wrong, as awk does not throw any errors.
Here is my code(updated fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ReceivePayment Pending for Quickbooks XML and Merchant Services In the Quickbooks SDK Manual, there is a section called "Using ReceivePayment for Credit Card Authorization and Capture". It reads...
Using ReceivePayment for Credit Card Authorization and Capture
If the company is subscribed to QBMS, you can record a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the simplest way to convert char[] to/from tchar[] in C/C++(ms)? This seems like a pretty softball question, but I always have a hard time looking up this function because there seem there are so many variations regarding the referencing of char and tchar.
A: TCHAR is a Microsoft-specific typedef for either... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Pivot Table and Concatenate Columns I have a database in the following format:
ID TYPE SUBTYPE COUNT MONTH
1 A Z 1 7/1/2008
1 A Z 3 7/1/2008
2 B C 2 7/2/2008
1 A Z 3 7/2/2008
Can I use SQL to convert i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Experiences and tips for programming with and for Amazon's cloud servers/apps/tools? We're looking into developing a product that would use Amazon's cloud tools (EC2, SQS, etc), and I'm curious what tips/gotchas/pointers people that have used these technologies have.
One tip/whatever per post, please.
A: The Elasti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: JPA - Unknown entity bean class Hopefully, I can explain this issue properly. I have 3 classes that deals with my entities.
@MappedSuperclass
public abstract class Swab implements ISwab {
...
private Collection<SwabAccounts> accounts;
...
}
@Entity
@Table(name="switches")
@DiscriminatorColumn(name="type")
@Dis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Reset Expander to default collapse behavior I'm using an expander inside a Resizer (a ContentControl with a resize gripper), and it expands/collapses properly when the control initially comes up. Once I resize it, the Expander won't properly collapse, as documented below. I ran Snoop on my application, and I don't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the best way for a website to check if a user has installed a client app? Let's say I've got a website that works better if a client has installed and logged into a desktop application. I'd like to be able to do 2 things:
*
*Alter the website if they haven't installed the app (to make it easy for them to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can not get CSS Sticky footer to work. What am I doing wrong? Well, this is my first post here and really enjoying the site.
I have a very basic (ugly as sin) site I have started and for some reason, I can not get the CSS Sticky footer to work for FireFox. IE works but FF shows it halfway up the page.
The URL is ht... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Scriptaculous sortable matrix I am trying to create a sortable image matrix, 5x5 using scriptaculous javascript library by I can't make it work.
I am trying using a table but I am having trouble linking the <td> into the Sortable object.
Do you guys have any hint or documentation I can go through to create this ?
T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What languages have a good GUI API/Designer? I've been wanting to become proficient in a new language for a while. There are a few languages I want to learn but it's pretty important for me to be able to create a (Application) GUI. I work in C# so I have become very accustom to the GUI designer.
I would love to get... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Setting the scrollbar position of a ListBox Can I programatically set the position of a WPF ListBox's scrollbar? By default, I want it to go in the center.
A: To move the vertical scroll bar in a ListBox do the following:
*
*Name your list box (x:Name="myListBox")
*Add Loaded event for the Window (Loaded="Wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What are the limitations of Loose XAML? I have been experimenting with WPF and rendering strict XAML markup in a web browser, also known as Loose XAML (explained here and here).
It strikes me as mostly useful for displaying static content. However, it also appears possible to bind to an XML data provider.
Loose X... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to detect an update using .NET 2 System.Configuration.Install? I created a class derived from System.Configuration.Install for my installer.
But the code in Uninstall() is being called when I try to update the application.
How can I detect that the user is trying to update instead of uninstall?
Maybe this post e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Text editor to open big (giant, huge, large) text files I mean 100+ MB big; such text files can push the envelope of editors.
I need to look through a large XML file, but cannot if the editor is buggy.
Any suggestions?
A: Tips and tricks
less
Why are you using editors to just look at a (large) file?
Under *nix or C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1022"
} |
Q: Why do I get "Cannot redirect after HTTP headers have been sent" when I call Response.Redirect()? When I call Response.Redirect(someUrl) I get the following HttpException:
Cannot redirect after HTTP headers have been sent.
Why do I get this? And how can I fix this issue?
A: A Redirect can only happen if the first... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "90"
} |
Q: How to get SQL Profiler to monitor trigger execution I have a trace setup for SQL Server Profiler to monitor SQL that is executed on a database. I recently discovered that trigger execution is not included in the trace. After looking through available events for a trace, I do not see any that look like they would ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: Nginx + fastcgi truncation problem I'm running a Django site using the fastcgi interface to nginx. However, some pages are being served truncated (i.e. the page source just stops, sometimes in the middle of a tag). How do I fix this (let me know what extra information is needed, and I'll post it)
Details:
I'm using ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Mahjong - Arrange tiles to ensure at least one path to victory, regardless of layout Regardless of the layout being used for the tiles, is there any good way to divvy out the tiles so that you can guarantee the user that, at the beginning of the game, there exists at least one path to completing the puzzle and winni... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Javascript Commands Only Executed When Unminimized I want to log to the console when I'm using un-minimized JavaScript files.
Comments are taken out already when I minimize JavaScript. I'm wondering if there's a way I can write a command that isn't commented out but will still be taken out when I minimize the JavaSc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: String.Format like functionality in T-SQL? I'm looking for a built-in function/extended function in T-SQL for string manipulation similar to the String.Format method in .NET.
A: If you are using SQL Server 2012 and above, you can use FORMATMESSAGE. eg.
DECLARE @s NVARCHAR(50) = 'World';
DECLARE @d INT = 123;
SELECT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "104"
} |
Q: iPhone user's mobile number Can I get user's mobile number (CLI number) in Objective-C on the iPhone from its sim card?
A: Not with the official SDK. You could ask the user to point to its own contact entry using the AddressBookUI framework's pickers, or a UI of your own design.
A: You can get the user's phone # f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: SQL: parse the first, middle and last name from a fullname field How do I parse the first, middle, and last name out of a fullname field with SQL?
I need to try to match up on names that are not a direct match on full name. I'd like to be able to take the full name field and break it up into first, middle and last... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: LINQ to XML for a small appliction can it replace a small database? I am creating a small application that will be deployed on Window. The database will have less than 10 tables.
Instead of installing a database on the client box is using XML documents for the database and LINQ going to cost in performance of qu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Way to go from recursion to iteration I've used recursion quite a lot on my many years of programming to solve simple problems, but I'm fully aware that sometimes you need iteration due to memory/speed problems.
So, sometime in the very far past I went to try and find if there existed any "pattern" or text-book way ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "441"
} |
Q: Is there anything inherently wrong with long object invocation chains? I've organized my code hierarchically and I find myself crawling up the tree using code like the following.
File clientFolder = task.getActionPlan().getClientFile().getClient().getDocumentsFolder();
I'm not drilling down into the task object; I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Can't copy file with appropriate permissions using FileIOPermission This snippet works well if I try to write in a user directory but as soon as I try to write in Program Files, it just executes silently and the file has not been copied (no exception). If I try to copy the file in C:\ or in C:\Windows I catch an Una... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I automatically update a web reference at build time? I have a .net project that has a web reference to a service. I would like to update that web reference as part of every build. Is that possible?
A: You can use MSBuild script with a task that calls wsdl.exe
<Target Name="UpdateWebReference">
<Mes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: What is the best client side browser library to upload multiple files over http? What is the best client side http library to upload multiple files? If it can handle directories that's a huge bonus. I'm looking for something that is open source or free. I'm looking for something like FTP, but that works over http, t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: DB2 CLI result output When running command-line queries in MySQL you can optionally use '\G' as a statement terminator, and instead of the result set columns being listed horizontally across the screen, it will list each column vertically, which the corresponding data to the right. Is there a way to the same or a si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do you implement a multiculture web application I believe several of us have already worked on a project where not only the UI, but also data has to be supported in different languages. Such as - being able to provide and store a translation for what I'm writing here, for instance.
What's more, I also believe s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Keeping Visual Studio Projects on a Network Drive We just did a move from storing all files locally to a network drive. Problem is that is where my VS projects are also stored now. (No versioning system yet, working on that.) I know I heard of problems with doing this in the past, but never heard of a work-around. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: linuXploit_crew hit my webserver We run an old Windows NT Machine, fully patched running IIS4.0.
Today we were hit by "linuXploit_crew", and they took down our websites for a minute or two. (luckily we were quick to notice a change on the websites and fix it within minutes of the attack).
However -- After fixing the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to implement custom JSON serialization from ASP.NET web service? What options are there for serialization when returning instances of custom classes from a WebService?
We have some classes with a number of child collection class properties as well as other properties that may or may not be set depending on usage... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Probably BAD coding style ... please comment I am checking whether the new name already exists or not.
Code 1
if(cmbxExistingGroups.Properties.Items.Cast<string>().ToList().Exists(txt => txt==txtNewGroup.Text.Trim())) {
MessageBox.Show("already exists.", "Add new group");
}
Otherwise I could have writ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the naming convention in Python for variable and function? Coming from a C# background the naming convention for variables and method names are usually either camelCase or PascalCase:
// C# example
string thisIsMyVariable = "a"
public void ThisIsMyMethod()
In Python, I have seen the above but I have also se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1018"
} |
Q: How to find oracle error codes that could result from a connection error? I would like to handle an OracleException thrown when my network/database connection is interrupted, where can I find out what error codes I might can receive?
I guess since we are talking about a connection interruption these would be technic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Remove “Save target as…” from IE Is there any way to remove “save target as” from internet explorer’s right-click menu by using group policies or registry hacks? Failing that is there a simple programmatic way?
A: Update: Aside from all my preachings below, here's the answer you are looking for:
There is a Group Po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Converting MS Word Documents to PDF in ASP.NET Similar questions have been asked, but nothing exactly like mine, so here goes.
We have a collection of Microsoft Word documents on an ASP.NET web server with merge fields whose values are filled in as a result of user form submissions. After the field merge, the server... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Using a subdomain to identify a client I'm working on building a Silverlight application whereas we want to be able to have a client hit a url like:
http://{client}.domain.com/
and login, where the {client} part is their business name. so for example, google's would be:
http://google.domain.com/
What I was wonderin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Oracle ROWNUM pseudocolumn I have a complex query with group by and order by clause and I need a sorted row number (1...2...(n-1)...n) returned with every row. Using a ROWNUM (value is assigned to a row after it passes the predicate phase of the query but before the query does any sorting or aggregation) gives me a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Do objects added to the SqlException.Data collection need to be [Serializable]? Do objects added to the SqlException.Data collection need to be [Serializable]?
A: Yes, they need to be. It's because ISerializable's implementation in Exception type add Data property into StreamingContext. And all objects in Data prop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is Ruby a functional language? Wikipedia says Ruby is a functional language, but I'm not convinced. Why or why not?
A: Ruby is a multi-paradigm language that supports a functional style of programming.
A: Whether a language is or is not a functional language is unimportant. Functional Programming is a thesis, best... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "93"
} |
Q: VB.Net Automating MS Word for Spell Check Capabilities An application currently in development has the requirements for using MS Word to perform spell check on certain textareas within the application.
I currently have Office 2007 (which is the Office 12 com objects).
My question is, if I add in the Office 12 object... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python Web Services Elementree has become the accepted standard for interacting with xml. What is the prevalent web service/SOAP library in use today?
A: I'm not sure about an accepted standard, but I've found SOAPpy to be fairly straight-forward and useful library for handling SOAP-based web services.
SOAPy is a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I scroll a UITableView to a section that contains no rows? In an app I'm working on, I have a plain style UITableView that can contain a section containing zero rows. I want to be able to scroll to this section using scrollToRowAtIndexPath:atScrollPosition:animated: but I get an error when I try to scroll to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Determine logged on user on a remote Windows machine Is there a way to determine who is logged on to a particular (remote) machine given the IP address (or the workstation name) of the machine?
*
*The machines in question are on an Active Directory Domain
*The user running the script probably won't have any spec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible to interpolate my angle bracket, percent, equals <%= %> syntax in external javascript files? Often times when mixing jQuery with asp.net I need to use asp .net angle bracket percent, <% %>, syntax within a jQuery selector.
If I would like to separate the JavaScript from markup into different files is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: UnsatisfiedLinkError: The specified procedure could not be found I'm writing some JNI code in C++ to be called from an applet on Windows XP. I've been able to successfully run the applet and have the JNI library loaded and called, even going so far as having it call functions in other DLLs. I got this working by s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: subversion diff including new files I have some local changes to an open source project which uses Subversion as its source control. (I do not have commit access on the original project repository.)
My change adds a file, but this file is not included in the output of "svn diff". (It may be worth noting that the n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: log4net Configuration Section for NUnit Test Project I am running NUnit with the project named AssemblyTest.nunit. The test calls another assembly which uses the log4net assembly. This is using nunit version 2.4.3 with the .net 2.0 framework.
In TestFixtureSetup I am calling log4net.Config.XmlConfigurator.Configure(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I sort my code (by method name) in Visual Studio 2008? Short of cutting and pasting, is there a way to sort the methods in my classes in Visual Studio 2008? I like orderly code.
A: If you are using Resharper, you can change the Type Members Layout template so that it orders your code however you like. See un... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Synchronized ListViews in .Net I'm working on a control to tie together the view from one ListView to another so that when the master ListView is scrolled, the child ListView view is updated to match.
So far I've been able to get the child ListViews to update their view when the master scrollbar buttons are clicke... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: From SourceSafe to Team Foundation Server Our team would like to move from the Visual SourceSafe (VSS) to the Team Foundation Server (TFS). I know that the TFS is much more than just a version control system, but for the first time I would like to use it this way.
Currently our projects are organized within the sing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: SqlMembershipProvider initialize method not being called I have done a custom implementation of MembershipProvider but for some reason the initialize method is not being invoked and thus my provider is not setting up properly from the config parameters, who invokes it in the first place and how do i get it to work.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to make cffile.oldFileSize return a correct value? When working with cffile in ColdFusion, after an upload of a file to a webserver, the cffile structure is created that is supposed to have a value in it called "oldFileSize". Every time I do an upload and examine that value, it has the new file's siz... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is it OK to put a database initialization call in a C# constructor? I've seen this is various codebases, and wanted to know if this generally frowned upon or not.
For example:
public class MyClass
{
public int Id;
public MyClass()
{
Id = new Database().GetIdFor(typeof(MyClass));
}
}
A: You can u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to execute GetLastError() while debugging in Visual Studio You're stepping through C/C++ code and have just called a Win32 API that has failed (typically by returning some unhelpful generic error code, like 0). Your code doesn't make a subsequent GetLastError() call whose return value you could inspect for furt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: How do I access SQLite database instance on iPhone? I'm developing an iPhone app that uses the built-in SQLite database. I'm trying to view and open the database via the sqlite3 command line tool so I can execute arbitrary SQL against it.
When I run my app in the simulator, the .sqlite file it creates is located at ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: Determine if a program is running on a Remote Desktop Is there a way my program can determine when it's running on a Remote Desktop (Terminal Services)?
I'd like to enable an "inactivity timeout" on the program when it's running on a Remote Desktop session. Since users are notorious for leaving Remote Desktop sessi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: CSS/JavaScript Use Div to grey out section of page Does anybody know a way with JavaScript or CSS to basically grey out a certain part of a form/div in HTML?
I have a 'User Profile' form where I want to disable part of it for a 'Non-Premium' member, but want the user to see what is behind the form and place a 'Call ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: Confused on count(*) and self joins I want to return all application dates for the current month and for the current year. This must be simple, however I can not figure it out. I know I have 2 dates for the current month and 90 dates for the current year. Right, Left, Outer, Inner I have tried them all, just throw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I loop through a MySQL query via PDO in PHP? I'm slowly moving all of my LAMP websites from mysql_ functions to PDO functions and I've hit my first brick wall. I don't know how to loop through results with a parameter. I am fine with the following:
foreach ($database->query("SELECT * FROM widgets") as $resu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: How do I make a ListView row draggable in .NET? I am not the most experienced GUI programmer, so bear with me here. I have a custom list view. I would like to be able to drag a row from the ListView to another control on a form. I know how to catch events that are fired when an object is dragged to a control, but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there any reasonable way to migrate from subversion to cvs? My company unwittingly switched from cvs to subversion and now we're all wishing we had cvs back.
I know there's tools to migrate history and changes from cvs to svn and there's no equivalent to do the reverse.
Any suggestions or ideas on how to do this?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Animating a custom Button ControlTemplate Foreground I want to change/animate the Foreground property of a custom button control template depending on the control's state.
Pre-RC0, I set the Foreground of the ContentPresenter, gave it an x:Name, and referenced it in the VisualStateManager transitions.
Now, ContentPr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: One To Many To Itself How would one structure a table for an entity that can have a one to many relationship to itself? Specifically, I'm working on an app to track animal breeding. Each animal has an ID; it's also got a sire ID and a dame ID. So it's possible to have a one to many from the sire or dame to its of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Changing short date format in Ubuntu How do I change the system-wide short date format in Ubuntu? For example, Thunderbird is showing dates in the DD/MM/YY format, and I would like to change it to MM/DD/YY or YYYY-MM-DD.
The best information I can find so far is in this thread:
http://ubuntuforums.org/showthread.ph... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Subsonic and sp_help_job Is it possible for subsonic to access dbo.sp_help_job?
A: SubSonic is an ORM tool that also wraps SP's but does not generate code for system SP's and the project is open source so you can edit the code to your need
| {
"language": "en",
"url": "https://stackoverflow.com/questions/159961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# - Keyword usage virtual+override vs. new What are differences between declaring a method in a base type "virtual" and then overriding it in a child type using the "override" keyword as opposed to simply using the "new" keyword when declaring the matching method in the child type?
A: Here's some code to understa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "220"
} |
Q: How can I create a temporary file for writing in C++ on a Linux platform? In C++, on Linux, how can I write a function to return a temporary filename that I can then open for writing?
The filename should be as unique as possible, so that another process using the same function won't get the same name.
A: tmpnam(), ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What is the difference between Ruby and Python versions of"self"? I've done some Python but have just now starting to use Ruby
I could use a good explanation of the difference between "self" in these two languages.
Obvious on first glance:
Self is not a keyword in Python, but there is a "self-like" value no matter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/159990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: iMacros is good but unreliable. Is there any alternative? iMacros is a very nice tool which allows to authomatically fill HTML forms and extract content, includes cycles and many other features. The problem is that it is quite tricky to make it extracting content properly. For example, I have failed to extract all L... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Model limit_choices_to={'user': user} I went to all the documentation, also I went to the IRC channel (BTW a great community) and they told me that is not possible to create a model and limit choices in a field where the 'current user' is in a ForeignKey.
I will try to explain this with an example:
class Project(mod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.