text string | meta dict |
|---|---|
Q: Statistical tools for programmers I'm trying to evaluate the purchase of a statistical tool. This will be used in part by non-programming users (doing clinical studies) and in part by programmers, so I'm trying to find a good compromise between usability and automation. Of course, cost is an issue, but if I can buil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How does one use FileStream to append to a file without an exclusive lock? What I'm trying to do with FileStream in C#/.NET is to open two streams: one appending to a file and the other reading those writes asynchronously (for unit testing some network connection handling code). I can't figure out how to get the wr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Share your Vista 64bit experiences I've got a Dell XPS M1330 with a 2.2ghz processor, 4gig ram, GeForce 8400M, and a 64GB SSD disk.
I'm primarily doing web-development, sharepoint development, integration (Microsoft BI tools) and biztalk. I use virtual machines for these purposes. I've been using Vista 32Bit up unti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem using SQLite :memory: with NHibernate I use NHibernate for my dataacess, and for awhile not I've been using SQLite for local integration tests. I've been using a file, but I thought I would out the :memory: option. When I fire up any of the integration tests, the database seems to be created (NHibernate sp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Running Eclipse under Valgrind Has anybody here succeeded in running Eclipse under Valgrind? I'm battling a particularly hairy crash involving JNI code, and was hoping that Valgrind perhaps could (again) prove its excellence, but when I run Eclipse under Valgrind, the JVM terminates with an error message about not b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Resources for windows form design and increased usability The majority of resources that I have for UI design all deal with the web world. There are a number of advantages there because of the dynamic nature of the presentation layer.
However, I would like to design better windows form programs. I want a profession... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Automate getting report from webpage I'm a Java developer and I have a question about automating a task I've been given.
I'm having to 3 times daily, login to this website we have at work, select a few form elements and then click on submit to get a report printed out.
I'm wondering how I can write some sort of sc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Emacs - Ubuntu initialization Odd behavior loading emacs on ubuntu, there seems to be some initialization that goes on that is not in the .emacs nor in any of the files emacs reports loading through "emacs --debug-init". I've found some references to font-related resizing but this behavior doesn't seem to be limited... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do I get a filehandle from the command line? I have a subroutine that takes a filehandle as an argument. How do I make a filehandle from a file path specified on the command line? I don't want to do any processing of this file myself, I just want to pass it off to this other subroutine, which returns an array ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Tools to assist managing the application promotion process in an enterprise environment I am curious on how others manage code promotion from DEV to TEST to PROD within an enterprise.
What tools or processes do you use to manage the "red tape", entry/exit criteria side of things?
My current organisation is half stuc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's a good way in PowerShell to check for an IP address switch on a webserver? Problem
Our web host provider is changing the IP address of one of the servers we are on. We have been given a time frame for when the switch will take place, but no exact details. Therefore, our current poor man's check requires a per... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189308",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: No stack trace generated on client site for NullPointerException? I've been learning Java for about a month now, and not very familiar with a client/server situation like this one.
Basically I ran into a situation where our client java software (GUI) displayed a nullpointerexception popup but no stack trace on the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a mode for Visual Basic (VB6) in Emacs? I would like to use Emacs to edit some VB6 files but Emacs does not appear to have any of built-in niceties of other languages such as syntax highlighting, etc.
Any plugins/extensions? What else can I do to make Emacs an acceptable and comfortable IDE for VB?
A: Vis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do you get the visual element inside a ItemsControl I have a list of States in an ItemsControl, the DataTemplate is a CheckBox. I would like to add a function to select(check) all states. However I need to loop through the CheckBoxs rather then the data items since the checked state is stored in a separate data... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how Drupal CSS URL errors could be fixed? I've just got a fresh Drupal 6 install. The CSS didn't work. Then I realized that a "?U" was appended, and Drupal couldn't find it. Does anyone know where to unset this?
<link type="text/css" rel="stylesheet" media="all" href="/modules/node/node.css?U" />
<link type="te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Detect GCC compile-time flags of a binary Is there a way to find out what gcc flags a particular binary was compiled with?
A: I'm the one who asked Brian to post this originally. My question had to do with the samba binary. I found out that you can run smb -b to get information on how it was built.
A: A quick look... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: What is IL Weaving? I just saw Ayende's post today about PostSharp. I downloaded the code and tried it out, and I thought it was the coolest, most easy to use way to handle AOP that I've seen.
In his post, Ayende says that PostSharp accomplishes it's magic via IL Weaving. Now, at some abstract level I can deduce wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: Connection Forcibly Closed error I'm using ASP.NET WebClient.DownloadFile(url) to obtain images from the Image Servers of several of our clients. The 'url' is usually simple, like "http://somewhere.com/images/image01.jpg".
This works great for 99% of our clients. But one is giving me a "An existing connection was f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Regex to find lines containing sequence but not containing a different sequence How do I write a regular expression to find all lines containing 665 and not having .pdf
I can't seem to find how to do not in regex. This is for Notepad++ syntax if it matters.
Thanks
A: If .pdf will only occur after 665, the negative... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to change the function called when I click in the close button on php-gtk? I load a single instance of a window on php-gtk, I have a button named "Cancel" that hide(); the window, so when the window is needed again I just show();.
But when I click on the close button instead of the cancel button the window is de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Lucene.Net Search result to highlight search keywords I use Lucene.Net to index some documents. I want to show the user a couple of lines as to why that document is in the result set. just like when you use google to search and it shows the link and followed by the link there are a few lines with the keywords highli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Creating an image without storing it as a local file Here's my situation - I want to create a resized jpeg image from a user uploaded image, and then send it to S3 for storage, but am looking to avoid writing the resized jpeg to the disk and then reloading it for the S3 request.
Is there a way to do this completely ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to put WPF Tab Control tabs on the side I am trying to create a Tab Control in WPF that has the tabs arranged down the right side of the control, with the text rotated 90 degrees The look is similar to those plastic tabs you can buy and use in a notebook. I have tried changing the TabStripPlacement to Right, but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Replace control arrays before migrating from vb6 With a view to avoiding the construction of further barriers to migration whilst
enhancing an existing vb6 program.
Is there a way to achieve the same functionality as control arrays in vb6 without using them?
A: In .NET you have a tag property. You can also have the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to have synonyms in Lucene.Net I need lucene to search for synonyms as well as the actual keyword. that is if I search for "CI", I want it to search for CI OR "continues integration". at the moment I search for keywords I have the synonyms for and replace them with the "OR-ed" version, but I suspect there should... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are the most useful software development metrics? I would like to track metrics that can be used to improve my team’s software development process, improve time estimates, and detect special case variations that need to be addressed during the project execution.
Please limit each answer to a single metric, desc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Automatic image format detection in PHP I am looking for a way to take a user uploaded image that is currently put in a temporary location ex: /tmp/jkhjkh78 and create a php image from it, autodetecting the format.
Is there a more clever way to do this than a bunch of try/catching with imagefromjpeg, imagefrompng, e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: How do you Draw Transparent Image using System.Drawing? I'm trying to return a transparent GIF from an .aspx page for display within a web page. I am trying to get the image to have transparency, but I just keep getting Black being where the image should be Transparent.
Does anyone know what I'm doing wrong?
Protect... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Customer File design How do you model your customer address data and what techinques are you using to ensure the quality of the data?
Things like deduplication algorithms, duplicate matches, making sure that packages and invoices can actually be delived and such? Esepcially in systems handling customers in multiple ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Replace an asterisk (*) using Perl regular expression I have the following string:
$_='364*84252';
The question is: how to replace * in the string with something else? I've tried s/\*/$i/, but there is an error: Quantifier follows nothing in regex. On the other hand s/'*'/$i/ doesn't cause any errors, but it also d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I create and query linked database servers in SQL Server? I need to do a join across two different database servers (IPs 10.0.0.50 and 10.0.0.51). What's the best way?
A: You can, as mentioned, use sp_addlinkedserver. However, you may also do this via Enterprise Manager (2000) or SQL Server Management Studio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: What "Attributes" can Serena Mariner's SOAP API touch in UpdateInvestment()? I'm trying to write an interface between a home-grown project management system and Serena Mariner. (The bigwigs like to read Mariner, the worker bees like to write to the home grown system.)
How can I (programmatically?) figure out what A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Detect the Internet connection is offline? How to detect the Internet connection is offline in JavaScript?
A: I had to make a web app (ajax based) for a customer who works a lot with schools, these schools have often a bad internet connection I use this simple function to detect if there is a connection, works very... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "346"
} |
Q: ASP.NET version 3.5 website: what does the file "vwd.webinfo" do, exactly? And what is with the bloated web.config file? I am running Visual Studio Team Edition 2008.
When I create a new website, I get a new file I've never seen before: vwd.webinfo.
The contents of this file is as follows:
<?xml version="1.0" enc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Best Method for reading a YAML response in .NET? Weve recently been trying to work on an application that uses pandastream to encode our videos, we are sending the videos successfully, and the response that we get back is in YAML, however the only tool that we can find (YAML for .NET) is not parsing the file. Has a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: WCF Errors using WCFTestClient to test a simple WCF Web Service When I try to test the AutoLotWCFService using "wcftestclient", I get the following error. What am I doing wrong? Any insight will help. This is a simple Web Service that has wshttpbinding with interface contract and the implementation in the service. H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Apache - Reverse Proxy and HTTP 302 status message My team is trying to setup an Apache reverse proxy from a customer's site into one of our web applications.
http://www.example.com/app1/some-path maps to http://internal1.example.com/some-path
Inside our application we use struts and have redirect = true set on ce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How do you refine your estimation process? Estimating how long any given task will take seems to be one of the hardest parts about software development. At my current shop we estimate tasks in hours at the start of an iteration, but once the task is complete we do not use it to aide us in future estimations.
How do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Identifying the season from the Date using Java I've had nothing but good luck from SO, so why not try again?
I have an application that needs to show a different image based on the season of the year (spring, summer, winter, fall). I have very specific start and end dates for these seasons.
What I would like from... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does NuSoap have to be configured a certain way when calling from WCF? I'm trying to call a php webservice using WCF. I googled some public php services to see if I could replicate the error I was receiving and I created 2 different unit tests to demonstrate.
The test that failed I get the following error:
System.S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: FormField DropDownList height I want to know how to set the height property for the HTML <select> in code.
I tried setting .Attribute.Add("Style","Height:120px") just to see if I could get it to change but to no avail.
A: Better yet, give it a CssClass. :)
A: Style is already a Property...
DropDownList myDropDown;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Offline Web Application: Success Stories, Tips and Resources We @ medicware.com.br are thinking about making our web application offline-capable with Gears. Our main goal is to keep basic functionality running when the internet connection goes down.
So, I'd like to hear success stories, tips and resources about your... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Trouble deploying code written on VS2008 to server running .NET Framework 2.0 When I created the project I'm trying to deploy I selected that I wanted to target .NET Framework 2.0. After deploying the project I try to brows to it and get and error page that shows:
<compilation debug="true">
<assemblies>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where can I find my .emacs file for Emacs running on Windows? I tried looking for the .emacs file for my Windows installation for Emacs, but I could not find it. Does it have the same filename under Windows as in Unix?
Do I have to create it myself? If so, under what specific directory does it go?
A: It should be s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "126"
} |
Q: Error Message: "Access to the path c:\windows\microsoft.net\framework\(version)\Temporary ASP.NET Files\(blah) is denied." - what causes this? Every so often when I'm debugging, I get this message in nice brown text on an ASP.NET error page:
Access to the path
"c:\windows\microsoft.net\framework\(version)\Te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What does "Directory.Delete( "path", false )" do? According to the doucmentation for "Directory.Delete( "path", true )", it remove directories, subdirectories, and files in the path.
What does Directory.Delete( "path", false ) do? According to the doucmentation it does "otherwise".
I mean how can you delete a direct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Automatic PHP Documentation Generation? For ActionScript 2, I've used NaturalDocs. However it has pretty poor support for PHP. I've looked so far at doxygen and phpDocumentor, but their output is pretty ugly in my opinion. Does anyone have any experience with automatic documentation generation for PHP? I'd prefer to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: C++ std::string Constructor any thoughts on this would be appreciated:
std::string s1 = "hello";
std::string s2 = std::string(s1);
I'd now expect these two strings to be independent, i.e. I could append ", world" to s2 and s1 would still read "hello". This is what I find on windows and linux but running the code on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I extract xml properties using shell scripts? I have already extracted the tag from the source document using grep but, now I cant seem to figure out how to easily extract the properties from the string. Also I want to avoid having to use any programs that would not usually be present on a standard installati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .NET TransactionScope class and T-SQL TRAN COMMIT and ROLLBACK I am current writing an application that will require multiple inserts, updates and deletes for my business entity. I am using the TransactionScope class to guarantee all the stored procedures can commit or roll back as a single unit of work.
My questio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: NFS Server in Java I search an implementation of a network (or distributed) file system like NFS in Java. The goal is to extend it and do some research stuff with it. On the web I found some implementation e.g. DJ NFS, but the open question is how mature and fast they are.
Can anyone purpose a good starting point, h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Wicket and JSPs Using add(new Include()) syntax, I was able to include jsps which are at the top level.
However those which are present inside 'WEB-INF' cannot be referenced, is there any way to achieve this?
A: I think the Include class makes an external request instead of including/forwarding current one, which ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Embedding DLLs in a compiled executable Is it possible to embed a pre-existing DLL into a compiled C# executable (so that you only have one file to distribute)? If it is possible, how would one go about doing it?
Normally, I'm cool with just leaving the DLLs outside and having the setup program handle everything, bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "711"
} |
Q: Subdomain on different host I'm trying to host a subdomain for my site with a different hosting company and I'm running into issues on how to set it up.
Here are the specifics:
*
*Domain is registered with GoDaddy.
*Nameservers are pointing to DiscountASP.net where ASP.NET app has been happily running for couple ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "124"
} |
Q: How to use Python to login to a webpage and retrieve cookies for later usage? I want to download and parse webpage using python, but to access it I need a couple of cookies set. Therefore I need to login over https to the webpage first. The login moment involves sending two POST params (username, password) to /login... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "147"
} |
Q: ORA-00942: table or view does not exist : How do I find which table or view it is talking about We're running a java/hibernate app going against ORACLE 10g in TESTING. Once in a while, we're seeing this error:
ORA-00942: table or view does not exist
Is there a way to find out which table/view(s) ORACLE is talking ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do I join two lists in Java? Conditions: do not modify the original lists; JDK only, no external libraries. Bonus points for a one-liner or a JDK 1.3 version.
Is there a simpler way than:
List<String> newList = new ArrayList<String>();
newList.addAll(listOne);
newList.addAll(listTwo);
A: Probably not simpler, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1001"
} |
Q: What is the proper name for doing debugging by adding 'print' statements There are many ways of doing debugging, using a debugger is one, but the simple one for the humble, lazy, programmer is to just add a bunch of print statements to your code.
i.e.
def foo(x):
print 'Hey wow, we got to foo!', x
...
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: Speed of SELECT vs. SET in T-SQL I've been led to believe that for single variable assignment in T-SQL, set is the best way to go about things, for two reasons:
*
*it's the ANSI standard for variable assignment
*it's actually faster than doing a SELECT (for a single variable)
So...
SELECT @thingy = 'turnip sha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Eclipse as IDE + Mercurial for version control + ? Bug tracking = Good idea? For a new Java web project I thought about using:
*
*Eclipse as IDE
*Mercurial for version control
*Some kind of bug tracking software
I have heard of bug tracking software where you can tie a change to an unresolved bug when you che... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Sharing source between two Netbeans projects I have an existing Java project in Netbeans (a JSF web application). I'd like to experiment with GWT in a separate project - put pull in source from the original project. Is there any way to share source between two Netbeans projects.
When I attempt to add the source dir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Speed of multiple variable assignment in T-SQL Imagine I have a chunk of initialisation code at the top of a stored procedure with a number of variable assignments:
SET @proc = 'sp_madeupname'
SET @magic_number = 42
SET @tomorrows_date = DATEADD(dd, 1, GETDATE())
...
Clearly doing all of the above as one SELECT wou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When does CSS's !important declaration not work? I am wondering if someone can put a bit of an authoritative reference summary of when the !important declaration in CSS does not work to override inline styles.
A: There are many factors involved in determining which styles override one another. The lower a style de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: What is the purpose of the cbSize member in Win32API structs I frequently encounter some definitions for Win32API structures (but not limited to it) that have a cbSize member as in the following example.
typedef struct _TEST {
int cbSize;
// other members follow
} TEST, *PTEST;
And then we use it like this:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: WCF transport security with no authentication Is it possible to have transport security without authentication? I'm well aware of it's flaws but atm I can't install a certificate a the client side.
It seems I can set WSHttpBinding.SecurityMode to Transport and the ClientCredentialType to HttpClientCredentialType.Non... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Should the Visual Studio GUI editor be used? Coming from a background, I'm familiar with GUI editors that do a poor job of producing code. However, I've never written a GUI using .NET. Does the GUI editor in Visual Studio have the same problem(s)? Are both the source files and output GUI good?
A: The GUI editor in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MS Office hyperlinks change code page? When you paste the following URL into IE: http://technet.microsoft.com/en-us/sysinternals/bb897434.aspx, the link on the right of the page cleanly says "Download Zoomit (77 KB)". If you paste the link into an Office document (Word, Excel, PowerPoint -- tested using Office 2003... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are some common things to consider when developing a web-based application to be sold I'm developing an application for an internal customer. One of the requirements is that it be developed in such a way that it could potentially be sold to other organizations. The application is a tracking application for a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How can I break out of multiple loops? Given the following code (that doesn't work):
while True:
# Snip: print out current state
while True:
ok = get_input("Is this ok? (y/n)")
if ok.lower() == "y": break 2 # This doesn't work :(
if ok.lower() == "n": break
# Do more processing w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "702"
} |
Q: What's the easiest way to allow users to create their own forms on my web app? My ASP.NET web app needs to support the ability for users to create their own forms, complete with textboxes, dropdowns, radio buttons with some logic (required field, etc.). Is there some third party tool that's already geared towards t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: COM from x86 assembly? Is it possible to call into COM objects via x86 assembly language? If so, how?
Why would I want to do this? Let's say I've got two programs that I don't have source for - all I've got are the binaries. One of them implements a COM interface, the other doesn't. I want to inject code into the fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Database localization i am looking for opinions if the following problem maybe has a better/different/common solution:
I have a database for products which contains the names of the products in english (the default language of this application) and i need translations of the names if available.
Currently i have thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to keep row order with SqlBulkCopy? I'm exporting data programatically from Excel to SQL Server 2005 using SqlBulkCopy. It works great, the only problem I have is that it doesn't preserve the row sequence i have in Excel file. I don't have a column to order by, I just want the records to be inserted in the same ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Testing for the existence of a temporary table in a multi tempdb environment? Is there any way of determining whether or not a specific temp table has been created in a session without referencing the tempdb database that it was created on? Users are allocated to a specific tempdb when they log in, so I don't know w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is a trampoline function? During recent discussions at work, someone referred to a trampoline function.
I have read the description at Wikipedia. It is enough to give a general idea of the functionality, but I would like something a bit more concrete.
Do you have a simple snippet of code that would illustrate ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "116"
} |
Q: What is the best way to learn more about imperative-style concurrent programming? Have had to write my first "proper" multithreaded coded recently, and realised just how little I knew about how "imperative-style" (ie, concurrency models used by C++/C#/Java, and the like) concurrent programming techniques.
What resou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Factory Class - Should i populate my object with data here? im creating a Factory class that will contruct and return an object. I normally would do all of the data stuff at the Data Access Layer, but i dont think i could reach my objective and still do so. What i want to do is use a SQLDataReader to quickly read ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Google App Engine and 404 error I've setup a static website on GAE using hints found elsewhere, but can't figure out how to return a 404 error. My app.yaml file looks like
- url: (.*)/
static_files: static\1/index.html
upload: static/index.html
- url: /
static_dir: static
with all the static html/jpg files s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Can a .NET app be compiled to native? Just wondering if a .NET app can be compiled down to native machine code ahead of time? I'm not planning on doing so even if I could; I'm just curious.
Thanks
A: You CAN compile IL into native binaries. There are products that do it.
The larger question is should you...
If yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: 7645 Null or empty full-text predicate I have a query that ran fine on SQL2005 but moving the database to SQL2008 gives me the error from the title.
The code that is the problem is a call to CONTAINS, CONTAINSTABLE or FREETEXT with an empty parameter. However I'm trying to only call or join when there is a value lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Retrieving the new ID from a SQLDataAdaptor.Update How would you go about retrieving the @@IDENTITY value for each row when the SQLDataAdapater.Update is executed on a table?
eg. Is it possible to modify/intercept the InsertCommand, generated by the SQLCommandBuilder, to say add an output parameter, and then retriev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SSRS Reports - parameter query I have an SQL reporting server report which has 5 parameters which permit nullable values. The user may enter values for any of the fields. I need to enforce the condition that the user must enter at least one out of five parameter values (any one is required).
****Note**: I need to d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is Apache executing .php.html files as PHP? I have an odd problem...I'm using a documentation generator which generates a lot of output like docs/foo.php.html. It's XHTML, and thus contains <?xml...> tags at the beginning of file. The problem is, Apache has somehow decided to run it through the PHP interpreter, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there any reason why you all want to be notify whenever someone commit some codes? I know there are things like doing manual check to make sure the codes committed is fundamentally correct. But beside that? Reason i asking is because a big project there are so many commits everyday.
A: Generally speaking commit ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to format methods with large parameter lists I have never seen a way to do this nicely, i would be interested in seeing how others do it. Currently i format it like this:
public Booking createVehicleBooking(Long officeId,
Long start,
Long... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Stop overlooking minor details Compared to most people on this site I am admittedly a novice. I wanted to get some advice from the pros on how to avoid making stupid errors in your code.
Is there anyone else who had the problem when they were first starting out of missing some detail that causes big problems? Are t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Cocoon 2.2? Is it worthwhile or bad news? I am looking to use Cocoon for a couple of sites I am creating. I will make heavy use of xml, xsl and conversion to html, pdf and excel on the sites. I am attracted to coccon as it implements these functions quite well.
I guess I am just wondering if anyone has used it and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Factory Class - Save Objects I have a factory class that populates objects with data. I want to implementing saving from the object, but do not want to populate the object with db stuff - is it stupid to have my Factory that creates the class also save the data?
ie: in my .Save() method on the object i would call F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I setup a proxy connection in Solaris server? I need to set up a proxy connection to access the internet. I am using Solaris server.
How can I accomplish this?
A: set this as an environment variable:
> export http_proxy="http://domain_url\\username:password@proxy_url"
| {
"language": "en",
"url": "https://stackoverflow.com/questions/189816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Any good distributed agent/service models for .NET? I'm looking for tools that implement the distributed agent/service model ... I guess we could also call this grid or cloud computing, but I'm not sure the term is exactly analagous. A distributed agent model would be one where developers build agents that are disp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: IE6 generated strange worksheet name when doing export from java application I am encountering error like
test(10)[1].csv file cannot be found at
C:\Documents and Settings\Ron\Local Settings\Temporary Internet Files\Content.IE5\PQ0STUVW
When trying to do export of CSV file using the following codes.
Anyone have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Should we upgrade to SQL Server 2005 or 2008? Our company is considering upgrading our SQL server.
At this point, would it be better to upgrade to 2005 or 2008?
Here are some of my considerations:
*
*Features
*Licensing costs
*Learning curve
Bear in mind our staff has already been using SQL server 2000 for m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I debug heap errors in a C# class library? I'm getting a heap corruption error in a C# library module I'm calling through COM in a C++ app. The specific error is:
HEAP: Free Heap block 4b61bb8 modified
at 4b61be8 after it was freed
... This may be due to a
corruption of the heap, and indicates
a bug... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the javascript MIME type for the type attribute of a script tag? What is the MIME type of javascript?
More specifically, what is the right thing to put in the "type" attribute of a script tag? application/x-javascript and text/javascript seem to be the main contenders.
A: text/javascript
I believe IE doesn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "124"
} |
Q: Converting a class library to a webapp in Visual Basic? I was delivered several hundred source files for a web app original written in classic ASP, but somewhat ported to VisualBasic.NET and ASP.NET
It didn't come with any form of project or solution files.
I'm trying to get it setup to build, but am struggling. If ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is a reasonable query time for associated tables with very large datasets? In StackOverflow podcast no. 19, Joe describe Fogcreek's decision to have one database PER client instead of one database for ALL clients. That kinda sets me thinking about the following.
*
*Assuming I have 1000 users.
*Each user ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: N-ary trees in C Which would be a neat implemenation of a N-ary tree in C language?
Particulary, I want to implement an n-ary tree, not self-ballancing, with an unbound number of children in each node, in which each node holds an already defined struct, like this for example:
struct task {
char command[MAX_LENGTH]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Weird SQL Server memory errors after upgrading to 64-bit We've just "upgraded" our production database server from 32-bit to 64-bit. It's running SQL Server 2005 Standard on Windows Server 2003. During the night after the upgrade the server was unavailable for nearly an hour - client requests were timing out. The pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What property returns the regular expression when re.compile is called? def foo ():
x = re.compile('^abc')
foo2(x)
def foo2(x):
How do I get x to return '^abc'? within the following code
logging.info('x is ' + x.???)
A: pattern
| {
"language": "en",
"url": "https://stackoverflow.com/questions/189861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best way to remotely manage a Sqlite DB? We have an Sqlite DB on our Linux/PHP production webserver. What is the best way to manage it remotely? I've found some server wrappers are available and some applications claim to offer remote access methods. Any suggestions?
A: Gindi's SQLITE client/server at C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |