text stringlengths 8 267k | meta dict |
|---|---|
Q: Groovy Mixins? I'm trying to mix-in a class in my Groovy/Grails app, and I'm using the syntax defined in the docs, but I keep getting an error.
I have a domain class that looks like this:
class Person {
mixin(ImagesMixin)
// ...
}
It compiles fine, but for some reason it won't work. The file containing ImagesM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Executing groovy statements in JavaScript sources in Grails There are essentially 2 places to define JavaScript functions in Grails, directly in a element on the GSP, and within a separate javascript source file under /web-app/js (for example, application.js). We have defined a commonly reused javascript function w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: PageMethod Not Updating - Requires Project Rebuild to be Updated I am using the AJAX Toolkit:
<ajaxToolkit:CascadingDropDown ID="CategoryDDL_C" runat="server" TargetControlID="CategoryDDL"
Category="Main" PromptText="Please select a category" LoadingText="[Loading...]"
ServiceMethod="MainDD... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When/where is the earliest point in a WebForm to call Response.Redirect? I always put calls to Response.Redirect in my WebForm's OnLoad method, mostly because every example I've seen do that. I was wondering if it was any more efficient (and correct) to do that in OnPreInit? Even if the endResponse param is true?
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java library for parsing & building logical expressions I am looking for an open source library in Java for parsing and building SQL-like expressions.
for example to evaluate validity of expressions like:
"(a = x or y ) and (b != z)"
in addition I want to have an API for building or extending expressions.
somethin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I add common C# code to a Visual C# 2008 Express project/solution? (I still feel like a complete newbie in MS Visual environments... so please bear with!)
I'm using Microsoft Visual C# 2008 Express Edition.
I have a project and in that project are two different forms. The .cs file for each form starts out:
u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to not show BaseValidator.Text when using a ValidationSummary in ASP.NET I'm using a bunch of different asp.net validation controls on a web form. Some of these have their Text property set to things like "* Error" or "You missed these fields".
However, a few of the CustomValidator controls have blank Text pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I work around Type.IsAssignableFrom not working with inherited interfaces? I've made a test case to illustrate the problem I've run into.
The first assert passes, but the second and third both fail.
Is there a way to check either of the two failing conditions k in a different way that will work? It would be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to write a preview pane (master/detail) with HTML and CSS In the modern era of CSS, how would I create a pair of panels (for example, a preview window like in Outlook, or for master/detail views)? Ideally where the top (master) pane would get scrollbars, etc.?
The intended use-case is so that a user can scroll i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Sql Parameter Collection I have 5 parameters and I want to send them to the method:
public static SqlCommand getCommand(string procedure, SqlParameter[] parameter)
{
Sqlcommand cmd;
return cmd
}
Can I send these paramters at one time like this?
SqlParameterCollection prm;
prm.Add(p1);
prm.Add(p2);
prm.Add(p3)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Is there a MVC pattern for C# in WPF Is there a pattern where in WPF, I can build a simple UI form from an XML like definition file pulled from a database?
It would allow the user to enter data into this form, and submit it back. The data would be sent back in an XML structure that would closely/exactly mimic th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: IComparer problem + How do I sort an array of strings naturally (FILE_10 > FILE_2) in .NET? SOLVED at the bottom of my post.
Or more specifically:
I have a bunch of FileInfo objects (I need the FileInfo objects to exclude hidden, system and reparse point files).
I need to sort FileInfo[] naturally based on their Fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to set read permission on the private key file of X.509 certificate from .NET Here is the code to add a pfx to the Cert store.
X509Store store = new X509Store( StoreName.My, StoreLocation.LocalMachine );
store.Open( OpenFlags.ReadWrite );
X509Certificate2 cert = new X509Certificate2( "test.pfx", "password" );
st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: What is your preferred php deployment strategy? I'm beginning a new project in PHP and I'd love to get some feedback from other developers on their preferred strategy for PHP deployment. I'd love to automate things a bit so that once changes are committed they can be quickly migrated to a development or production s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "161"
} |
Q: Unit-testing private methods: Facade pattern Lots of developers think that testing private methods is a bad idea. However, all examples I've found were based on the idea that private methods are private because calling them could break internal object's state. But that's not only reason to hide methods.
Let's consid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Preferred database design method for assigning user roles? (Hats vs. Groups) I have medium sized MySQL database with a primary "persons" table which contains basic contact information about every human being connected to the theatre and theatre school for which I am responsible for maintaining and developing a numbe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Can PHP restart Apache? I have a local server which needs to make changes to a virtual hosts apache config file and then restart apache so the new config takes effect.
Can PHP do this? I tried passthru and exec but they didn't work. Maybe the problem is that I'm trying to restart PHP's parent process?
Thanks for any... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Drag button between panels in wxPython Does anyone know of an example where it is shown how to drag a button from one panel to another in wxPython?
I have created a bitmap button in a panel, and I would like to be able to drag it to a different panel and drop I there.
I haven't found any examples using buttons, jus... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Do you use UML diagrams to aid your development process? So what are the UML diagrams (if any) Stackoverflow has been using for documentation and/or for communication with developers?
From what I see, Stackoverflow is something original that also provides rich user experience.
Just wondering what does it take (what ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How much content being replaced with an AJAX call is too much? I run into a common problem when trying to do AJAX development. Where possible, I like to try and just update data in an existing layout, and not the layout itself. For example, take the div below:
<div id="content-5">Here is some content</div>
I would ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best Way to get XML from a JDBC resultset I'm looking for the best approach to getting an XML document from a JDBC resultset. The structure of the XML isn't awfully important, but it should be fairly speedy.
For clearification, I would like the data from the resultset and only enough metadata to identify the data (f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Managed C++ wrappers for legacy C++ libraries We're looking at writing a .Net-callable wrapper for some legacy C++ libraries using managed C++.
It all looks pretty easy. Is there anything we need to watch out for?
A: I found it generally quite easy to wrap some existing C++ libraries in C++/CLI and encountered com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Multithread a unit test In order to test concurrency issues, I want to call the same method on two different threads at exactly the same time using a unit test. In fact I probably want to call the same method on several threads at the same time.
I'm using Microsoft's built in unit tester for VS2008.
My thoughts are ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Netbeans J2ME SVG Compliance I coded some svg images for a project i'm working on. But when i try to put them on a screen(form) in the netbeans software (j2me), it says "the image is not SVG Tiny compliant". I've even tried testing with svg images from Sun's WTK demo's THAT WORK when deployed but it says the same th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it a best practice to specify an initial capcity for collections? A lot of the collection classes in .Net (i.e., List<T>, Dictionary<TKey, TValue>) have an overloaded constructor that lets you specify an initial capacity size. Is it a best practice to use this constructor? If so, is there a rule of them as to som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425759",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a DesignMode property in WPF? In Winforms you can say
if ( DesignMode )
{
// Do something that only happens on Design mode
}
is there something like this in WPF?
A: In some cases I need to know, whether a call to my non-UI class is initiated by the designer (like if I create a DataContext class from XA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "107"
} |
Q: How to copy a Visio shapesheet section between shapes in VBA Is there a method available for copying a section out of a shape to another shape using VBA? I'm specifically trying to copy all the custom properties and user cells from one pagesheet to another page.
A: Unfortunately there isn't a simple method to do t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does git svn dcommit lose the history of merge commits for local branches? I have a local git repository created with git svn clone. I make a local branch, make some changes, switch back to master, git svn rebase and if it's all good, I merge my branch back into master. Then the tree looks something like this:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Setting XAML at runtime? Can I dynamically create an XAML and pop it into my app? How would it be done?
A: Yep, it's pretty simple:
XmlReader tXml = XmlReader.Create(myXamlString);
UIElement MyElement = (UIElement)XamlReader.Load(tXml);
Then you can do what you like with it.
A: A few articles on dynamic XAML gene... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Restaurant back-end systems and .Net How would I programmatically connect to an existing back-end system of a restaurant using say Micros POS, with a web app built with .Net and C#. Thanks.
Update: Sorry for the ambiguity but I'd like to set up an online ordering system that takes users' orders and forward to a rest... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there tooling to visualize a live Spring application context? Are there any tools that can take a fully-constructed/wired Spring application context and export a visualization of it? I'm talking about a live context that shows the order in which aspects were applied, what beans were auto-wired into other beans, e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Windows Workflow - IfElse branch I am trying to use Windows Workflow and have a model that looks similar to the image in the link below:
After each of the Send Activities (GetSomthing, GetSomthingElse, GetSomeMoreStuff) the same custom activity is being called (LogSomthingBadHappened).
While it might not look so b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Multiple links on a Rails view that each perform different actions - how best to handle this? One of the things I'm doing includes several links on the show view. For instance, I have a link (or button) for "Accepting", and another one for "Rejecting". Click on Accept, and the model updates the is_accepted field as ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Server connection management in Tomcat 6 We are having trouble with a Java web application running within Tomcat 6 that uses JDBC to connect to a SQL Server database.
After a few requests, the application server dies and the in the log files we find exceptions related to database connection failures.
We are not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to center a WPF CheckBox within a ListBoxItem I have a ListBox that uses an ItemContainerStyle. I have tried everything I can think of to get a CheckBox control to center vertically and horizontally. Any ideas?
<ListBox
IsSynchronizedWithCurrentItem="True"
Height="Auto" Width="Auto" DockPanel.Dock="Top"
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Exposing SQL Server 2000 to the Internet safely I've got a SQL Server 2000 box that I'd like to put on "the Internet" so that developers could connect remotely without VPN access.
What's the safest way to do so? It might be temporary, e.g. every once in a while, but it's definitely necessary.
Thanks,
Rob
A: Short a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Converting a normalized phone number to a user-friendly version In my C# application, I use a regular expression to validate the basic format of a US phone number to make sure that the user isn't just entering bogus data. Then, I strip out everything except numbers, so this:
(123) 456-7890 x1234
becomes
123456789... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Are there any open-source code-generation projects out there? I'm using an in-house code generator in which we supply all the metadata regarding our objects, and it generates our database, and object model including validation logic. Once we load all the data in the database, we use classic ASP <% %> to build our te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Open source Database to ship with my application I need open source database that I can ship with my commercial application.
It should not have any installation (i.e., no window service and no setup).
It can be single user database. It should work in Windows environment and used from Java code.
Thanks
A: You might ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Are there any good ant visualization programs out there? I am looking for a utility that will suck in an ant build file and present a graphical display of the targets and properties available to that target. Please don't respond with 'VisualAnt' I own it and it sucks.
A: I use yWorks Ant Explorer. It runs as a sta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Talk on ASP.NET A friend of mine's company is considering using either Java or ASP.NET for web development. Currently they do all development in Delphi. As they have no experience in .NET they have asked me to come down and give a 1 hour overview of .NET (mainly ASP.NET). What topics should I cover?
A: I was hired... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jQuery AJAX request failing in IE The following AJAX call is failing in IE.
$.ajax({
url:"{{SITE_URL}}/content/twitter.json",
dataType:"json",
error:function(xhr, status, errorThrown) {
alert(errorThrown+'\n'+status+'\n'+xhr.statusText);
},
success:function(json) {
...Snip.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: sed in Vista - how to delete all symbols between? I have a bat file that I should use to delete a part of one file and save into another one. I need to delete all the symbols between text "[aaa bbb]" and "[ccc ddd]". That is if I have the text:
[aaa bbb]
1
2
3
[ccc ddd]
I should have as output:
[aaa bbb]
[ccc ddd]
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Reordering of controls within a flow layout panel I'm having trouble using the flowlayoutPanel in a C# winform application. What I basically have is a flow layout panel that has 3 sections.
Section #1 is a set of 2 controls .. two dropdown controls, they are always in the same order, always visible in all instances
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Using DateTime in a SqlParameter for Stored Procedure, format error I'm trying to call a stored procedure (on a SQL 2005 server) from C#, .NET 2.0 using DateTime as a value to a SqlParameter. The SQL type in the stored procedure is 'datetime'.
Executing the sproc from SQL Management Studio works fine. But everytim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Is it possible to manage C++ application via JMX? We have a distributed application containing C++ and Java modules, interacting via CORBA.
Are there any C++ libraries/tools for exposing "variables" and "methods" to JMX tools (to create unified management) ?
A: So even though your application is C++ and Java, you'r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can SQL CLR triggers do this? Or is there a better way? I want to write a service (probably in c#) that monitors a database table. When a record is inserted into the table I want the service to grab the newly inserted data, and perform some complex business logic with it (too complex for TSQL).
One option is to hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to calculate the size of a sprite? I have a sprite that I do some custom drawing in, but I would like the container to know where to position the sprite properly. To do this, the container needs to know how big the sprite is. UIComponents go through a measure stage, but sprites don't . How do I calculate the siz... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Built-In Character Casing functions in .Net Are there any built-in functions in .Net that allow to capitalize strings, or handling proper casing? I know there are some somewhere in the Microsoft.VB namespace, but I want to avoid those if possible.
I'm aware of functions like string.ToUpper and string.ToLower() funct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: SMTP Email: Mailbox unavailable. The server response was: No such recipient I created a new email box for general support questions. When I try to send an email through SMTP I receive the following error:
Mailbox unavailable. The server response was: No such recipient
I am able to email the box through Outlook an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I render a custom view in a UIScrollView at varying zoom levels without distorting the view? The scenario:
I have a custom view (a subclass of UIView) that draws a game board. To enable the ability to zoom into, and pan around, the board I added my view as a subview of UIScrollView. This kind of works, but t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to program a fractal? I do not have any experience with programming fractals. Of course I've seen the famous Mandelbrot images and such.
Can you provide me with simple algorithms for fractals.
Programming language doesn't matter really, but I'm most familiar with actionscript, C#, Java.
I know that if I google f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "81"
} |
Q: How do I determine if an IOException is thrown because of a sharing violation? I have a C# application and I want to copy a file to a new location. Some times I need to overwrite an existing file.
when this happens I receive a System.IO.IOException. I want to recover from a Sharing violation but how do I determin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How can I debug a single ruby script in netbeans? All of this is on a windows xp box:
Netbeans managed to accept an existing rails project and allowed me to debug it just fine, but my project has a number of processing scripts that handle non-MVC aspects. The rails project is just a system for queuing requests for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Numbers of ways of Rendering in Qt Can anyone please tell me how many ways are there to render a screen in Qt.Like Show() , QDirectPainter etc...
A: Qt is double buffered. So, you would use update() to request a screen redraw. Another perspective would be to enumerate the backends in Qt - and this varies on differe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can I have one project in two SVN repositories? Our I.T. dept doesn't allow connections to the SVN server from outside the physical office. (They're just kind of like that.) I need to work on projects when I'm not at the office.
I could just check out the project and wait until I come in to do a check-in. Maybe that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: best way to write a polled FTP download in C# I currently have a manual process where we upload a text file to a business partner, they have an automated process which reads in the file, processes it and then generates a 'results' log file any where from 3-10minutes (typically) after the initial upload. I need to a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Enable SSL for my WCF service I have a WCF service that uses basicHttpbinding in development.
Now in product we want to use SSL, what changes do I have to make to force SSL connections only?
A: This page on MSDN explains WCF Binding Security.
http://msdn.microsoft.com/en-us/library/ms729700.aspx
The BasicHttpBindi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: How to prevent memory leaks while cancelling an operation in a worker thread? Currently i am working on a desktop application which consists mathematical analysiss.I am using qt for GUI and project written in c++.
When user starts an analysis, i open a worker thread and start a progress bar.Everything is ok up to no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Maximum Method Name Length Does anyone happen to know what the maximum length of a method name is in your programming language of choice? I was going to make this a C# specific question, but I think it would be nice to know across the spectrum.
What are the factors involved as well:
*
*Does the language specifica... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: Django on IronPython I am interested in getting an install of Django running on IronPython, has anyone had any success getting this running with some level of success?
If so can you please tell of your experiences, performance, suggest some tips, resources and gotchas?
A: Here's a database provider that runs on .... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: Why does FF3 say "Permission denied to get property HTMLDivElement.tagName"? When I run this through FireFox 3:
<script type="text/javascript" src="../resources/dojo-1.2.3-src/dojo/dojo.js" djConfig="parseOnLoad: true"></script>
<script type="text/javascript" src="../resources/dojo-1.2.3-src/dojo/dijit.js"></script... | {
"language": "en",
"url": "https://stackoverflow.com/questions/425996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Converting MSSQL GetUTCDate() into PHP/Unix/MySQL Ticks I'm inserting a DateTime into MsSQL using the GetUTCDate() function provided by MsSQL.
I need to convert the time in C# to show it as the Unix / MySQL integer, so that it can be eventually manipulated with PHP.
I believe the Unix / PHP / MySQL ticks start at 1/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can you use an object-database in a production system? Object-databases are used very seldomly, albeit they offer a way to live without SQL, which is, I think, a benefit of its own.
Yet, I have seen them about never in production systems. Is there something fundamentally wrong with object-databases? Can I use a obj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: where can i learn about how memory management in java works? what i'm looking for is what gets put into the call stack once a function is called recursively, how the arguments are laid on top of each other (are local variables pushed in order? are paremeters pushed in the reverse order?), what bytes exist in an arra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Ruby Gems Problem: uninitialized constant Gem::GemRunner I had a rails 2.2 app running, when I tried to add the latest rspec plugin to it. I did that checking it from github with the script/plugin install command. That made some rake task to stop working, I googled for a while and found that I had to upgrade RubyGem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Git on Windows: How do you set up a mergetool? I've tried msysGit and Git on Cygwin. Both work just fine in and of themselves and both run gitk and git-gui perfectly.
Now how the heck do I configure a mergetool? (Vimdiff works on Cygwin, but preferably I would like something a little more user-friendly for some of o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "371"
} |
Q: Why doesn't my ChannelFactory see my endpoint configuration? I've been following Miguel Castro's excellent article on WCF here and it's all working nicely, except that I have the following code
public AdminClient()
{
ChannelFactory<IProductAdmin> factory = new ChannelFactory<IProductAdmin>();
productAdminCha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "49"
} |
Q: What are the best resources for learning Windows PowerShell? I'm looking to learn Windows PowerShell. Can someone give me some really good references on where to start?
A: Search the web for some base tutorials on how to start. Once you are comfortable branch into the sites showing examples. Keep in mind that Pow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426048",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Will I be able to create dynamic classes at runtime in Oslo? For instance, will I be able to create an application that allows users to create and modify existing types at runtime? Will I be able to persist instances of those types in SQL without having to worry about the user who adds 100,000 records and expects a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I sync the computer's clock upon startup? I have several servers hosted with GoGrid, and every time I reboot one of my cloud servers, the system clock is incorrect. The server isn't a member of a domain, so I just have the OS set to sync with an Internet time server. This only happens once a day, and I don't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "55"
} |
Q: Converting small-ish Oracle long raw values to other types I have an Oracle table that contains a field of LONG RAW type that contains ASCII character data. How can I write a query or view that will convert this to a more easily consumed character string? These are always going to be single-byte characters, FWIW.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get the size of a gunzipped file in vim When viewing (or editing) a .gz file, vim knows to locate gunzip and display the file properly.
In such cases, getfsize(expand("%")) would be the size of the gzipped file.
Is there a way to get the size of the expanded file?
[EDIT]
Another way to solve this might be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I view JRE's source code in Eclipse? Using Eclipse I want to view the source code for a core Java class (E.g. java.util.concurrent.ConcurrentHashMap) but when I navigate to the source using 'Open Declaration' it says 'Source not found' and gives me the option to attach the source.
My question is; how do i att... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "85"
} |
Q: ASP.NET Controller Base Class User.Identity.Name As described in this post, I created an abstract base controller class in order to be able to pass data from a controller to master.page. In this case, I want to lookup a user in my db, querying for User.Identity.Name (only if he is logged in).
However, I noticed that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I take control of my domain that is registered to me but controlled by web developers? I've got a problem where I have a .co.uk domain of which I am the registrant but my web developers control the domain via easyspace.com. I'm not using the web developers anymore and it ended on bad terms so I would like to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: SQL query to exclude items on the basis of one value I'm pulling a list of items from one table, on the basis of their being included in another table, like this:
select fruit.id, fruit.name from fruit, fruit_rating where fruit_rating.fruit_id=fruit.id group by fruit.name;
That works fine -- it basically produces a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is it advantageous to use threads in windows? Some of the fellows in the office think that when they've added threads to their code that windows will assign these threads to run on different processors of a multi-core or multi-processor machine. Then when this doesn't happen everything gets blamed on the existence... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Clickonce & Isolated Storage Has anyone had issues with the contents of an isolated storage directory go missing or not update properly after a click once automated deployment?
A: I believe you can find your answer on this post - ClickOnce and Isolated Storage.
A: If the version of your application changes (I am u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: passing parameters to a swf via Loader I have a swf (child.swf) that I wish to load into another (parent.swf). I wish to pass a parameter to child.swf through the loader I am using. Note that I am not trying to pass FlashVars that parent.swf already has, but rather I am trying to simply load a swf through another sw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: nHibernate.Search with nHibernate v2 I having trouble getting nHibernate.Search to create an Index.
If I use 1.2.1.4 of nHibernate.dll & nHibernate.Search.dll then the index is created correctly and I can inspect it with Luke (a Lucene utility).
A segments file is created as well as a Fragments file etc
However, whe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Finding the difference between strings in Ruby I need to take two strings, compare them, and print the difference between them.
So say I have:
teamOne = "Billy, Frankie, Stevie, John"
teamTwo = "Billy, Frankie, Stevie"
$ teamOne.eql? teamTwo
=> false
I want to say "If the two strings are not equal, print whatever... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Is Polymorphism worth an increase in coupling? I'm writing a simplistic game to learn get some more C++ experience, and I have an idea where I feel polymorphism almost works, but doesn't. In this game, the Party moves fairly linearly through a Map, but can occasionally encounter a Fork in the road. A fork is (basica... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Best "3D display" developing environment for Java? (do they even exist?) There is a bunch of announcements from CES 2009 about new 3D displays used for games and movies. I was wondering if there is a setup that currently exist that also brings the 3D to a development environment. Such an environment would, for examp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: IIS6 is not finding .asp files Hoping someone can provide an answer with this, although it's not 100% programming related. All of a sudden my IIS6 install on Server 2003 will give me a "404 Not Found" error when I try to load any file ending in .asp.
I can see the file there if I turn on directory browsing, but c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the algorithm to determine the best way to distribute these coupons? Here is my problem. Imagine I am buying 3 different items, and I have up to 5 coupons. The coupons are interchangeable, but worth different amounts when used on different items.
Here is the matrix which gives the result of spending differen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Filtering on multiple DataTables in a DataSet I have a DataSet containing multiple DataTables. I want to display information from the Product DataTable, which is the center table of the DataSet. But I want to be able to filter the DataSet on values from the surrounding tables.
For example, I want to get all the Prod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the real advantage of returning ICollection instead of a List? I've read a couple of blog post mentioning that for public APIs we should always return ICollection (or IEnumerable) instead of List. What is the real advantage of returning ICollection instead of a List?
Thanks!
Duplicate: What is the difference... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Flushing JDBC connection pools Does anyone know the best (or any) way to flush a JDBC connection pool? I can't find anything obvious in the documentation. It appears connection pools aren't meant to ever be deleted.
My current thought is to delete all DataSources from the hash we store them in, which will trigger ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Building the platform code with nant and VS2008 I'm using the latest nightly build, VS2008 prof trial and .NET 3.5 and
I'm getting this error
"Solution format of file 'C:\test\Project\src\project.sln' is not
supported."
Any Solution to overcome from it
A: I don't know from what you posted if this will work, but if ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Visual Studio Shortcut for Automatically Creating Constructors from an Inherited Class Say I am inheriting from a class with several "overloaded" constructors.
By any chance is there a short cut in Visual Studio which writes the constructors in the derived class with the same signatures as in the default class for m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Can I reuse a Transaction? and how? I must use a corporate class that re-uses or re-creates a transaction after every Commit() or Rollback(). This class is told to use (or not use) transactions via a Boolean ctor parameter.
I am thinking of wrapping this API to separate the transaction support (to rely explicitly on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I send a binary blob to a client browser? Pardon the dumb newbie question here; web programming isn't my forte... (blush)
I have an aspx page running on a web server. I have a blob (byte array) containing any kind of binary file, plus a file name.
I would like to push this file to be downloaded through the b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PostgreSQL - Correlated Sub-Query Fail? I have a query like this:
SELECT t1.id,
(SELECT COUNT(t2.id)
FROM t2
WHERE t2.id = t1.id
) as num_things
FROM t1
WHERE num_things = 5;
The goal is to get the id of all the elements that appear 5 times in the other table. However, I get this error:
ERRO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: On which kind of memory a C struct is allocated when initialized as a class variable in Objective-C Consider the following:
typedef struct
{
float m00, m01, m02, m03;
float m10, m11, m12, m13;
float m20, m21, m22, m23;
float m30, m31, m32, m33;
} Matrix;
@interface TestClass : NSObject
{
Matrix matrix;
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the LD_PRELOAD trick? I came across a reference to it recently on proggit and (as of now) it is not explained.
I suspect this might be it, but I don't know for sure.
A: To export mylib.so to env:
$ export LD_PRELOAD=/path/mylib.so
$ ./mybin
To disable it:
$ unset LD_PRELOAD
A: You can override symbols in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "440"
} |
Q: Parsers and Compilers for Dummies. Where to start? This is a good listing, but what is the best one for a complete newb in this area. One for someone coming from a higher level background (VB6,C#,Java,Python) - not to familiar with C or C++. I'm much more interested in hand-written parsing versus Lex/Yacc at this st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to Share App.config? How can I share/link App.config or Web.config between multiple projects in a visual studio solution ?
A: First of all, remember that an App.config, or web.config, is visble to all code running in any project that is a used within the "process" established by the start-up project within a so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: jquery behaves strangely in some sites when inserted via bookmarklet I'm putting together a bookmarklet that inserts jquery into pages it is invoked on. On many pages it works just fine, but on pages like http://www.cnn.com (which includes both prototype and scriptaculous) it behaves a bit strangely.
$(blah..).appen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why use tables to structure your layout? Looking at the source code for Stack Overflow, I noticed they have used tables and inline CSS quite a bit, also something I found odd was use of inline table attribute formatting.
<table width="100%">
I'm just curious if there was any specific reason(s) to why they used tabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.