text stringlengths 8 267k | meta dict |
|---|---|
Q: C++ STL question: allocators I have a (potentially dumb) question about the C++ STL. When I make a container (vector, set, map, etc), is it allocated on the stack or on the heap? If I make a set and put 5 million strings, will I have to worry about a stack overflow?
A: STL classes by default allocate their intern... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you find what debug switches are available? Or given a switch find out what is being disabled? In this question the answer was to flip on a switch that is picked up by the debugger disabling the extraneous header that was causing the problem. The Microsoft help implies these switched are user generated and d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Visual Studio Hosting Process and "The operation could not be completed" When trying to execute from within Visual Studio 2008 your application and you get the (uninformative) message "The operation could not be completed".
The solution to this is to turn off the "Visual Studio Hosting Process".
The problem with tur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.Net RadioButton visibility inside a RadioButtonList Is there a way to hide radio buttons inside a RadioButtonList control programmatically?
A: Under the hood, you can access the attributes of the item and assign it a CSS style.
So you should be able to then programmatically assign it by specifying:
RadioButtonL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Scripting SVG I'm considering developing a website similar to stackoverflow, but the answers may also consist of drawings (schematics, in this case). I want to have an area in the answer form where they can make this schematic without requiring special plugins, etc.
*
*Are we to the point where SVG has or shou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Looking up document library items in a SharePoint workflow I using SharePoint Designer to create a workflow. I'm trying to get at a sub-folder in a document library in the "Define Workflow Lookup" dialog. There are two issues with this:
*
*I can't look up items by URL Path. If I look up by Title, I can
output th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best Ways to Debug a Release Mode Application Im sure this has happened to folks before, something works in debug mode, you compile in release, and something breaks.
This happened to me while working on a Embedded XP environment, the best way i found to do it really was to write a log file to determine where it woul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Best use pattern for a DataContext What's the best lifetime model for a DataContext? Should I just create a new one whenever I need it (aka, function level), should I keep one available in each class that would use it (class level), or should I create a static class with a static DataContext (app-domain level)? Are ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I filter nodes of TreeView and Menu controls with sitemap data sources based on user permissions? I'm using the ASP.NET Login Controls and Forms Authentication for membership/credentials for an ASP.NET web application. And I'm using a site map for site navigation.
I have ASP.NET TreeView and Menu navigation ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: .Net 2.0 - How efficient are Generic Lists? I'm creating an app that holds loads of loads of user data in memory, and it's mostly keeping it all in List<T> structures (and some Dictionary<T,T> when I need lookup).
And I'm wondering...
How efficient are Lists?
How much memory overhead do I get for each of them? (that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do I check if a SQL Server text column is empty? I am using SQL Server 2005. I have a table with a text column and I have many rows in the table where the value of this column is not null, but it is empty. Trying to compare against '' yields this response:
The data types text and varchar are incompatible in t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "209"
} |
Q: How do you configure HttpOnly cookies in tomcat / java webapps? After reading Jeff's blog post on Protecting Your Cookies: HttpOnly. I'd like to implement HttpOnly cookies in my web application.
How do you tell tomcat to use http only cookies for sessions?
A: httpOnly is supported as of Tomcat 6.0.19 and Tomcat 5.5... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "77"
} |
Q: Using Hibernate to work with Text Files I am using Hibernate in a Java application to access my Database and it works pretty well with MS-SQL and MySQL. But some of the data I have to show on some forms has to come from Text files, and by Text files I mean Human-Readable files, they can be CSV, Tab-Delimited, or eve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Can you call a webservice from TSQL code? Is there a way to call out from a TSQL stored procedure or function to a webservice?
A: I would not do this for heavy traffic or mission critical stuff, HOWEVER, if you do NOT need to receive feedback from a service, then it is actually a great thing to do.
Here is an e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: SMO and Sql Server 7.0 Does anyone have a definitive answer to whether Sql Server Management Objects is compatible with Sql Server 7.0?
The docs state:
Because SMO is compatible with SQL Server version 7.0, SQL Server 2000, SQL Server 2005, and SQL Server 2008, you easily manage a multi-version environment.
But tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you use a flash object as a link? Is it possible to use a flash document embedded in HTML as a link?
I tried just wrapping the object element with an a like this:
<a href="http://whatever.com">
<object ...>
<embed ... />
</object>
</a>
In Internet Explorer, that made it show the location in t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Need a way to kick of a php script each time a particular account receives an email Working on a little side project web app...
I'd like to have it set up so that, when users send email to a certain account, I can kick off a PHP script that reads the email, pulls out some key info, and writes it to a database.
What'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Caching Patterns in ASP.NET So I just fixed a bug in a framework I'm developing. The pseudo-pseudocode looks like this:
myoldObject = new MyObject { someValue = "old value" };
cache.Insert("myObjectKey", myoldObject);
myNewObject = cache.Get("myObjectKey");
myNewObject.someValue = "new value";
if(myObject.someValue ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Subversion: Fail update when there are conflicts? Is there a way to tell subversion "update/merge unless it would cause a conflict"?
I know you can use --dry-run / status -u to check before running the update, but I often have others running updates and getting broken webpages because they don't notice the "C inde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ssh hangs when command invoked directly, but exits cleanly when run interactive I need to launch a server on the remote machine and retrieve the port number that the server process is lsitening on. When invoked, the server will listen on a random port and output the port number on stderr.
I want to automate the pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JSF Lifecycle and Custom components There are a couple of things that I am having a difficult time understanding with regards to developing custom components in JSF. For the purposes of these questions, you can assume that all of the custom controls are using valuebindings/expressions (not literal bindings), but I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Can you recommend an ASP.NET control library? Do you have a good experience with a control library? Something that is kind of robust, well documented, consistent (across different controls) and quite well integrated into the Visual Studio.
A: Well, I can only speak about the Infragistics controls - they have a lot ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I export translations of place names from freebase.com So I've looked at this use of the freebase API and I was really impressed with the translations of the name that it found. IE Rome, Roma, Rom, Rzym, Rooma,로마, 罗马市. This is because I have a database of some 5000+ location names and I would very much like all ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ASP.NET vs. Silverlight I'm starting a new web project and I am considering two presentation frameworks. I am thinking either about ASP.NET MVC or Silverlight. I would tend toward Silverlight since I'm quite experienced .NET developer while I have just a basic knowledge of ASP.NET controls.
A: Silverlight 3 with RI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Could you make a case for using Berkeley DB XML I'm trying to read through the documentation on Berkeley DB XML, and I think I could really use a developer's blog post or synopsis of when they had a problem that found the XML layer atop Berkeley DB was the exact prescription for.
Maybe I'm not getting it, but it se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I recover from an unchecked exception? Unchecked exceptions are alright if you want to handle every failure the same way, for example by logging it and skipping to the next request, displaying a message to the user and handling the next event, etc. If this is my use case, all I have to do is catch some genera... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is the best approach to both modularity and platform independence? I hope this question does not come off as broad as it may seem at first. I am designing a software application that I would like to be both cross-platform and modular. I am still in the planning phase and can pick practically any language and to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Should I use a software hosting solution for my personal projects? Right now, I keep all of my projects on my laptop. I'm thinking that I shouldn't do this, but instead use a version control system and check them in/out from an external hosting repository (Google Code, SourceForge, etc). I see several benefits here ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How exactly do you configure httpOnlyCookies in ASP.NET? Inspired by this CodingHorror article, "Protecting Your Cookies: HttpOnly"
How do you set this property? Somewhere in the web config?
A: If you want to do it in code, use the System.Web.HttpCookie.HttpOnly property.
This is directly from the MSDN docs:
// Cre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: Extending base classes in Python I'm trying to extend some "base" classes in Python:
class xlist (list):
def len(self):
return len(self)
def add(self, *args):
self.extend(args)
return None
class xint (int):
def add(self, value):
self += value
return self
x = x... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Converter for VB.NET Code to Linux Platform Exist? I am interested in moving a number of my projects from Visual Studio and Access/Office Basic with a SQL back-end to the Linux world.
Are there any utilities available to move code over to a similar platform on Linux?
A: Here's a link to the Mono Migration Analyze... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to get started with PowerShell? I played with one of the early beta versions of PowerShell V1, but haven't used it since it went "gold". What is the best way to get started using PowerShell?
Which version of PowerShell should I be using (V1.0 vs 2.0 CTP's)? What are you using PowerShell for? Are there any tools ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "71"
} |
Q: How do I perform a recursive checkout using ClearCase? I want to check out all files in all subdirectories of a specified folder.
(And it is painful to do this using the GUI, because there is no recursive checkout option).
A: cleartool find somedir -exec "cleartool checkout -nc \"%CLEARCASE_PN%\""
Also an article ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Drawing a custom label on a pie chart in Yahoo's Flash Library ASTRA Has anyone looked at Yahoo's ASTRA? It's fairly nifty, but I had some issues creating a custom label for a pie chart. They have an example for a line chart, which overrides an axis's series's label renderer. My solution was to override the myPieCh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CreateProcessAsUser vs ShellExecute I need to ShellExecute something as another user, currently I start a helper process with CreateProcessAsUser that calls ShellExecute, but that seems like too much of a hack (Wrong parent process etc.) Is there a better way to do this?
@PabloG: ImpersonateLoggedOnUser does not wor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Concurrent logins in a web farm I'm really asking this by proxy, another team at work has had a change request from our customer.
The problem is that our customer doesn't want their employees to login with one user more than one at the same time. That they are getting locked out and sharing logins.
Since this is on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the maximum amount of RAM I can use in a Windows box? Obviously, that's 64-bit windows.
Also, what's the maximum amount of memory a single 64-bit process can use?
I was kind of counting on using it all...
(Yes, I know what I'm doing, please don't tell me that if I need that much RAM i must be doing something... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How does GPS in a mobile phone work exactly? I assume it doesn't connect to anything (other than the satelite I guess), is this right? Or it does and has some kind of charge?
A: GPS, the Global Positioning System run by the United States Military, is free for civilian use, though the reality is that we're paying fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33637",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Testing and Managing database versions against code versions As you develop an application database changes inevitably pop up. The trick I find is keeping your database build in step with your code. In the past I have added a build step that executed SQL scripts against the target database but that is dangerous in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Best Practices for Managing Linq to SQL Dbml Files? I've just started using Linq to SQL, and I'm wondering if anyone has any best practices they can share for managing dbml files.
*
*How do you keep them up to date with the database?
*Do you have a single dbml file for the entire database, or is it split into mu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: SQL 2000 'TRY CATCH like' Error Handling This is a sql 2000 database that I am working with.
I have what I call a staging table that is a raw data dump of data, so everything is ntext or nvarchar(255).
I need to cast/convert all of this data into the appropriate data types (ie int, decimal, nvarchar, etc.)
The way ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Cocoa tips for PHP developers? I'm a PHP developer, and I use the MVC pattern and object-oriented code. I really want to write applications for the iPhone, but to do that I need to know Cocoa, but to do that I need to know Objective-C 2.0, but to do that I need to know C, and to do that I need to know about compiled... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can you make a .net windows forms project look fresh? I'm working on a visual studio 2005 vb.net windows forms project that's been around for several years. It's full of default textboxes, labels, dropdowns, datagrids, datetime pickers -- all the standard stuff. The end result is a very gray, old-looking proje... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: My (Java/Swing) MouseListener isn't listening, help me figure out why So I've got a JPanel implementing MouseListener and MouseMotionListener:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class DisplayArea extends JPanel implements MouseListener, MouseMotionListener {
public Display... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Change templates in Xcode How would I change the initial templates created by Xcode when creating a new Cocoa Class.
I am referring to the comments and class name created when using Xcode's new class wizard.
A: As of Xcode 7
*
*File templates: ~/Library/Developer/Xcode/Templates/File Templates
*Project templat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "113"
} |
Q: CLR Profiler - Attaching to existing process I would like to use something like CLR Profiles on .Net 2.0 to see what objects are taking more space in the heap at any given time (of an ASP.Net worker process).
However, the CLR Profiler only lets me START an app, not attach to an existing one. I assume this is because... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How should I build a good (web) API I'm going to build an API for a web app and I'm interested in what people can suggest as good practices.
I'm already planning to make it versioned (version 1 can only control certain aspects of the system, version 2 could control more, but this may need a change in the way authent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: JSP debugging in IntelliJ IDEA Does anyone know how to debug JSP in IntelliJ IDEA?
When I set breakpoint in my JSP files, those breakpoints never seem to take effect. The debugger never hits them. IDEA seems to think that the breakpoints are valid. I do see a red dot placed to the left of the line where I place my b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: WordPress MediaWiki integration On the other end of the spectrum, I would be happy if I could install a wiki and share the login credentials between WordPress and the wiki. I hacked MediaWiki a while ago to share logins with another site (in ASP Classic) via session cookies, and it was a pain to do and even worse to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: XML attribute vs XML element At work we are being asked to create XML files to pass data to another offline application that will then create a second XML file to pass back in order to update some of our data. During the process we have been discussing with the team of the other application about the structure of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "268"
} |
Q: How do I add a MIME type to .htaccess? I would like to add the following MIME type to a site run by Apache:
<mime-mapping>
<extension>jnlp</extension>
<mime-type>application/x-java-jnlp-file</mime-type>
</mime-mapping>
That is the Tomcat format.
I'm on a shared host, so I can only create an .htaccess file. Woul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How can I retrieve a list of parameters from a stored procedure in SQL Server Using C# and System.Data.SqlClient, is there a way to retrieve a list of parameters that belong to a stored procedure on a SQL Server before I actually execute it?
I have an a "multi-environment" scenario where there are multiple versions ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Any advice for speeding up the compile time in Flex Builder 3? I run Flex Builder 3 on a mac and as my project grows - the compile time gets longer and longer and longer. I am using some SWC's and there is a fair amount of code but it shouldn't take minutes to build and crash daily should it?
A: There's no need to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How do I delete 1 file from a revision in SVN? One of my co-workers checked in a some files in SVN and one of the files has a password in it. The password has been removed from the file and a new version checked in but the password is obviously still in the repository if we look at the revision history and go to tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Windows 2003 Scheduled Task Cmdlet (v 1.0) Does anyone know of a powershell cmdlet out there for automating task scheduler in XP/2003? If you've ever tried to work w/ schtasks you know it's pretty painful.
A: Ok, Pablo has sparked my interest in saying that the scheduler is accessible via COM.
In PowerShell you ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I use `scp` to deploy a website's `.htaccess` file? I am currently using the following command to upload my site content:
scp -r web/* user@site.com:site.com/
This works great except that the .htaccess file is not sent. Presumably, this is because it's hidden.
I have tried adding a second line to send the f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What are some useful TextMate features? I noticed that many people here use TextMate for coding on OS X. I've recently started using it, and although I like its minimalistic interface, it makes it harder to stumble upon cool features if you don't know what you're looking for.
So, what feature have you found most hel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: How to determine if an html tag splits across multiple lines I'm writing a PHP script that involves scraping web pages. Currently, the script analyzes the page line by line, but it breaks if there is a tag that spans multiple lines, like
<img src="example.jpg"
alt="example">
If worse comes to worst, I could possib... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Any way to write a Windows .bat file to kill processes? Every time I turn on my company-owned development machine, I have to kill 10+ processes using the Task Manager or any other process management app just to get decent performance out of my IDE. Yes, these are processes from programs that my company installs on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "141"
} |
Q: How do I detect if a function is available during JNLP execution? I have an application which really should be installed, but does work fine when deployed using JNLP.
However, it would seem that some Java functions such as Runtime.exec don't work using the default security options.
I would like to therefore disable ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I find the revision history of the file that was deleted and then resubmitted to SVN? This is a follow on question to "How do I delete 1 file from a revision in SVN?" but because it probably has a very different answer and I believe that others would benefit from knowing the answer. (I don't know the answer ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: IE CSS Bug - How do I maintain a position:absolute when dynamic javascript content on the page changes I have a page where there is a column and a content div, somewhat like this:
<div id="container">
<div id="content">blahblahblah</div>
<div id="column"> </div>
</div>
With some styling I have an image that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to avoid pauses when editing code on a network drive? I'm planning on doing more coding from home but in order to do so, I need to be able to edit files on a Samba drive on our dev server. The problem I've run into with several editors is that the network latency causes the editor to lock up for long periods of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Using Unsigned Primitive Types Most of time we represent concepts which can never be less than 0. For example to declare length, we write:
int length;
The name expresses its purpose well but you can assign negative values to it. It seems that for some situations, you can represent your intent more clearly by writin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: .net multilingual cms i am planning a simple, dual-language website and i'd like to use a .net based cms but i can't find anything suitable. i have experience with dotnetnuke and sharepoint but neither fit the bill - dotnetnuke does not do dynamic site elements multi-lingually & sharepoint is a monster PITA no matt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is it possible to call Javascript's onsubmit event programmatically on a form? In Ruby on Rails, I'm attempting to update the innerHTML of a div tag using the form_remote_tag helper. This update happens whenever an associated select tag receives an onchange event. The problem is, <select onchange="this.form.submit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Font rendering for web pages I always run into the same problem when creating web pages. When I add a font that is larger then about 16-18px it looks terrible. Its jagged, and pixelated. I have tried using different fonts and weights, however I haven't had much luck there.
Note: Its only in windows that it is like ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Determining width of a printed string by a webapp In my (PHP) web app, I have a part of my site that keeps a history of recent searches. The most recent queries get shown in a side box. If the query text is too long, I truncate it and show ellipses. Eg: "My very long query is..."
Currently, I truncate after a certai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Best iCalendar library for Java? I'm looking for a library to handle iCalendar data in Java.
Open source, well-documented implementations with a good object model are preferred. iCal parsing capabilities are less important to me, but still nice to have.
Does anyone have any recommendations?
A: A challenger appears... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: Formatting Stored Procedures I currently work with an Oracle database and we use stored procedures for all our SQL queries. The problem I have is that we do not really having a coding standard for our packages. So what happens is that every developer has a different style (or in some cases no sense of style) in how ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Ribbon Toolbar and Visual Studio 2008 Service Pack 1 Today I was listening to the Hanselminutes show about .NET 3.5 SP1...What's inside, and they twice mentioned the Office 2007-like Ribbon control that is included in Visual Studio 2008 Service Pack 1.
I am very interested about this, as I was previously looking a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What is tail recursion? Whilst starting to learn lisp, I've come across the term tail-recursive. What does it mean exactly?
A: In short, a tail recursion has the recursive call as the last statement in the function so that it doesn't have to wait for the recursive call.
So this is a tail recursion i.e. N(x - 1, p *... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2008"
} |
Q: 100% width textarea ignores parent element's width in IE7 I have the following textarea in a table:
<table width="300"><tr><td>
<textarea style="width:100%">
longstringlongstringlongstringlongstringlongstringlongstringlongstringlongstringlongstringlongstringlongstringlongstringlongstring
</textarea>
</td></tr></ta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to handle variable width FieldObjects in Crystal Reports I have a Crystal Report which is viewed via a CrystalReportViewer control on an .aspx page (using VS2008).
The report has two data-driven FieldObjects (which can contain a variable number of chars) which I would like to display on the same line beside ea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Convert Web.config from .NET 2.0 to 3.5 What is the minimum I need to add to a .NET 2.0 WebSite's web.config to make it .NET 3.5?
Visual Studio adds all the config sections and script handlers, but if you aren't using those are they are really necessary?
Is there a command line tool to "upgrade" a .NET 2.0 web.conf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: NHibernate SetTimeout on ICriteria Could someone tell me what the units the SetTimeout(int) method in the ICriteria interface uses?
Is it milliseconds, seconds, minutes or other?
A: I think it's seconds. The NHibernate API closely mirrors Hibernate Core for Java, where the Criteria.setTimeout(int) method uses seco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How to get facet ranges in solr results? Assume that I have a field called price for the documents in Solr and I have that field faceted. I want to get the facets as ranges of values (eg: 0-100, 100-500, 500-1000, etc). How to do it?
I can specify the ranges beforehand, but I also want to know whether it is possible... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How do you get the ethernet address using Java? I would like to retrieve the ethernet address of the network interface that is used to access a particular website.
How can this be done in Java?
Solution Note that the accepted solution of getHardwareAddress is only available in Java 6. There does not seem to be a sol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Best way to implement request throttling in ASP.NET MVC? We're experimenting with various ways to throttle user actions in a given time period:
*
*Limit question/answer posts
*Limit edits
*Limit feed retrievals
For the time being, we're using the Cache to simply insert a record of user activity - if that reco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "227"
} |
Q: Standardised text editing behaviour across Mac applications I've switched over to a Mac recently and, although things have been going quite well, the very different text-editing behaviours across applications is driving me insane.
Home, End, Page Up, Page Down, Apple-arrow, Ctrl-arrow, alt-arrow etc. quite often do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I efficiently keep track of the smallest element in a collection? In the vein of programming questions: suppose there's a collection of objects that can be compared to each other and sorted. What's the most efficient way to keep track of the smallest element in the collection as objects are added and the curr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Microsoft Office 2007 automated installation - editing the config.xml file I'm creating an automated installation of Office 2007. To customise your Office 2007 installation the Office Customization Tool (OCT) does most of the work for you. One the OCT's features is the ability to run additional programs during the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Find out how much memory is being used by an object in Python How would you go about finding out how much memory is being used by an object? I know it is possible to find out how much is used by a block of code, but not by an instantiated object (anytime during its life), which is what I want.
A: I haven't any per... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "291"
} |
Q: Can't create a subversion repository with Eclipse 3.4.0, svn 1.5.1 I'm working on mac OS x 10.4. I have a subversion repository stored on an external drive connected via USB. I created a new python project in Eclipse (using the PyDev plugin). When I use right click Team->Share Project to set up a new project with su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Tool for querying databases I want to query a number of different databases mainly Oracle and Informix.
Can anyone suggest me some tool using which I can do this easily?
A: Try WinSQL lite at http://www.indus-soft.com/SynametricsWebApp/WinSQL.jsp. It is absolutely free and does not expire. It is only one file and d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: php scripts writing to non-world-writable files How can you allow a PHP script to write to a file with high-security restrictions, such as only allowing a single user to write to it?
The difficulty seems to be that a PHP script is running as a low-permissions user (maybe apache, or www, or nobody?), and even if I ch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Install the Radrails plugin for Aptana Studio offline I downloaded and installed the Aptana Studio free version. But apparently, to install the Radrails plugin for ruby on rails development you have to connect to the internet. I don't have internet on my machine right now. So is there a way I could download the inst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Are Python threads buggy? A reliable coder friend told me that Python's current multi-threading implementation is seriously buggy - enough to avoid using altogether. What can said about this rumor?
A: The GIL (Global Interpreter Lock) might be a problem, but the API is quite OK. Try out the excellent processing mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: How to embed control change commands inside of a MIDI file I am making a simple game in order to learn a new language. I am in the process of collecting some music for the game and would like to use the MIDI format so that I can control the flow of the track (i.e., I would like to have an introduction that only pla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34023",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the difference between Build Solution and Batch Build in Visual Studio 2008? What is the difference between Build Solution and Batch Build in Visual Studio 2008?
A: The key point which seems to be missed in both the existing answers is that batch build allows you to build multiple configurations of each pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How to read a value from the Windows registry Given the key for some registry value (e.g. HKEY_LOCAL_MACHINE\blah\blah\blah\foo) how can I:
*
*Safely determine that such a key exists.
*Programmatically (i.e. with code) get its value.
I have absolutely no intention of writing anything back to the registry (for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "103"
} |
Q: Checking if userinput is a valid URI in XUL Is there a built-in function/method that can check if a given string is a valid URI or not in the Mozilla XUL toolkit? I have looked for one but found none, but since this is my first time using XUL and its documentation it could be that I just overlooked it. So I'm just m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to specify an authenticated proxy for a python http connection? What's the best way to specify a proxy with username and password for an http connection in python?
A: This works for me:
import urllib2
proxy = urllib2.ProxyHandler({'http': 'http://
username:password@proxyurl:proxyport'})
auth = urllib2.HTTPBa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "59"
} |
Q: Parsing, where can I learn about it I've been given a job of 'translating' one language into another. The source is too flexible (complex) for a simple line by line approach with regex. Where can I go to learn more about lexical analysis and parsers?
A: Try ANLTR:
ANTLR, ANother Tool for Language
Recognition, is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Dividing a list of nodes in half <xsl:for-each select="./node [position() <= (count(*) div 2)]">
<li>foo</li>
</xsl:for-each>
<xsl:for-each select="./node [count(*) div 2 < position()]">
<li>bar</li>
</xsl:for-each>
My list has 12 nodes, but the second list is always 8 and the first is always 4. What'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to apply an XSLT Stylesheet in C# I want to apply an XSLT Stylesheet to an XML Document using C# and write the output to a File.
A: This might help you
public static string TransformDocument(string doc, string stylesheetPath)
{
Func<string,XmlDocument> GetXmlDocument = (xmlContent) =>
{
XmlDoc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "201"
} |
Q: MS WF state machine workflows and MS CRM Dynamics 4.0 MS CRM Dynamics 4.0 incorporates the MS WF engine. The built in designer allows the creation of sequential workflows whos activities have native access to CRM entities.
Is it possible to:
*
*Create a state machine workflow
outside of CRM (i.e. in visual studi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: VS2008: Copy Web Site from command line How do I execute the "Copy Web Site" command for an ASP.NET project in VS2008 from the command line? If I need to script this, let me have some pointers on where I can learn that.
A: Would this help you get started?
Walkthrough: Deploying an ASP.NET Web Application Using XCOP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: HTML Scraping in Php I've been doing some HTML scraping in PHP using regular expressions. This works, but the result is finicky and fragile. Has anyone used any packages that provide a more robust solution? A config driven solution would be ideal, but I'm not picky.
A: If the page you're scraping is valid X(HT)M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Which, if any, C++ compilers do tail-recursion optimization? It seems to me that it would work perfectly well to do tail-recursion optimization in both C and C++, yet while debugging I never seem to see a frame stack that indicates this optimization. That is kind of good, because the stack tells me how deep the recu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "167"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.