text string | meta dict |
|---|---|
Q: Asp.Net -- adding option to select on client side...no value in code behind on form submit I'm quite confused by something. I've got 2 select lists, and if you choose an option in the first, I then load the 2nd with a certain set of options. I clear this out and repopulate it every time you change the selection in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I split a string on a fixed character sequence? Suppose I have following string:
String asd = "this is test ass this is test"
and I want to split the string using "ass" character sequence.
I used:
asd.split("ass");
It doesn't work. What do I need to do?
A: It seems to work fine for me:
public class Test
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: WMI - Generic Failure We have a .NET application that uses WMI to gather a wide range of information on machines throughout a network, such as reading the Win32_NTLogEvent to see if Symantec Antivirus has written anything. The queries work fine, but after repeatedly running a WMI query "Generic Failure" errors will... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TinyMCE in JSP (Struts application) Which download I need to use to use TinyMCE in JSP(Struts application)
I see Main Package, Development Package and also different Compression packages.
I am trying to implement Rich text editor for a text area in our application.
A: The compression packages are just compressed ve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: static const Member Value vs. Member enum : Which Method is Better & Why? If you want to associate some constant value with a class, here are two ways to accomplish the same goal:
class Foo
{
public:
static const size_t Life = 42;
};
class Bar
{
public:
enum {Life = 42};
};
Syntactically and semantically t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Remove empty directory from CVS? I'm not quite sure how this happened, but somehow a completely empty hierarchy of directories has ended up in my repository:
com/
com/companyname/
com/companyname/blah/
com/sun/
com/sun/java/
com/sun/java/jax_rpc_ri/
I think what happened was that these directories did have files in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: How do I automatically remove an HTML page frame? What's the best way to remove a page frame automatically?
I've used this type of code before:
<script language="JavaScript">
setTimeout ("changePage()", 3000);
function changePage() {
if (self.parent.frames.length != 0)
self.parent.location="http://www.example.com";
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you maintain a library of useful SQL in a team environment? At my work everyone has sql snippets that they use to answer questions. Some are specific to a customer, while some are generic for a given database. I want to consolidate those queries into a library/repository that can be accessed by anyone on the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I display a dataset or group as a comma delimited list in SSRS? In my SQL database, I have a one-to-many relationship, something like this:
Teacher Student
John Alex
John Mike
John Sean
Bob Jack
Gary George
Gary Paul
I'd like to display a table listing each teacher, with their stud... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there a C++ decompiler? I have a program in which I've lost the C++ source code. Are there any good C++ decompilers out there?
I've already ran across Boomerang.
A: I haven't seen any decompilers that generate C++ code. I've seen a few experimental ones that make a reasonable attempt at generating C code, but t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "139"
} |
Q: Is it possible to compile Python natively (beyond pyc byte code)? I wonder if it is possible to create an executable module from a Python script. I need to have the most performance and the flexibility of Python script, without needing to run in the Python environment. I would use this code to load on demand user mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Is there a way to change the environment variables of another process in Unix? On Unix, is there any way that one process can change another's environment variables (assuming they're all being run by the same user)? A general solution would be best, but if not, what about the specific case where one is a child of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "119"
} |
Q: WebSphere App Server Not Compiling JSP/Tag Libs This is a problem that only occurs on application update (only tested through Admin Console, not CLI). Also, this is only happening on our development environment, which is identical to our prod env. On uninstall/install, everything is compiled properly. However, th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the purpose of each of the different UIDs a process can have? Real UID, effective UID, and some systems even have a "saved UID". What's the purpose of all these, especially the last one?
A: The real uid is the id of the user that launched a process.
The effective uid typically is the same as the real uid. It... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: In SQL Server 2005, how do I set a column of integers to ensure values are greater than 0? This is probably a simple answer but I can't find it. I have a table with a column of integers and I want to ensure that when a row is inserted that the value in this column is greater than zero. I could do this on the code ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: jQuery .ready in a dynamically inserted iframe We are using jQuery thickbox to dynamically display an iframe when someone clicks on a picture. In this iframe, we are using galleria a javascript library to display multiple pictures.
The problem seems to be that $(document).ready in the iframe seems to be fired too s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "190"
} |
Q: I/O Performance Sanity Check - Checking for a file's existence Are you aware of any serious performance problems with checking if a file exists before you open it and send it? The context for this is a web application that serves up files dynamically via an ASP page. I was told that there is no check for whether or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Printing a Collection in WPF Is there any way to print in memory collection or variable size in WPF?
I am using the following code in which I print the ListView control. But when the content is larger than the vertical scroll bar takes over and cuts the content.
PrintDialog printDialog = new PrintDialog();
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why is my asp:TreeView selected node reset when in an UpdatePanel? I have an asp.net 2.0 page that contains 2 UpdatePanels.
The first panel contains a TreeView control, when I select a node in the three view control it triggers an update of the second UpdatePanel only. This much is behaving correctly.
There are two ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Master page from external library I want to put my master pages in a central library so I can use them in several projects without having the maintanance nightmare.
Everything is refactored in a generic and central way, they are all in a "shared" namespace.
But if put them in a seperate project, I can't reference th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: CMapStringToOb::Lookup Won't Work with Japanese Characters Does anyone know why CMapStringToOb::Lookup doesn't work in Japanese? The code loads a string from the string table, and puts it into a CMapStringToOb object. Later it loads the same string from the string table (so it is guaranteed to be exactly the same) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sometimes can't delete an Oracle database row using Django I have a unit test which contains the following line of code
Site.objects.get(name="UnitTest").delete()
and this has worked just fine until now. However, that statement is currently hanging. It'll sit there forever trying to execute the delete. If I just... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Globalizing runtime generated assemblies Background
A project installs some files that contain all the elements to define a UserControl - some user source, a CodeCompileUnit for designer code, and a resx file. At runtime, these files are compiled into an assembly and the classes are consumed by our main application ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET trusted DB connection to other server works in Casini, not in IIS Our website connects to a database correctly when running the website locally using the built-in web server. But, when we deploy the site to our server running IIS, we get a database connection error. The database server is different from ou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How would you implement salted passwords in Tomcat 5.5 My web application is relying on container-managed security and I'm wondering if it's possible to use salted passwords at all. As far as I can tell it's easy enough to store digested passwords in a database by just configuring a JDBC or DataSource Realm, but the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Setting Up a Git Prototype I'm exploring git to see how it might work for my company. I've got git installed and I need to know a couple things:
*
*How can I set up a git server on my computer to act as my central repo?
*I'm trying to figure out how to manage my workflow with just the GUI on Windows (using the G... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Page sliding on a desktop webapp similar to iPhone webapps I've looked at ciui and really liked the way that certain links will slide out the existing content and load new content into the DOM, or slide back.
Is there a way to quickly create a work-a-like with the additional animation support in jQuery, scriptaculou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a linq-y way to union collection properties of a collection of objects? Sorry, that title just hurts. I'm wondering if there is a Linq to collections extension method that collapses the following code segment into a single line:
public IEnumerable<Child> GetAllChildren(IEnumerable<Parent> parents){
var ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I get a directory listing in Perl? I would like to execute ls in a Perl program as part of a CGI script. For this I used exec(ls), but this does not return from the exec call.
Is there a better way to get a listing of a directory in Perl?
A: exec does not give control back to the perl program.
system will, b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: What can cause intermittent ORA-12519 (TNS: no appropriate handler found) errors We are running our Junit 4 test suite against Weblogic 9 in front of an Oracle 10 database (using Hudson as a continuous integration server) and occasionally we will get an ORA-12519 crash during script teardown. However, the error is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: When would you use the "protected internal" access modifier? As you may already know, the .NET Framework's protected internal access modifier works in a strange way: It doesn't mean the class is protected AND internal, it says the class is protected OR internal; that is, the modified class or member can be accessed ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Displaying a Tree Structure in Crystal Reports Does anyone know of a way to represent a tree structure in Crystal Reports?
My big issue is that I don't know the depth of the tree. It is represented in a database table with a simple "childId -> parentId" relationship.
A perfect example would be to open Windows Explo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hooking softkeys on Windows? My laptop has a mysterious "AV Now" button on it, which would usually launch Samsung's "AVStation Now" application. I don't have this application installed, so I'd like to get this button to do something else.
So (and this question can be generalised to any keyboard with softbuttons on i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sql Server Job steps I am dynamically adding steps to a Sql Server Agent Job, but I need to get the last step id to determine the next id in the sequence. I cannot seem to find any built in sps that can give me this information.
A: will just hit up the sysjobsteps table and grab max id....that will work
| {
"language": "en",
"url": "https://stackoverflow.com/questions/205177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is a DOCVARIABLE in word What is a DOCVARIABLE in Microsoft Word 2003? How do I set it? How do I make it display in my Word document?
A:
You can use the Microsoft Visual Basic for Applications Variables collection to set and retrieve the contents of a string variable in a Word document or template.
Also, you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How to print a PDF from the browser In a Web application, is it possible to force a PDF file to be printed on the client? If the browser is configured to open the PDF inside the window, I guess that calling window.print() will work, but some browsers (like mine) are configured to open the PDF externally.
A: <html>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Reusing a resultMap for different column names Is there a way of reusing the same resultMap multiple times in a single query.
For example, suppose I have a "foo" resultMap:
<resultMap id="foo" class="Foo">
<result property="Bar" column="bar" />
</resultMap>
Is there a way to define another resultMap that reuses t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Encryption of SOAP message in Axis 2 I need to use encryption (and signature) for a web-service (server side). I use axis2 and successfully added the rampart module (for WS-Security implementation).
But rampart page (http://ws.apache.org/axis2/modules/rampart/1_2/security-module.html) is missing examples and the sam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Generation of designer file failed: The directive is missing a 'tagprefix' attribute When adding a reference to a user control in my web project, I type
<%@ Register
Then the IDE steals my focus and puts it in the Error List pane, on the error
"Generation of designer file failed:
The directive is missing a 'ta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the 'correct' way of registering/installing an Assembly to the GAC? There seems to be lots of different ways to register assemblies with the GAC, as in, they 'work'. However, what's the "proper" way of doing it?
In response to Lou Franco (and gacutil):
I'm using Gacutil for development, but it seems to me to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Select from same table as an Insert or Update Clearly the following is incorrect.
INSERT INTO `aTable` (`A`,`B`) VALUES((SELECT MAX(`A`) FROM `aTable`)*2),'name');
I get the value:
SQL query:
INSERT INTO `aTable` (`A`, `B` )
VALUES
(
(
SELECT MAX(`A`)
FROM `aTable`
) *2
, 'name'
)
MySQL said:
1093 - Y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Starting a new database driven python web application would you use a javascript widget framework? If so which framework? I am starting a new web application project. I want to use python as I am using it at my bread-and-butter-job.
However I don't want to reinvent the wheel. Some things I have thought about:
*
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: VBA watch file in use I"m looking for something (Win API calls or whatever) to notify me when a file becomes available for editing (i.e. no longer in use). Should I set up a timer to check the files on some interval or is there a good way to set up a watch on the file?
A: FileSystemWatcher doesn't help, nor does t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I initialize a blank database as per a populated dataset? Initialization would include creating all the required tables, constraints and populating the tables.
edit: Is there already a project doing this?
A: Create a script that is either part of of the end of your database creation script, or runs after it.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why can final constants in Java be overridden? Consider the following interface in Java:
public interface I {
public final String KEY = "a";
}
And the following class:
public class A implements I {
public String KEY = "b";
public String getKey() {
return KEY;
}
}
Why is it possible for cla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Axis2 Web Service Client Generation - Types without modifying the client Is it possible with Axis2 and Eclipse to generate a Web Service client and have it use java types that you already have in packages instead of creating it's own types. Reason being of course if I have type A already created and it creates it's... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: IE: Choose a digital certificate from a blank, empty list I've created a web application that I've hosted with IIS 7 on a Windows Server 2008 machine. I've loaded a security certificate for secure.xxxxx.com.
IIS 7 Server Certificates http://img401.imageshack.us/img401/324/certxx6.gif
When I browse to the web site w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Architecting a Work Item Processing System with Modified FIFO Semantics in Windows I’m building a system that generates “work items” that are queued up for back-end processing. I recently completed a system that had the same requirements and came up with an architecture that I don’t feel is optimal and was hoping f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Customizing schema with Sync Framework i sync a database via wcf service to sql ce databases on my clients.
however, i don't want the schema generated on the client side to be the
same, as the one on the server.
is there a way to customize the schema returned to the client syncproviders?
A: Have you looked at Colum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Migrating from other Content Management Systems to SharePoint I am currently working on a project which requires migration of content from different content management Systems to SharePoint. Are there any good, preferably open source, tools that would help me do this? Also, what are the best practices that I would h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ActiveX plugin causes ASSERT to fail on application exit in VS2008 My MFC application using the "ESRI MapObjects LT2" ActiveX plugin throws an ASSERT at me when closing it.
The error occurs in cmdtarg.cpp:
CCmdTarget::~CCmdTarget()
{
#ifndef _AFX_NO_OLE_SUPPORT
if (m_xDispatch.m_vtbl != 0)
((COleDispatch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Project Management + SCM for techies and non-techies? I've recently begun evaluating a few project management projects for the company I work for. It's the classic case - growing company looking for the right solution (meaning, free or really cheap). It's a combination shop - Windows, Macs, and Linux on the deskto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: TSD3004 error with Visual Studio 2008 Database Project I am using Visual Studio Team System 2008, version 9.0.30729.1 SP. I have a database project that I was working with yesterday with no issues - I was able to build and deploy the database successfully. Today, however, when I open the solution I receive what is l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to delete a row from a GridView using non-visible data? I'm writting a simple prototype front end using a GridView that is populated via function, rather than being linked directly to a SqlServer data source.
So I can delete a row/record from grid/underlying database I am currently
*
*Setting the AutoGenerate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Preserve white space in string with XmlTextWriter.WriteString I am writing an XML document in C#.
I have something like this...
string output = "REAPP DUE NO OF M CASE NBR APPL NBR DATE GRPS M CASE NBR APPL NBR DATE GRPS _ _ ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Delete file contents from SVN history I have a local svn repository in my PC, I have been using it for a hobby project and it wasn't meant to be accessible to anyone, so I commited files with passwords in them.
Now, I'm thinking of making the repository available for other people and I don't want to have that data t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Why does my attempt to trim strings in a List not appear to work? I tried the following code in LINQPad and got the results given below:
List<string> listFromSplit = new List<string>("a, b".Split(",".ToCharArray())).Dump();
listFromSplit.ForEach(delegate(string s)
{
s.Trim();
});
listFromSplit.Dump();
"a" and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Migrating a Character Based Oracle Form I have an OLD server running DG/UX that will in the near future be unsupported. I have some character based oracle forms that need to be migrated off of this machine. Does anyone know what sort of migration strategy Oralce has for upgrading these Character Based reports. It do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: which db should i select if performance of postgres is low In a web app that support more than 5000 users, postgres is becoming the bottle neck.
It takes more than 1 minute to add a new user.(even after optimizations and on Win 2k3)
So, as a design issue, which other DB's might be better?
A: Please change the OS un... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Which SMS aggregators also provide voicemail services? I am researching companies that provide both SMS and voicemail services via an API call. I want to be able to contact users (most of whom are US-based) via both text-message and voicemail. The idea is that our web server would connect to the SMS/voicemail provid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: MS SQL - MySQL Migration in a legacy webapp I wish to migrate the database of a legacy web app from SQL Server to MySQL. What are the limitations of MySQL that I must look out for ? And what all items would be part of a comprehensive checklist before jumping into actually modifying the code ?
A: First thing I woul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySQL LEFT JOIN SELECT not selecting all the left side records? I'm getting odd results from a MySQL SELECT query involving a LEFT JOIN, and I can't understand whether my understanding of LEFT JOIN is wrong or whether I'm seeing a genuinely odd behavior.
I have a two tables with a many-to-one relationship: For every... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Oracle database allows invalid time portion of datetime column values under what circumstances? This case arises in a real-life situation where invalid data was in (and continuing to come into) an Oracle database which is extracted into a data processing system in Focus. Focus would choke and die on some rows with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Flex: Call function from included component This is similar to my previous posting. But this time I want to call a function that exists on the main mxml page.
This is my main mxml page:
main.mxml
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:ns1="*">
<mx:Script>
<![CDA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What are the core elements to include in Support Documentation? I have created an application which needs 'hand-over' to the support group in the next month.
The application is fairly small (2 months development), and consists of two client side applications and a database, it's written in c# for the windows platfor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Transform a String to URL standard String in Java I have a String such as:
Cerepedia, una apliación web
I would like to transform it into something URL valid such as:
Cerepedia,unaaplicacionweb
Note: the special character transformation and spaces removal.
By the way, are commas allowed in URLs?
A: Have you lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Regular Expression Uppercase Replacement in C# I have the following C# which simply replaces parts of the input string that look like EQUIP:19d005 into URLs, like this:
input = Regex.Replace(input, @"(EQUIP:)(\S+)", @"<a title=""View equipment item $2"" href=""/EquipmentDisplay.asp?eqnum=$2"">$1$2</a>", RegexOptions... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Cocoa Bad Habits What are those bad habits you've developed since you've started coding in Cocoa?
I think making a list of bad habits and actively adding to it and, more importantly, breaking those habits is a good technique to produce your code quality. So start now, get your bad habits off your chest. Maybe other ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: link_to_remote versus render Is it possible to reload a page that was loaded thru link_to_remote? I'm doing this in my controller:
def create
if captchas_verified
do_something
else
render :action=>'new'
end
But when the captchas is wrong, it do not render a form that is inside of the new template. By the way... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Random string that matches a regexp How would you go about creating a random alpha-numeric string that matches a certain regular expression?
This is specifically for creating initial passwords that fulfill regular password requirements.
A: If you have a specific problem, you probably have a specific regular express... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: How do you refactor? I was wondering how other developers begin refactoring. What is your first step? How this process (refactoring) differ if you refactor code which is not yours? Do you write tests while refactoring?
A:
What is your first step?
The first step is to run the unit tests to make sure they all pass.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Rounded Corners on UIImage I'm trying to draw images on the iPhone using with rounded corners, a la the contact images in the Contacts app. I've got code that generally work, but it occasionally crashes inside of the UIImage drawing routines with an EXEC_BAD_ACCESS - KERN_INVALID_ADDRESS. I thought this might be rel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: NHibernate: uninitialized proxy passed to save() and cascade I keep getting an NHibernate.PersistentObjectException when calling session.Save() which is due to an uninitialized proxy passed to save(). If I fiddle with my cascade settings I can make it go away, but then child objects aren't being saved.
The only oth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: DOS batch files: How to write to the prompt and stay in the same line to input text I like to know if there is a way to read the user input inside a batch file, because i have a file named: "fif.bat" that recives two parameters (just call them paramA and paramB) so i execute the file like this:
fif paramA paramB
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Testing IP based geolocation We are implementing an IP based geolocation service, and we need to find some IP's from various markets (LA, NY etc) to fully test the service.
Does anybody know of a directory where we could find what IP ranges are used where?
EDIT: We have already implemented the system, it uses a 3rd ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Validate field in model with no table (CakePHP) I've got a model in CakePHP that doesn't have a table, called Upload. I've got a validation in this Model for a field called source_id.
I've got a form that builds a nice looking $this-data, giving me a well formated set, including:
$this->data['Upload']['source_id']
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Named blocks to limit variable scope: good idea? For years, I've been using named blocks to limit the scope of temporary variables. I've never seen this done anywhere else, which makes me wonder if this is a bad idea. Especially since the Eclipse IDE flags these as warnings by default.
I've used this to good effec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: How to encrypt a value on the client and pass it through a web server without decrypting it Hey everyone, I am researching a project where we would need to keep a value encrypted from the client all the way to a black box system without decrypting it at any point in between. We are using SSL between the browser and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: robocopy, jungledisk file copy problems I'm a huge fan of robocopy and use it extensively to copy between various servers I need to update.
Lately I've been archiving to an Amazon S3 account that I access via a mapped drive using JungleDisk. I then robocopy my files from local PC to S3.
Sometimes I get a very stran... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using regex to replace all spaces NOT in quotes in Ruby I'm trying to write a regex to replace all spaces that are not included in quotes so something like this:
a = 4, b = 2, c = "space here"
would return this:
a=4,b=2,c="space here"
I spent some time searching this site and I found a similar q/a ( Split a string... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: openGL SubTexturing I have image data and i want to get a sub image of that to use as an opengl texture.
glGenTextures(1, &m_name);
glGetIntegerv(GL_TEXTURE_BINDING_2D, &oldName);
glBindTexture(GL_TEXTURE_2D, m_name);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, G... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do I create a stored procedure that will optionally search columns? I'm working on an application for work that is going to query our employee database. The end users want the ability to search based on the standard name/department criteria, but they also want the flexibility to query for all people with the fir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: how to use google feed api to detect feeds updates Because I run a blog aggregator website which checks a large list of RSS feeds for new posts every hour so I will be happy if its possible to use google feed api or Google AJAX Feed API instead of making the cron jobs to read the whole feed to know if its updated or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Passing variable number of arguments around Say I have a C function which takes a variable number of arguments: How can I call another function which expects a variable number of arguments from inside of it, passing all the arguments that got into the first function?
Example:
void format_string(char *fmt, ...);
voi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "354"
} |
Q: Why does a deleted file reappear in Vista? I have an automated test running on my program that generates some large MPG files along with other files. After running the test, I have the script clean up after itself. The other files (a mix of binary and text files) are removed with no problems. The MPG files, howev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: XML From a Web Service Call Visual Studio makes calling a web service easy, trying to figure out what is going on under the covers is difficult.
How can I see the actual XML generated from my .Net app when making a call to a web service?
A: MSDN Example code that implements a TraceExtension for SOAP; You can use as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: The most sophisticated way for creating comma-separated Strings from a Collection/Array/List? During my work with databases I noticed that I write query strings and in this strings I have to put several restrictions in the where-clause from a list/array/collection. Should look like this:
select * from customer
wher... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "99"
} |
Q: How do you organise your ATG projects? If you develop for ATG Dynamo, how do you structure your modules and dependencies?
How do you structure the projects? source directories, JARs configs etc.
How do you build and deploy? What tools do you use?
A: We have a monolithic architecture with a single ATG module. We ori... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Have trivial properties ever saved your bacon? There's a lot of advice out there that you shouldn't expose your fields publically, and instead use trivial properties. I see it over & over.
I understand the arguments, but I don't think it's good advice in most cases.
Does anyone have an example of a time when it rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: At runtime, find all classes in a Java application that extend a base class I want to do something like this:
List<Animal> animals = new ArrayList<Animal>();
for( Class c: list_of_all_classes_available_to_my_app() )
if (c is Animal)
animals.add( new c() );
So, I want to look at all of the classes in my ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "162"
} |
Q: How do you use querystrings with ASP.NET routing? The new ASP.NET routing is great for simple path style URL's but if you want to use a url such as:
http://example.com/items/search.xhtml?term=Text+to+find&page=2
Do you have to use a catch all parameter with a validation?
A: You can match querystring parameters with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: sql server 2005 attach database broken I need to reproduce a bug, and a guy from the other team has sent me a .mdf and .ldf files from his sql server 2005 instance. When I attach the database, all I get is empty tables, even though file is 2 mb large. The db contains 2 tables that have, among other thing, a varbinar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I use Visual Studio's "Code Snippet" feature while editing a .aspx file? I use Visual Studio's "Code Snippet" feature pretty heavily while editing c# code. I always wished I could use them while typing out my aspx markup.
Is there a way to enable code snippet use in an aspx file editor window?
Are there a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Are all pages within an ASP.Net application ran in the same appdomain? I understand that requests are served by different threads, but do they all come from the same appdomain, too?
A: Yes, they are. This is how one web.config serves the entire scope of the web application. One configuration file per appdomain is a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to change MySQL root password to default? My initial installation for the MySQL had no password for root. I assigned a password for root and everything worked fine. Due to some reason (don't ask why) I had to revert back to the original settings where root didn't have any password.
I changed the root password to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Iterate through a contacts properties using outlook I want to iterate through a contacts properties and add those that contain the word "Number" to a list with the value, i tries using reflection but it doesn't work.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Javascript - loading/busy indicator or transparent div over page on event click i got a client side javascript function which is triggered on a button click (basically, its a calculator!!). Sometimes, due to enormous data on the page, the javascript calculator function take to long & makes the page appear inactive t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: SharePoint (MOSS) hosting with custom code allowed I'm looking for a SharePoint (MOSS) shared hosting provider that supports deployment of custom solutions (.WSPs) - it'd be okay if it was medium trust. I'm building a public Internet site on SP and the client doesn't want to host it or pay for the license all up fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Error when using extension methods in C# I came across an issue that makes me think there is bug in the 3.0 framework. When I try to use extension methods I get the following error:
Missing compiler required member
'System.Runtime.CompilerServices.ExtensionAttribute..ctor'
When using this simple code:
public stati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "59"
} |
Q: Best pattern for simulating "continue" in Groovy closure It seems that Groovy does not support break and continue from within a closure. What is the best way to simulate this?
revs.eachLine { line ->
if (line ==~ /-{28}/) {
// continue to next line...
}
}
A: You can only support continue cleanly,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "70"
} |