text stringlengths 8 267k | meta dict |
|---|---|
Q: Customized command line parsing in Python I'm writing a shell for a project of mine, which by design parses commands that looks like this:
COMMAND_NAME ARG1="Long Value" ARG2=123 ARG3=me@me.com
My problem is that Python's command line parsing libraries (getopt and optparse) forces me to use '-' or '--' in front of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Controlling the WCF XmlSerializer I have some REST web services implemented in WCF. I wish to make these services return "Bad Request" when the xml contains invalid elements.
The xml serialization is being handled by XmlSerializer. By default XmlSerializer ignores unknown elements. I know it is possible to hook XmlS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: can I configure hibernate properties to connect without using an instance name to sql server 2005? Can I configure hibernate properties to connect without using an instance name to sql server 2005? I need to force it to use localhost as the hostname and not specify the instance (same as you can do with the sql serv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How would you transform a pre-existing web app into a multilingual one? I am going to work on a project where a fairly large web app needs to tweaked to handle several languages. The thing runs with a hand crafted PHP code but it's pretty clean.
I was wondering what would be the best way to do that?
*
*Making som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Sending a keyboard event from java to any application (on-screen-keyboard) I am working on developing an on-screen keyboard with java. This keyboard has a JComponent for every possible key. When a mouse down is detected on the button, I want to send a specific keyboard code to the application currently on focus. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: File system 'overlays' Concrete use case:
In the Eclipse IDE, new 'plugins' can be added by copying a plugin's file(s) into the $ECLIPSE_HOME/plugins directory. However, I want to keep my original Eclipse installation 'clean' without additional plugins because I want to run this basic installation on its own at time... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Case-insensitive Glob on zsh/bash I need to list all files whose names start with 'SomeLongString'. But the case of 'SomeLongString' can vary. How?
I am using zsh, but a bash solution is also welcome.
A: bash:
shopt -s nocaseglob
A: ZSH:
$ unsetopt CASE_GLOB
Or, if you don't want to enable case-insensitive globb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Classic ASP Intranet and New ASP.NET Applications We have an existing classic ASP intranet consisting of hundreds of pages. Its directory structure looks like this...
/root
app_1
app_2
...
img
js
style
Obviously app_1 and so on have better names in the actual directory structure.
Even though... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I expose iterators without exposing the container used? I have been using C# for a while now, and going back to C++ is a headache. I am trying to get some of my practices from C# with me to C++, but I am finding some resistance and I would be glad to accept your help.
I would like to expose an iterator for a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Is the web hosting location important these days? I was recently looking at some web hosting solutions and some of the providers offered various hosting locations e.g. US or UK based servers.
My question is: does it really make a difference from the performance point of view?
Lets say that I am expecting most of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Capistrano + thin + nginx with user not allowed to sudo howto? I have a scenario like this which I want to use capistrano to deploy my ruby on rails application:
*
*The web application is on a thin cluster with the config file stored under /etc/thin. also an init script is in /etc/init.d/thin, so it would start a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .order_by() isn't working how it should / how I expect it to In my Django project I am using Product.objects.all().order_by('order') in a view, but it doesn't seem to be working properly.
This is it's output:
Product Name
Sort
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Search for words in SQL Server index I need something in between a full text search and an index search:
I want to search for text in one column of my table (probably there will be an index on the column, too, if that matters).
Problem is, I want to search for words in the column, but I don't want to match parts.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to add a horizontal gap with a JLabel I have a JLabel (actually, it is a JXLabel).
I have put an icon and text on it.
<icon><text>
Now I wand to add some spacing on the left side of the component, like this:
<space><icon><text>
I DON'T accept suggestion to move the JLabel or add spacing by modifying the image.
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: C# StringTemplate - how to set eol character I'm using the C# version of the StringTemplate library (http://www.stringtemplate.org/) to generate C++ code. My templates work fine, until I started using the
<attribute:template(argument-list)>
syntax to apply templates to multiple values in a 'list' ('multi-valued-ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What's the easiest way to import a new table into MySQL v5 from CSV? I'm running MySQL 5 on a linux server on my local network. Running windows XP for my desktop. Had a look at the MySQL GUI Tools but I dont think they help. I cannot install apache on the remote server & use something like PHPmyAdmin.
A: have a l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Conditionally set an attribute on an element with JSP Documents (JSPX) In HTML forms, buttons can be disabled by defining the "disabled" attribute on them, with any value:
<button name="btn1" disabled="disabled">Hello</button>
If a button is to be enabled, the attribute should not exist as there is no defined value... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: .NET Webservices development approach I'm planning to write a web service aka api for my application which was developed with .Net and SQLServer. .Net provides a simple way to create webservices by creating asmx files. But i need to know how best it can be designed or what are the best practices in creating a web se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Emacs and Python I recently started learning Emacs. I went through the tutorial, read some introductory articles, so far so good.
Now I want to use it for Python development. From what I understand, there are two separate Python modes for Emacs: python-mode.el, which is part of the Python project; and python.el, whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: iSeries SQL Procedure - Check if already exists I have an script that falls over if any of the procedures it is trying to create already exists. How can I check/drop if this procedure is already created?
A: I would guess something along the lines of:
IF EXISTS
(
SELECT *
FROM SYSPROCS
WHERE SPECIFIC_SCH... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Where can I find .NET Framework class diagram? I just need a file (picture, pdf or other type file for printing) of the framework structure.
It is very usefull while learning .Net framework.
A: If you are bold and adventurous you can use a tool I found on CodeProject. Send the framework classes to it and, voila, a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Parsing Text in MS Access I have column that contains strings. The strings in that column look like this:
FirstString/SecondString/ThirdString
I need to parse this so I have two values:
Value 1: FirstString/SecondString
Value 2: ThirdString
I could have actually longer strings but I always nee it seperated like [str... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Most pythonic way of counting matching elements in something iterable I have an iterable of entries on which I would like to gather some simple statistics, say the count of all numbers divisible by two and the count of all numbers divisible by three.
My first alternative, While only iterating through the list once a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How do I resolve the error "Expression must evaluate to a node-set" when checking for the existence of a node? I'm attempting to check for the existence of a node using the following .NET code:
xmlDocument.SelectSingleNode(
String.Format("//ErrorTable/ProjectName/text()='{0}'", projectName));
This always ra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: .NET 3.5 published in 11/07 .NET 3.0 in 11/06. Why are most people still using .NET 2.0? People have been developing own solutions to the following problems:
*
*Consistent messaging frameworks for remote information exchange (webservices,rpc,...)
*SDK's for state managements for things such as Finite State Mach... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157055",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Replace keys in a tuple in Erlang I have a list of tuples eg. [{1,40},{2,45},{3,54}....{7,23}] where 1...7 are days of the week (calculated by finding calendar:day_of_the_week()). So now I want to change the list to [{Mon,40},{Tue,45},{Wed,54}...{Sun,23}]. Is there an easier way to do it than lists:keyreplace?
A: S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: In javaDoc, what's the best way of representing attributes in XML? When you're adding javaDoc comments to your code and you're outlining the structure of an XML document that you're passing back, what's the best way to represent attributes? Is there a best practice for this?
My general structure for my javaDoc comme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where can I get comdef.h? I downloaded some example code from the internet, but when I compiled it I ran into some trouble. My compiler tells me: comdef.h: No such file or directory.
I searched a bit on the internet, but I couldn't find anyone else with the same problem and I have no clue where I can obtain this hea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to output a boolean in T-SQL based on the content of a column? I made a view to abstract columns of different tables and pre-filter and pre-sort them. There is one column whose content I don't care about but I need to know whether the content is null or not. So my view should pass an alias as "true" in case the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "59"
} |
Q: Date change notification in a Tkinter app (win32) Does anyone know if it is possible (and if yes, how) to bind an event (Python + Tkinter on MS Windows) to a system date change?
I know I can have .after events checking once in a while; I'm asking if I can somehow have an event fired whenever the system date/time cha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can't find stuff in session that I just put there (but only sometimes) We have a strange problem occurring once in a while on our servers. It usually happens when one or more of our web applications are upgraded. Debugging the problem has gotten me this far...
During the processing of a request:
*
*In the ASP.NET... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I Override with derived types? As far as i know it is not possible to do the following in C# 2.0
public class Father
{
public virtual Father SomePropertyName
{
get
{
return this;
}
}
}
public class Child : Father
{
public override Child SomePropertyName
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Aborting upload from a servlet to limit file size I'd like to limit the size of the file that can be uploaded to an application. To achieve this, I'd like to abort the upload process from the server side when the size of the file being uploaded exceeds a limit.
Is there a way to abort an upload process from the serv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Customized DataGridView column does not accept the entered decimal seperator under Windows Vista For a project I built a custom DataGridView column which contains NumericUpDown controls. It is implemented similar to the suggestion from Microsoft
The column works fine under Windows XP. It accepts the entered digits a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Partial .csproj Files Is it possible to split the information in a .csproj across more than one file? A bit like a project version of the partial class feature.
A: Yes, you can split information across several files. You can use Import Element (MSBuild).
Note that Visual Studio will give you annoying security warn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: What does the term "input-synchronized calls" mean? I found this in an article on Multithreaded Apartments, but can’t find a definition for “input-synchronized calls”.
(Article is at http://msdn.microsoft.com/en-us/library/ms693421(VS.85).aspx)
As used in the article
- Multithreaded apartments cannot make input-syn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to do something with Bash when a text line appears in a file I want to run a command as soon as a certain text appears in a log file. How do I do that in Bash?
A: Using only tail:
tail -f file.log | while read line; do if [[ $line == *text* ]]; then
mycommand
fi; done
A: Use command
tail -f file.log | gre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Websphere with Classic ASP Is it practical (or possible) to create a Websphere Portlet for a Classic ASP website?
A: Websphere is Java based, but you can mix any web content using IFRAMEs or Ajax to inject HTML in your ASP page.
Practical? I don't think so.
A: Probably, but you would still need to have seperate ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you setup a shared Working Copy in Subversion I still very new using Subversion.
Is it possible to have a working copy on a network available share (c:\svn\projects\website) that everyone (in this case 3 of use) can checkout and commit files to? We don't need a build server because it is an asp site and the d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: PHP Development - lot of (newbie) questions I'm a Engineering student and I'm attending a Database and Information Systems class this semester. It's required that I produce a website/application that uses a database, using PHP/PGSQL. My questions are:
*
*which IDE would you recommend?
*does anyone have good tips... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Create a .eml (email) file in Java Anybody knows how to do this? I got all the information of the email (body, subject, from , to, cc, bcc) and need to generate an .eml file out of it.
A: EML files are just plain text files. The headers are separated from the body by a blank line. Headers look like this:
From: "DR ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Double checked locking Article I was reading this article about "Double-Checked locking" and out of the main topic of the article I was wondering why at some point of the article the author uses the next Idiom:
Listing 7. Attempting to solve the out-of-order write problem
public static Singleton getInstance() ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: how to send email with graphic via php I would like to send HTML email with graphic elements included. I have no idea to attach garaphics to this email.
A: You probably don't want to do an inline attachment by hand, it's far easier, and less error prone to use a library, like PHPMailer.
It can attach the inline ima... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Open-source fractal maps I'm interested in creating a game that uses fractal maps for more realistic geography. However, the only fractal map programs I have found are Windows-only, for example Fractal Mapper. Needless to say, they are also not open-sourced.
Are there any open-sourced fractal map creators available,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I support the support department better? With the best will in the world, whatever software you (and me) write will have some kind of defect in it.
What can I do, as a developer, to make things easier for the support department (first line, through to third line, and development) to diagnose, workaround and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to log MethodName when wrapping Log4net? I have wrapped Log4net in a static wrapper and want to log
loggingEvent.LocationInformation.MethodName
loggingEvent.LocationInformation.ClassName
However all I get is the name of my wrapper.
How can I log that info using a forwardingappender and a static wrapper clas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Which CASE Tools do you use? Which Computer-aided Software Engineering tools do you use and why? In what ways do they increase your productivity or help you design your programs? Or, in case you do not use CASE tools, what are your reasons for this?
A: The best CASE tool I had to work with is the Enterprise Archite... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is it a good design to put event handling code into an own method? Image a Button on your windows form that does something when being clicked.
The click events thats raised is typically bound to a method such as
protected void Button1_Click(object
sender, EventArgs e) {
}
What I see sometimes in other peoples' c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's the best way to loop through a set of elements in JavaScript? In the past and with most my current projects I tend to use a for loop like this:
var elements = document.getElementsByTagName('div');
for (var i=0; i<elements.length; i++) {
doSomething(elements[i]);
}
I've heard that using a "reverse while" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: What's the difference between rapidSSL and geotrust certificates? I want to buy a 128bit SSL certificate for a website selling services. I checked http://www.rapidssl.com/ssl-certificate-products/ssl-certificate.htm and http://www.geotrust.com/ssl/compare-ssl-certificates.html. Why are the prices for QuickSSL (Geotr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: SQL trigger for deleting old results We have a database that we are using to store test results for an embedded device. There's a table with columns for different types of failures (details not relevant), along with a primary key 'keynum' and a 'NUM_FAILURES' column that lists the number of failures. We store pass... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to 3270 screen-scrape from a Linux-based web app I have a LAMP (PHP) web app which need to interface with programs on an IBM 3270 mainframe (via Microsoft SNA Server). One solution I'm looking at is screen-scraping via 3270. (I'm integrating the present with the past!)
Many years ago, I wrote C code which used... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Tool for edit CSS and preview in IE and Firefox I'm looking for a VS2008 Plugin or other tool that allows me to edit CSS and preview the changes in IE and Firefox.
I'm not full time web designer, so free or open source is a plus.
Visual Studio integration is a big plus
Reviewed so far:
CSSVista
Pros:
*
*Free
*N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Reports in a .NET Winforms App I'm writing a Winforms application and I've been writing these awful HTML reports where I have templates set up and use String.Replace to get my variables into the templates, then output the results to a WebBrowser control. I really don't like this set up.
I'd love to be able to use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Hibernate SessionFactoryBean for multiple locations of mapping files We have a project consisting of multiple subprojects. With each subproject we potentially have some hibernate mapping files but in the end only one actual hibernate session. Those subprojects could be combined in several ways, some depend on each o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Template Lib (Engine) in Python running with Jython Im searching a Template Lib or Template Engine for generating HTML (XML) that runs under Jython (Jython 2.5 Alpha is ok).
A: Have you tried Cheetah, I don't have direct experience running it under Jython but there seem to be some people that do.
A: Jinja is pret... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the Best binary/ordinary XML implementation for Java ME? Following Izb's question about Best binary XML format for JavaME, I'm looking for an implementation for either binary XML-like formats or just plain XML. My metrics for such implementation, by most important first, are:
*
*Supported phones. A basic ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Resumable downloads when using PHP to send the file? We are using a PHP scripting for tunnelling file downloads, since we don't want to expose the absolute path of downloadable file:
header("Content-Type: $ctype");
header("Content-Length: " . filesize($file));
header("Content-Disposition: attachment; filename=\"$fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "113"
} |
Q: bash script runs from shell but not from cron job Cron installation is vixie-cron
/etc/cron.daily/rmspam.cron
#!/bin/bash
/usr/bin/rm /home/user/Maildir/.SPAM/cur/*;
I Have this simple bash script that I want to add to a cron job (also includes spam learning commands before) but this part always fails with "File or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Is mathematics necessary for programming? I happened to debate with a friend during college days whether advanced mathematics is necessary for any veteran programmer. He used to argue fiercely against that. He said that programmers need only basic mathematical knowledge from high school or fresh year college math, n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "117"
} |
Q: non-database field on ClearQuest form Is there a way to use form fields that does not correspond to database field for temporary processings?
I.e. I want to add:
*
*temp fields item1, item2
*database field sum
*button with record hook that sets sum = item1 + item2
A: As far as I know it's simply not possible w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Accurate timestamping in Python logging I've been building an error logging app recently and was after a way of accurately timestamping the incoming data. When I say accurately I mean each timestamp should be accurate relative to each other (no need to sync to an atomic clock or anything like that).
I've been using ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Borderless Taskbar items: Using a right click menu (VB6) Even when BorderStyle is set to 0, it is possible to force a window to show up on the taskbar either by turning on the ShowInTaskbar property or by using the windows api directly: SetWindowLong Me.hwnd, GWL_EXSTYLE, GetWindowLong(Me.hwnd, Win.GWL_EXSTYLE) Or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I find out if a SQLite index is unique? (With SQL) I want to find out, with an SQL query, whether an index is UNIQUE or not. I'm using SQLite 3.
I have tried two approaches:
SELECT * FROM sqlite_master WHERE name = 'sqlite_autoindex_user_1'
This returns information about the index ("type", "name", "tbl_name"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Python 2.5 dictionary 2 key sort I have a dictionary of 200,000 items (the keys are strings and the values are integers).
What is the best/most pythonic way to print the items sorted by descending value then ascending key (i.e. a 2 key sort)?
a={ 'keyC':1, 'keyB':2, 'keyA':1 }
b = a.items()
b.sort( key=lambda a:a[0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: What are the benefits of using Perforce instead of Subversion? My team has been using SVN for a few years. We now have the option of switching to Perforce.
What would be the benefits (and pitfalls) of making such a switch?
A: I use perforce at work, svn at home.
The perforce GUI is pretty nice, but only once you ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "66"
} |
Q: Server Error in '/' Application I have created a Web Application in asp.net 2.0. which is working fine on my Local machine. However when trying to deploy it on sever that has windows 2003 sever, I get the error:
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a res... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem joining on the highest value in mysql table I have a products table...
alt text http://img357.imageshack.us/img357/6393/productscx5.gif
and a revisions table, which is supposed to track changes to product info
alt text http://img124.imageshack.us/img124/1139/revisionslz5.gif
I try to query the database for a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Should I use an FTP server as a maven host? I would like to host a Maven repository for a framework we're working on and its dependencies. Can I just deploy my artifacts to my FTP host using mvn deploy, or should I manually deploy and/or setup some things before being able to deploy artifacts? I only have FTP access... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What types of sockets are available in VxWorks? Vxworks supports standard IP v4 and IP v6 sockets, but sockets are also used for other purposes.
What other types of sockets are available?
A: The socket types you can use depend on the communication domain you create your socket in.
The listed socket types are:
SOCK... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Dynamically instantiate a Ruby class similar to Java How can this line in Java be translated to Ruby:
String className = "java.util.Vector";
...
Object o = Class.forName(className).newInstance();
Thanks!
A: Object::const_get('String').new()
A: If you're using ActiveSupport (i.e. Rails), there is a m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Is there a way to establish a HTTPS Connection with Java 1.3? I have to work on an old 1.3 JVM and I'm asked to create a secure connection to another server. Unfortunately the HttpsURLConnection only appears sinc JVM 1.4.
Is there another way to create a secure connection? Is there a library that I could you to add... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Open multiple documents from a single file How would I go about creating multiple documents when a single file is opening in a MFC application?
We have an aggregate file format which can contain information for multiple documents. When this file is opened, I would like multiple CDocuments created for each record in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing Objects via QueryString I have object A which in turn has a property of type Object B
Class A
property x as Object B
End Class
On my ASP.NET page when I select a gridview item which maps to an object of type A I serialize the object onto the QueryString and pass it to the next page.
However I run into pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Using lock on the key of a Dictionary I have a Dictionary<string, someobject>.
EDIT: It was pointed out to me, that my example was bad. My whole intention was not to update the references in a loop but to update different values based on differnt threads need to update/get the data. I changed the loop to a method.
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Using Maven 1.x without extra plugins, how does someone build an executable jar? Using Maven 1.x with just the bundled/standard plugins, what configuration is necessary to build an executable Jar?
Answers should cover:
*
*including dependencies in target Jar
*proper classpath configuration to make dependency Jar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to freeze GridView header? As in a title, does anyone know how to freeze GridView header in ASP.NET ?
A: You can do it in the css
Freeze Header:
1. Define class .Freezing in Stylesheet:
.Freezing
{
position:relative ;
top:expression(this.offsetParent.scrollTop);
z-index: 10;
}
2.Assign Datagrid He... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Singular/plural searches and stemming I'm discovering a simple solution for singular-plural keywords searches. I heard about stemming but I don't want to use all its features, only plural/singular transformation. The language is Dutch. Have looked at http://www.snowball.tartarus.org before. Does anyone know the simp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where can i find information on creating plugins for SQL Server Management Studio? I have read that while plug-ins are not supported for SQL Server Management Studio, it can be done.
Does anyone have any resources or advice on how to go about it using C#?
A company that is currently offering plug-ins to Management S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How do I convert an XmlNodeList into a NodeSet to use within XSLT? I've got a XmlNodeList which I need to have it in a format that I can then re-use within a XSLT stylesheet by calling it from a C# extension method.
Can anyone help? I have read that it might have something to do with using a XPathNavigator but I'm s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C# functions with static data In VB.Net, I can declare a variable in a function as Static, like this:
Function EncodeForXml(ByVal data As String) As String
Static badAmpersand As Regex = new Regex("&(?![a-zA-Z]{2,6};|#[0-9]{2,4};)")
data = badAmpersand.Replace(data, "&")
''// more processing
r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What is a private assembly in .Net? I understand access modifiers at the class level and below, but why would an entire assembly be private? I assume by default, assemblies are public?
A: Well, in the context of assemblies, private means the assembly cannot be referenced by another application outside the directory... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: SQL 2005 DB Partitioning for SharePoint Background
I have a massive db for a SharePoint site collection. It is 130GB and growing at 10gb per month. 100GB of the 130GB is in one site collection. 30GB is the version table. There is only one site collection - this is by design.
Question
Am I able to partition a data... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Handling Long Running Reports I am working on a ASP.net application written in C# with Sql Server 2000 database. We have several PDF reports which clients use for their business needs. The problem is these reports take a while to generate (> 3 minutes). What usually ends up happening is when the user requests the re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: When using cvs2svn how can you rename symbols such that a branch and tag resolve to the same name? I am working on converting a CVS repository that has the following symbols (among others):
tcm-6.1.0-branch -- a branch
tcm-6.1.0 -- a tag
Using the standard transformations cvs2svn identifies them properly. Howeve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Data generators for SQL server? I would like to receive suggestions on the data generators that are available, for SQL server. If posting a response, please provide any features that you think are important.
I have never used a application like this, so I am looking to be educated on the topic. Thank you.
(My goal ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: Getting specific revision via http with VisualSVN Server I'm using VisualSVN Server to host an SVN repo, and for some automation work, I'd like to be able to get specific versions via the http[s] layer.
I can get the HEAD version simply via an http[s] request to the server (httpd?) - but is there any ability to spec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: How to dynamically create an Actionscript 2 MovieClip based class with I have a helper method has been created which allows a MovieClip-based class in code and have the constructor called. Unfortunately the solution is not complete because the MovieClip callback onLoad() is never called.
(Link to the Flashdevelop ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MVC User Controls + ViewData Hi im new to MVC and I've fished around with no luck on how to build MVC User Controls that have ViewData returned to them. I was hoping someone would post a step by step solution on how to approach this problem. If you could make your solution very detailed that would help out greatly.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Best way to encode text data for XML I was looking for a generic method in .Net to encode a string for use in an Xml element or attribute, and was surprised when I didn't immediately find one. So, before I go too much further, could I just be missing the built-in function?
Assuming for a moment that it really doe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "72"
} |
Q: Sharepoint WebParts Say you have several webparts, one as a controller and several which take information from the controller and act on it. This is fairly easy to model using the Consumer/Producer interface introduced in ASP 2.0.
How would you be able to add interactions the other way around whilst still maintaini... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is the best way to sample/profile a PyObjC application? Sampling with Activity Monitor/Instruments/Shark will show stack traces full of C functions for the Python interpreter. I would be helpful to see the corresponding Python symbol names. Is there some DTrace magic that can do that? Python's cProfile module c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: "Method Not Implemented" error - Firefox 3 Getting sporadic errors from users of a CMS; Ajax requests sometimes result in a "501 Method not implemented" response from the server. Not all the time; usually works.
Application has been stable for months. Users seem to be getting it with Firefox 3. I've seen a couple r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: In MATLAB, how do I change the background color of a subplot? I'm trying to change the background color of a single subplot in a MATLAB figure.
It's clearly feasible since the UI allows it, but I cannot find the function to automate it.
I've looked into whitebg, but it changes the color scheme of the whole figure, n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Using ofstream to write text to the end of a file How do I use the ofstream to write text to the end of a file without erasing its content inside?
A: You can pass the flag ios::app when opening the file:
ofstream ofs("filename", ios::app);
A: You want to append to the file. Use ios::app as the file mode when crea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Modifying Request/Response Streams in WebBrowser Control Using MSHTML I need to find a way to get at the request/response streams inside of the webbrowser winforms control and see that it's not real intuitive. For example, I need to be able to modify post data when a user clicks a submit button. It looks like you ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Checking for a duplicate element in the OUTPUT I've got some XML, for example purposes it looks like this:
<root>
<field1>test</field1>
<f2>t2</f2>
<f2>t3</f2>
</root>
I want to transform it with XSLT, but I want to suppress the second f2 element in the output - how do I check inside my template to see ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What are some reasons why a sole developer should use TDD? I'm a contract programmer with lots of experience. I'm used to being hired by a client to go in and do a software project of one form or another on my own, usually from nothing. That means a clean slate, almost every time. I can bring in libraries I've de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Diagnosing Bad OutputPaths: "The OutputPath property is not set for this project" (in the wonderful world of web deployment projects) Starting with the error:
Error 81 The OutputPath property is
not set for this project. Please
check to make sure that you have
specified a valid
Configuration/Platform comb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Which Ajax framework to build GUI of web applications that use struts? Which Ajax framework/toolkit can you recommend for building the GUI of web applications that are using struts?
A: I'd say that your AJAX/javascript library choice should depend less on how your backend is implemented and more on what your UI is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.