text stringlengths 8 267k | meta dict |
|---|---|
Q: Ruby RegEx problem text.gsub[^\W-], '') fails I'm trying to learn RegEx in Ruby, based on what I'm reading in "The Rails Way". But, even this simple example has me stumped. I can't tell if it is a typo or not:
text.gsub(/\s/, "-").gsub([^\W-], '').downcase
It seems to me that this would replace all spaces with -, t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I add a separator to a JComboBox in Java? I have a JComboBox and would like to have a separator in the list of elements. How do I do this in Java?
A sample scenario where this would come in handy is when making a combobox for font-family-selection; similar to the font-family-selection-control in Word and Exce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: batch find file extension If I am iterating over each file using :
@echo off
FOR %%f IN (*\*.\**) DO (
echo %%f
)
how could I print the extension of each file? I tried assigning %%f to a temporary variable, and then using the code : echo "%t:~-3%" to print but with no success.
A: This works, although it's not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How to write a cross-platform program? Greetings,
I want to write a small cross-platform utility program with GUI in it. What language/GUI-library should I stick to? Is it possible whatsoever?
This is gonna be a small program, so I don't want to make people download JVM or .NET Framework. Is it possible to develop i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How do you parse an HTML string for image tags to get at the SRC information? Currently I use .Net WebBrowser.Document.Images() to do this. It requires the Webrowser to load the document. It's messy and takes up resources.
According to this question XPath is better than a regex at this.
Anyone know how to do this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: How do I test a django database schema? I want to write tests that can show whether or not the database is in sync with my models.py file. Actually I have already written them, only to find out that django creates a new database each time the tests are run based on the models.py file.
Is there any way I can make th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Webservice toolkits in Java that can interface with WCF We've got some problems with an external company trying in integrate into a WCF service we expose and they are a Java shop. I was wondering if there are more than one toolkit that they can try to solve their issues and would like a list to suggest to them but I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: IE6 freezes due to *server* configuration Our web site (running Rails) freezes IE6 nearly every time. The same code, deployed on a different server, does not freeze IE6. Where and how should we start tracking this down?
A: You need to determine the difference between them, so I'd start out with the following:
curl ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: When should I use Inline vs. External Javascript? I would like to know when I should include external scripts or write them inline with the html code, in terms of performance and ease of maintenance.
What is the general practice for this?
Real-world-scenario - I have several html pages that need client-side form val... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "132"
} |
Q: Visual Studio debugger slows down in in-line code Since I upgraded to Visual Studio 2008 from vs2005, I have found a very annoying behaviour when debugging large projects. If I attempt to step into inline code, the debugger appears to lock up for tens of seconds. Each time that I step inside such a function, there... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I fix routing errors from rails in production mode? If I try and access some random string in the URL of my rails app, such as /asdfasdifjasdfkj then I am seeing a rails error message
Routing Error
No route matches "/asdfasdifjasdfkj" with {:method=>:get}
Even though I am in production mode. Clearly I don't ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What are the relative merits of CSV, JSON and XML for a REST API? We're currently planning a new API for an application and debating the various data formats we should use for interchange. There's a fairly intense discussion going on about the relative merits of CSV, JSON and XML.
Basically, the crux of the argument... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How do I obtain CPU cycle count in Win32? In Win32, is there any way to get a unique cpu cycle count or something similar that would be uniform for multiple processes/languages/systems/etc.
I'm creating some log files, but have to produce multiple logfiles because we're hosting the .NET runtime, and I'd like to avoi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to get UTF-8 working in Java webapps? I need to get UTF-8 working in my Java webapp (servlets + JSP, no framework used) to support äöå etc. for regular Finnish text and Cyrillic alphabets like ЦжФ for special cases.
My setup is the following:
*
*Development environment: Windows XP
*Production environment: De... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "375"
} |
Q: Is there an implementation for Delphi:TClientDataSet in C++ for MVS? I want to migrate from Embarcadero Delphi to Visual Studio, but without a TClientDataset class it is very difficult.
This class represents an in-memory dataset.
I can't find any class like TClientDataset.
Can anyone help me find something like this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .htm or .html extension - which one is correct and what is different? When I save a file with an .htm or .html extension, which one is correct and what is different?
A: Neither is wrong, it's a matter of preference. Traditionally, MS software uses htm by default, and *nix prefers html.
As oded pointed out below, th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "62"
} |
Q: What free screen design tools are available I am looking for a free tool to quickly create a screen design in a workshop with a customer (for a web application).
The focus of the tool should be on a functional definition of screens and not on the design of them.
Do you have any suggestions for an appropriate tool?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to test if a file is a directory in a batch script? Is there any way to find out if a file is a directory?
I have the file name in a variable. In Perl I can do this:
if(-d $var) { print "it's a directory\n" }
A: Recently failed with different approaches from the above. Quite sure they worked in the past, maybe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "91"
} |
Q: Is there a performance difference between inc(i) and i := i + 1 in Delphi? I have a procedure with a lot of
i := i +1;
in it and I think
inc(i);
looks a lot better. Is there a performance difference or does the function call just get inlined by the compiler? I know this probably doesn't matter at all to my ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How to output HTML from JSP <%! ... %> block? I just started learning JSP technology, and came across a wall.
How do you output HTML from a method in <%! ... %> JSP declaration block?
This doesn't work:
<%!
void someOutput() {
out.println("Some Output");
}
%>
...
<% someOutput(); %>
Server says there's no “out... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: DIV with overflow:auto and a 100% wide table I hope someone might be able to help me here. I've tried to simplify my example as best I can.
I have an absolutely positioned DIV, which for this example I've made fill the browser window. This div has the overflow:auto attribute to provide scroll bars when the content i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: PyQt - QScrollBar Dear Stacktoverflow, can you show me an example of how to use a QScrollBar? Thanks.
A: >>> import sys
>>> from PyQt4 import QtCore, QtGui
>>> app = QtGui.QApplication(sys.argv)
>>> sb = QtGui.QScrollBar()
>>> sb.setMinimum(0)
>>> sb.setMaximum(100)
>>> def on_slider_moved(value): print "new slider... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to resolve a .lnk in c# I need to find out the file/directory name that a .lnk is pointing to using c#.
What is the simplest way to do this?
Thanks.
A: I wrote this for video browser, it works really well
#region Signitures imported from http://pinvoke.net
[DllImport("shfolder.dll", CharSet = CharSet.Auto)]
i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Tweak the brightness/gamma of the whole scene in OpenGL Does anyone know how I can achieve the following effect in OpenGL:
*
*Change the brightness of the rendered scene
*Or implementing a Gamma setting in OpenGL
I have tried by changing the ambient parameter of the light and the type of light (directional and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I do a full-text search of PDF files from Perl? I have a bunch of PDF files and my Perl program needs to do a full-text search of them to return which ones contain a specific string.
To date I have been using this:
my @search_results = `grep -i -l \"$string\" *.pdf`;
where $string is the text to look for.
H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to program a full-screen mode in Java? I'd like my application to have a full-screen mode. What is the easiest way to do this, do I need a third party library for this or is there something in the JDK that already offers this?
A: JFrame setUndecorated(true) method
A: Try the Full-Screen Exclusive Mode API. It... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How do I configure mongrels return mime types How do I configure the content-types returned from mongrel. Speficially I want it to return some javascripts files as application/x-javascript to try and reproduce a bug I am seeing on a remote server
A: I don't know if this is exactly the answer that you are looking fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Manager classes In a recent project I have nearly completed we used an architecture that as its top layer of interaction from the web/services layers uses XXXManager classes.
For example, there is a windows services that runs on a scheduled basis that imports data from several diverse data sources into our system. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Easiest way to decrypt PGP-encrypted files from VBA (MS Access) I need to write code that picks up PGP-encrypted files from an FTP location and processes them. The files will be encrypted with my public key (not that I have one yet). Obviously, I need a PGP library that I can use from within Microsoft Access. Can yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Securing an assembly so that it can't be used by a third party I have written an assembly I don't want other people to be able to use. My assembly is signed with a strong name key file, but how do I secure the code so that only my other assemblies signed with the same key can call the members in this assembly?
A: Y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Subversive connectors not working with newest Ganymede update I'm using Subversive plugin in Ganymede, but after today's update it stopped working - it just doesn't see any valid svn connectors (I've already been using 1.2.0 dev version of SVNKit, instead of a stable one, because Subversive / Ganymede could not hand... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139055",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to pretty print XML from Java? I have a Java String that contains XML, with no line feeds or indentations. I would like to turn it into a String with nicely formatted XML. How do I do this?
String unformattedXml = "<tag><nested>hello</nested></tag>";
String formattedXml = new [UnknownClass]().format(unformattedX... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "493"
} |
Q: JFrame.setDefaultLookAndFeelDecorated(true); when i use setDefaultLookAndFeelDecorated(true) method in Java
why is the Frame appear FullScreen when i maximize the Frame ?
and how can i disaple the FullScreen mode in this method ?
A: Setting setDefaultLookAndFeelDecorated to true causes the decorations to be handled... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: GetExitCodeProcess() returns 128 I have a DLL that's loaded into a 3rd party parent process as an extension. From this DLL I instantiate external processes (my own) by using CreateProcess API. This works great in 99.999% of the cases but sometimes this suddenly fails and stops working permanently (maybe a restart of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I retrieve latest from database using NHibernate after an update? Here is the scenario:
I have a winforms application using NHibernate. When launched, I populate a DataGridView with the results of a NHibernate query. This part works fine. If I update a record in that list and flush the session, the update... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Javascript Iframe innerHTML Does anyone know how to get the HTML out of an IFRAME I have tried several different ways:
document.getElementById('iframe01').contentDocument.body.innerHTML
document.frames['iframe01'].document.body.innerHTML
document.getElementById('iframe01').contentWindow.document.body.innerHTML
etc
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: web-inf and jsp page directives i have a number of jsp files under web-inf folder. Inside my web.xml i specify an errorppage for 404 amd 403 and java.lang.exception. Do i need to include a page directive for each of my jsp's or will they automatically get forwarded to the exception handling page because they are und... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's a good way to organize external JavaScript file(s)? In an ASP.NET web application with a lot of HTML pages, a lot of inline JavaScript functions are accumulating. What is a good plan for organizing them into external files? Most of the functions are particular to the page for which they are written, but a f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Experiences with OpenLaszlo? In a related question, I asked about Web Development. I came across something called OpenLaszlo yesterday and thought it looked interesting for doing some website development. The site has a bunch of good information on it and they've got some nice tutorials and such, but being a total... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What is the best way to prevent highlighting of text when clicking on its containing div in javascript? I am building a menu in HTML/CSS/JS and I need a way to prevent the text in the menu from being highlighted when double-clicked on. I need a way to pass the id's of several divs into a function and have highlighti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How to list all functions in a module? I have a Python module installed on my system and I'd like to be able to see what functions/classes/methods are available in it.
I want to call the help function on each one. In Ruby I can do something like ClassName.methods to get a list of all the methods available on that cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "557"
} |
Q: Can I protect against SQL injection by escaping single-quote and surrounding user input with single-quotes? I realize that parameterized SQL queries is the optimal way to sanitize user input when building queries that contain user input, but I'm wondering what is wrong with taking user input and escaping any single ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "152"
} |
Q: Repeater, ListView, DataList, DataGrid, GridView ... Which to choose? So many different controls to choose from! What are best practices for determining which control to use for displaying data in ASP.NET?
A: It all comes down to how you want to layout your data.
If you need to control the layout (like tables vers... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "113"
} |
Q: Do you databind your object fields to your form controls? Or do you populate your form controls manually by a method?
Is either considered a best practice?
A: Well, it depends. I have tended to use databinding wherever I could - it is darn convenient, but on occasion, I'll populate them manually. Particularly, I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Adding Cookie to ZSI Posts I've added cookie support to SOAPpy by overriding HTTPTransport. I need functionality beyond that of SOAPpy, so I was planning on moving to ZSI, but I can't figure out how to put the Cookies on the ZSI posts made to the service. Without these cookies, the server will think it is an unaut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Redundant code constructs The most egregiously redundant code construct I often see involves using the code sequence
if (condition)
return true;
else
return false;
instead of simply writing
return (condition);
I've seen this beginner error in all sorts of languages: from Pascal and C to PHP and Java. What... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What do you do with a developer who does not test his code? One of our developers is continually writing code and putting it into version control without testing it. The quality of our code is suffering as a result.
Besides getting rid of the developer, how can I solve this problem?
EDIT
I have talked to him about ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: What is a good technique or exercise when learning a new language? When you are learning a new language, what is there a particularly good/effective exercise to help get the hang of it? And why?
EDIT:
Preferably looking for things that are more complicated that 'Hello World'.
A: other than hello world, I try to por... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Relative path in t sql? How to get the relative path in t sql? Take for example a .sql file is located in the folder D:\temp, I want to get path of the file hello.txt in the folder D:\temp\App_Data. How to use the relative path reference?
Let's say I am executing the sql file inside the SQL server management studio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Writing XML files using XmlTextWriter with ISO-8859-1 encoding I'm having a problem writing Norwegian characters into an XML file using C#. I have a string variable containing some Norwegian text (with letters like æøå).
I'm writing the XML using an XmlTextWriter, writing the contents to a MemoryStream like this:
M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How to create a file with a given size in Linux? For testing purposes I have to generate a file of a certain size (to test an upload limit).
What is a command to create a file of a certain size on Linux?
A: dd if=/dev/zero of=my_file.txt count=12345
A: Use fallocate if you don't want to wait for disk.
Example:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "201"
} |
Q: Auto update for WinForms application When creating an auto updating feature for a .NET WinForms application, how does it update the DLLs and not affect the currently running application?
Since the application is running during the update process, won't there be a lock on the DLLs (because those DLLs will have to be ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Get the time of tomorrow xx:xx what is an efficient way to get a certain time for the next day in Java?
Let's say I want the long for tomorrow 03:30:00.
Setting Calendar fields and Date formatting are obvious.
Better or smarter ideas, thanks for sharing them!
Okami
A: I'm curious to hear what other people have to s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Can I run a script when I commit to subversion? I'd like to run a script that builds the documentation for my php project. It is basically just using wget to run phpdoc.
A: An alternative to using SVN hooks would be to use a continuous integration engine. Personally, I'm a fan of Hudson. CruiseControl is the classi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Setting all values in a std::map How to set all the values in a std::map to the same value, without using a loop iterating over each value?
A: I encountered the same problem but found that the range returned by boost::adaptors::values is mutable, so it can then be used with normal algorithms such as std::fill.
#in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Can I create a BIDS project in VS2008 with SQL 2005? From what I can find online about using VS2008 to create a integration/reporting services project it appears I need to have SQL 2008. Does anyone know of a work-around that would allow me to use VS2008 with SQL 2005?
A: Installing SQL Server 2005 client/workstat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Inno Setup: Capture control events in wizard page In a user defined wizard page, is there a way to capture change or focus events of the controls? I want to provide an immediate feedback on user input in some dropdowns (e.g. a message box)
A: Took me some time to work it out, but after being pointed in the right di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Handling TDD interface changes I've begun to use TDD. As mentioned in an earlier question the biggest difficulty is handling interface changes. How do you reduce the impact on your test cases as requirements change?
A: Changing an interface requires updating code that uses that interface. Test code isn't any dif... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: how is MalformedURLException thrown in Java I mean, how does Java decide which protocols are available? I run some code from inside Eclipse, and it works just fine. Then I run the same code from outside Eclipse, and I get "unknown protocol" MalformedURLException. Probably it has to do with the code base, or somethin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: #defines in linker scripts For an embedded system I need to place a few data structures at fixed addresses, so that a separate control CPU can access them at a known location. I'm using linker scripts for the embedded target to accomplish this, plus #defines of those same addresses for the control CPU.
It bothers me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Recommend an Open Source .NET Statistics Library I need to calculate averages, standard deviations, medians etc for a bunch of numerical data. Is there a good open source .NET library I can use? I have found NMath but it is not free and may be overkill for my needs.
A: How about http://ilnumerics.net/ or http://num... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Least favourite design pattern OK, I'm not looking for anti-patterns - I'm looking for things that aren't really patterns, or perhaps patterns that have been abused.
My personal least favourite is the "Helper" pattern.
E.g. I need to create a SQL query, so call SQLQueryHelper. This needs to process some strings, so ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Should I use Qt Jambi in Java? Is it a good idea for me to use Qt Jambi in Java as a toolkit?
I see that Qt Jambi is hard to learn, and Swing is easier than Qt Jambi, but I think that Qt Jambi is more powerful.
A: If you think being familiar with Qt would be useful in the future, when you might want to develop in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: WikiRank Search I am making a new concept in searching, I am calling lt as WikiRank,
In this , a extension will be installed on firefox browser. This extension will see watch the user activity, and he will send visiting url and its visit time also user can give ranking to the material also. So in nutshell,. there w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the best solution? Using WF StateMachine to follow user states on a web application I was looking at WF and was wondering if it would be best to use the StateMachine workflow to follow a users state. i.e. user is anonymous, user is known but not authenticated, user is known and authenticated.
would this be a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Log Post Parameters sent to a website Something I have always been interested in out of curiosity, is there a tool or utility that will allow me so log post parameters sent to a website? Not a personal website, any site on the web.
Reason for this, is that I want to be able to develop a .NET application without havi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is a Gantt Chart larger than a single page ever useful? I've worked on a few projects managed through the use of a Gantt chart. Some of these have has a massive number of tasks and the project manager spends all their time wrestling with MS Project instead of making good choices.
I can see the point if there are a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Which Coding convention to follow for PHP? Should I stick with Sun's Java code conventions for PHP code?
A: You have a number of options:
Zend: http://framework.zend.com/manual/en/coding-standard.html
Pear: http://pear.php.net/manual/en/standards.php
Wordpress: http://codex.wordpress.org/WordPress_Coding_Standards
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Is PHP international? Can you create websites with Chinese characters in PHP?
UPDATE: Perhaps I should have said - is it straight forward. Because some languages like Java make it extremely easy. Perhaps localisation in PHP isn't as easy as Java???
A: Yes on both counts. Read this guide on building Chinese website... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I capture the result of var_dump to a string? I'd like to capture the output of var_dump to a string.
The PHP documentation says;
As with anything that outputs its result directly to the browser, the output-control functions can be used to capture the output of this function, and save it in a string (for ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "666"
} |
Q: How universally is C99 supported? How universally is the C99 standard supported in today's compilers? I understand that not even GCC fully supports it. Is this right?
Which features of C99 are supported more than others, i.e. which can I use to be quite sure that most compilers will understand me?
A: For gcc, there... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: What are some good methods to hinder screen scrapers from grabbing specific pieces of content off my site? Pretty sure this question counts as blasphemy to most web 2.0 proponents, but I do think there are times when you could possibly not want pieces of your site being easily ripped off into someone else's arbitrar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Websphere 6.1 - Configuring Security When i try to configure security through the admin console of Websphere it just hangs.
Its at the last step of the below 4 steps
*
*Specify extent of protection
*Select user repository
*Configure user repository
*Summary
Here are the extracts from my console
[26/0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Connecting input _and_output between of two commands in shell/bash I have two (UNIX) programs A and B that read and write from stdin/stdout.
My first problem is how to connect the stdout of A to stdin of B and the stdout of B to the stdin of A. I.e., something like A | B but a bidirectional pipe. I suspect I could s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: ASP.NET Themes samples/starter kits I was wondering if there was somewhere I could get some starter kit / theme sample for ASP.NET.
I am not a designer, but I need to build a prototype for a project, and if I do it myself it'll certainly be awful
Do you know where I could find that (ASP.NET specific)?
A: Check http... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Namespace scope in SOAP / XML Is this valid SOAP / XML?
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<CreateRoute xmlns=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to code the partial extensions that Linq to SQL autogenerates? I made a class from Linq to SQL Clasees with VS 2008 SP1 Framework 3.5 SP1, in this case I extended the partial
partial void UpdateMyTable(MyTable instance){
// Business logic
// Validation rules, etc.
}
My problem is when I execute db.SubmitC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: User or account or person or what? Here on Stack Overflow, you're a "user." On 43things.com you're a "person." On other sites, you're an "account." And then some web apps skip the usage of this kind of signifier, and it's just http://webapp.com/yourusername
Do you think that these signifiers imply anything at all? D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to programmatically run an Xpand workflow on a model in a second workbench? I have an Xtext/Xpand (oAW 4.3, Eclipse 3.4) generator plug-in, which I run together with the editor plug-in in a second workbench. There, I'd like to run Xpand workflows programmatically on the model file I create. If I set the model fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Classloader issues - How to determine which library versions (jar-files) are loaded I've just solved another *I-though-I-was-using-this-version-of-a-library-but-apparently-my-app-server-has-already-loaded-an-older-version-of-this-library-*issue (sigh).
Does anybody know a good way to verify (or monitor) whether your... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: How do I upgrade from Drupal 5 to 6? I'm running Drupal 5 on my website and want to upgrade to V6. I've not got any obscure or unsupported modules running.
What do I do though? I can't seem to find any step-by-step upgrade methods.
Do I just have to overwrite all the files and then re-run the installer again?
A: Dr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Whats the best way to create interactive application prototypes? The question should be interpreted from a general point of view and not targeted solely at web apps or desktop apps.
I have been looking around to find a simple and easy way of creating interactive prototypes for web applications. I'd like to use a tec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Creating an online catalogue using Drupal, what are the best modules/techniques? I have a large collection of retro games consoles and computers, I want to create some sort of catalogue to keep track of them using Drupal. I could do it as a series of pages in Drupal, but would rather have some sort of more structure... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I programmatically change ASP.NET ajax AccordionPane with javascript? I've got an asp.net ajax style AccordionPane control that I am trying to get/set based on some user interactions. However it seems not let me do this with javascript:
function navPanelMove() {
var aPane = $get('ctl00_Accordion1_Accordio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Balanced Distribution Algorithm I'm working on some code for a loosely coupled cluster. To achieve optimal performance during jobs, I have the cluster remap its data each time a child enters or exits. This will eventually be made optional, but for now it performs its data balancing by default. My balancing is basica... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139580",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Wise to run MS Velocity on my development machine? I've never developed a web application that uses distributed memory.
Is it common practice to run a tool such as Microsoft Velocity on my local machine as I develop, should I run Velocity on another server as I develop, or should I just develop as normal (default s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best way to clone/deep copy a .NET generic Dictionary? I've got a generic dictionary Dictionary<string, T> that I would like to essentially make a Clone() of ..any suggestions.
A: This works fine for me
// assuming this fills the List
List<Dictionary<string, string>> obj = this.getData();
List<Dic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "264"
} |
Q: ProcessStartInfo hanging on "WaitForExit"? Why? I have the following code:
info = new System.Diagnostics.ProcessStartInfo("TheProgram.exe", String.Join(" ", args));
info.CreateNoWindow = true;
info.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
info.RedirectStandardOutput = true;
info.UseShellExecute = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "218"
} |
Q: Where to find packages names and versions for RedHat? How can I find out whether a specific RedHat release (RHEL4, RHEL5...) contains a certain package (or a certain version of a package)? For Debian and Ubuntu, there's packages.debian.org and packages.ubuntu.com; is there a similar web site for RedHat?
Note: I don'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: What is the difference between myCustomer.GetType() and typeof(Customer) in C#? I've seen both done in some code I'm maintaining, but don't know the difference. Is there one?
let me add that myCustomer is an instance of Customer
A: For the first, you need an actual instance (ie myCustomer), for the second you don't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "75"
} |
Q: Does the CAutoPtr class implement reference counting? Modern ATL/MFC applications now have access to a new shared pointer class called CAutoPtr, and associated containers (CAutoPtrArray, CAutoPtrList, etc.).
Does the CAutoPtr class implement reference counting?
A: Having checked the CAutoPtr source, no, reference c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Delayed jump to a new web page How do I cause the page to make the user jump to a new web page after X seconds. If possible I'd like to use HTML but a niggly feeling tells me it'll have to be Javascript.
So far I have the following but it has no time delay
<body onload="document.location='newPage.html'">
A: If you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's the difference between TRUNCATE and DELETE in SQL What's the difference between TRUNCATE and DELETE in SQL?
If your answer is platform specific, please indicate that.
A: Yes, DELETE is slower, TRUNCATE is faster. Why?
DELETE must read the records, check constraints, update the block, update indexes, and gen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "373"
} |
Q: .NET Architectural issue: 2 Web Services, how do I change which one is used at run time? I am working with Reporting Services and Sharepoint, I have an application that leverages reporting services however a client would like our application integrated into sharepoint. Currently we are tightly coupled to the ReportS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: When writing XML, is it better to hand write it, or to use a generator such as simpleXML in PHP? I have normally hand written xml like this:
<tag><?= $value ?></tag>
Having found tools such as simpleXML, should I be using those instead? What's the advantage of doing it using a tool like that?
A: If you're dealing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Convert Pixels to Points I have a need to convert Pixels to Points in C#. I've seen some complicated explanations about the topic, but can't seem to locate a simple formula. Let's assume a standard 96dpi, how do I calulate this conversion?
A: WPF converts points to pixels with the System.Windows.FontSizeConverter. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "135"
} |
Q: How to deal with .NET TabPage controls all ending up in one Form class? I'd like to structure a Form with a TabControl but I'd like to avoid having every control on each TabPage end up being a member of the Form I'm adding the TabControl to. So far I've identified these options, please comment or suggest alternative... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why would the Win32 OleGetClipboard() function return CLIPBRD_E_CANT_OPEN? Under what circumstances will the Win32 API function OleGetClipboard() fail and return CLIPBRD_E_CANT_OPEN?
More background: I am assisting with a Firefox bug fix. Details here:
bug 444800 - cannot retrieve image data from clipboard in loss... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Data in a table with carriage return? In SQL SERVER Is it possible to store data with carriage return in a table and then retrieve it back again with carriage return.
Eg:
insert into table values ('test1
test2
test3
test4');
When I retrieve it, I get the message in a line
test1 test2 test3 test4
The carriag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: tool for reading glassfish logs? I'm dealing with huge glassfish log files (in windows, eek!) and well ... Wordpad isn't cutting it.
Are there any tools out there that can handle these log files in a more intelligent manner? Functionality that would be welcome:
*
*View all lines of a certain log level (info, war... | {
"language": "en",
"url": "https://stackoverflow.com/questions/139683",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.