text stringlengths 8 267k | meta dict |
|---|---|
Q: Protecting image media in an web application we are maintaing a database of image media in a large scale webapplication. The high resolution jpgs are big (> 15MB) and must not be made available for download in any way. Now we need to provide access to the details (crops) of the images to the clients (like a zoom-in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Configuring root directory internal ASP.NET server My ASP.NET always starts like this with the internal server:
http://localhost:50793/Website/
I use FckEditor which points to http://localhost:50793/fckeditor
How do I configure the server that it servers my folder "Website" as the root?
A: Go click on the website p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Convert utf8-characters to iso-88591 and back in PHP Some of my script are using different encoding, and when I try to combine them, this has becom an issue.
But I can't change the encoding they use, instead I want to change the encodig of the result from script A, and use it as parameter in script B.
So: is there ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: How do I get the default temporary directory on Mac OS X? I'd like to create some directories of data for some unit tests and I'd like these directories to be in the default temporary directory for the user.
I could just create a subdir under /tmp I suppose, but I don't want to make an assumption about how somebody ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: How to increment a number in several files if the number is not always the same? I have several files containing this line
Release: X
I want to increment X in all the files.
If X was constant between the files, I could have a bash script looping around the files and doing ($1 containing the former release number a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I render a different controller's action from within a view? I know that within a view I can render an action from the same controller using Html.RenderPartial. However, I need to render the output from an action under a different controller. What is the best way to do this? I would prefer to do this directl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I create an application in IIS 5.0 using powershell? I've worked out how to interact with IIS 6.0, but I can't find anything on the net about how to talk to IIS 5.0 - if indeed it's even possible?
I would like to write a script to create a temporary application, so I can copy some ASP.NET files there, build t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Disadvantages of MARS (Multiple Active Result Sets)? Does anyone know of any disadvantages of MARS (Multiple Active Result Sets)? Does anyone know of any reason why one should avoid using MARS, like cases where cursors are more useful then MARS.
A: There are apparently at least two known (potential) drawbacks (fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "93"
} |
Q: Should i write my own flash-server in Erlang or use Red5? I'm a student about to start my exam project, where I will be responsible for the server implementation of an online game targeting the flash player.
I have a hard time to decide wether i should write my own lightweight server in Erlang or use the open source... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is WideString identical to String in Delphi 2009 I'm getting some weird behaviour recompiling some applications in 2009 that used widestrings at various points.
In a Delphi 2009 App is Widestring identical to String?
A: It seems the answer is here:
The most dramatic change in Delphi 2009 is that the “string” type... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How do I create a custom control with a sub-panel that accepts other controls at designtime? I have written a custom control, that has several sub panels. I want these sub panels to accept any additional controls dropped on them at design time.
Unfortunately any control that gets dropped at design time ends up on my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Why would you use a message based system? What are the motivations for using a message based system?
I'm seeing a lot about service buses such as NServiceBus and Mass Transit and I'm wondering what the benefits of the underlying methodology are.
A: the benefits are really down to decoupling the parts of your applic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Out Of Memory using Postgres in Java Well, we have a web app, running over JBoss and we're having an "OutOfMemory" error when trying to insert a lot of rows in several tables of a postgres DB.
This is the complete environment for this error:
* JBoss 4.3.x GA
* Java 1.6.0
* Hibernate 3.0
* postgreSQL-8.3 (driver)
Abo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Where is a python real project to be used as example for the unit-test part? I'm looking for a python project to use as example to copy the design of the unit test parts.
The project should have these features:
*
*its code is almost fully unit tested
*the code is distributed in many packages, there are more that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: "Add to favorites" with JavaScript in Opera How to make this work in Opera? I found this piece of code for Opera, but it doesn't work for me:
function AddToFavorites(title, url) {
if (window.sidebar) { // Mozilla Firefox Bookmark
window.sidebar.addPanel(title, url,"");
return false;
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Allow users to insert a TAB into a TextBox but not newlines I want to have a TextBox which does accept the TAB key (and places a TAB, ASCII 0x09, \t accordingly into the textbox) instead of jumping to the next control. The TextBox has a property AcceptsTab, which I have set to true but this does not give the desired... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Add extra column to fill out space in datagridview C# I have a datagridview which im binding DataTable to. What I want do is add an extra column which will fill out the remaining gap in the windows form. At the moment I only have 3 columns so the width of all the columns is only about half the size of the windows fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using cURL and batch line iterations I have a folder full of files i need to post to a webservice using cURL but i'm not sure on the whole variables and iterations in batch files thing.
I know the syntax for curl should be
c:\curl\bin\curl -X POST -F File=@[filename] -F "title=[title]" -F "notes=[notes]" "http://xx... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Localizing a WinForms Application with Embedded WPF User Controls The application I'm trying to localize is a WinForms application that has a few hosted WPF user controls (WPF user controls hosted in an ElementHost WinForms control).
I use resx files to localize the WinForms, which VS2008 manages quite well.
The pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem inserting string or NULL into SQL Server database I'm having trouble coming up with the proper syntax for allowing either a string or a NULL to be passed to the database. Here's my code:
string insertString = String.Format(
@"INSERT INTO upload_history (field1, field2, field3)
VALUES ('{0}', '{1}', ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Access 2007 - "Could not update; currently locked" First sorry for my bad english but I'll try my best.
Right now I'm programming a .net application using Access 2007 as datastore.
In a nutshell: I have two threads. One thread inserts a row with a transaction into a table. The other thread updates many rows in const... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to return XML in ASP.NET This is a very basic question. I'm just on my mission to learn ASP.NET (C#). I've done classic ASP and PHP before.
For this project I have ASP.NET 2.0 at my hands.
I have a Web Form that has a jqGrid Datagrid that I want to feed XML data via AJAX. jqGrid is not the problem here, though. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ajax hyperlinking I have a problem in giving Ajax functionality to a hyperlink. I have files Link.html and GetCustomerdata.php. The main function of the HTML is send the data to getCutomerData.php and shows flash as "success".
And also I do not want hyperlinking,
<a href="#"
Instead I need it in terms of:
<a href=G... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I create a new windows form, and associate it with an already existing thread? I'm trying to write a chat client in C# and have run into a problem.
How it works is that the client polls the server every 1 second to see if there are any new actions to take (for example display a message in a channel, or whatev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Closing a pop-up window after writing file to response In my code, I am using JavaScript to fire off an window.open() event on an ASPX page. I´m outputting a file in the Page_Load() event of this page:
Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
Response.Charset = "";
Response.ContentType = "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: exporting access tables to excel I am trying to use the following code to export tables from access to excel
I am getting error object does not support property or method at the end
Set objexcel = New Excel.Application
objexcel.Visible = True
If Dir("C:\reports\Data_Analysis1.xls") = "" Then
objexcel.Work... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Are there any good OSS instances of converting an Exception to HTML (C#)? Working with EntLib 4.1 and want the Exception block to send an email with error information. All that is fine but out of the box I have either the Text or Xml formatter to work with. I would love an Html representation that which brings in ot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to be able to select a portion of the screen? In some screen capture software when you press a key it's possible for the client to select a portion of the screen. How can I implement that in my software written in framework 2.0 .Net?
Here is a image of what I would like to do : http://img341.imageshack.us/img341... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TDBGrid onSelect I would like to customize TDBGrid:
1) add onSelect/onUnselect events - e.g. good for show count of selected items.
2) remove select item on left mouse click. I have inherited TDBGrid and rewritten MouseDown, but then it is not possible to move or resize columns :(
So, how to do it?
D2009
A: You wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How are you doing authentication in your Flex app? Do you build all your login, account creation, password recovery, etc. into your Flex app, or do you keep all of that in web pages and only redirect to the .swf on successful login?
A: The way we do it, is
1) Flex front end talking via remote object to a Java Facad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: NUnit [TearDown] fails -- what process is accessing my files? Final Edit: I found a solution to the problem (at the bottom of the question).
I've got an Nunit problem that's causing me grief. Edit: actually it looks more like a SQLite problem, but I'm not 100% certain yet.
My TestFixture has a setup that generates a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Apache Web Server Redirect Post Request I configured apache on 4 ports (with virtual hosts as some ports used HTTPS) and the aim is to redirect post requests to different servlets running in a TOMCAT instance on some other machine. The calls are made from a httpclient (java client) . When I run the client it throws ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: need help-variable creation in Python I want to create variables as a1,a2,a3...a10.
For that I used a for loop. As the variable in loop increments I need to create a variable as above.
Can anyone give me an idea?
At the time of creation I also need to be able to assign values to them.
That's where I'm getting syntax... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Character encoding JSP -displayed wrong in JSP but not in URL: "á » á é » é" I have this Web Application in JSP running on JBoss Application Server. I am using Servlets for friendly urls. I'm sending search parameters through my JSP's and Servlets. I am using a form with a text box, the Servlet
The first Servlet ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to append the contents of a list at the end of the other list? How do I append the contents of one list at the end of another list?
A: List.addAll()
A: List finalist = a + b
Example:
List a = [1,4]
List b = [2,3]
List c = a+b
Result:
c = [1, 4, 2, 3]
A: listA.addAll(listB)
| {
"language": "en",
"url": "https://stackoverflow.com/questions/374586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How do I create a multiple tab Excel workbook on a client machine? I have a tabbed series of grids on a data preview page. I now need to import the data from each grid into its own sheet in an Excel workbook.
How could I do this?
BTW, this is on a Mac or a PC.
A: This is for .net C#
Response.Clear();
Response.Buff... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374597",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I generate multiple classes from xsd's with common includes? Aloha
I received a few nice xsd files which I want to convert to classes (using xsd.exe)
All the xsd's have the same includes, like this:
<xs:include schemaLocation="kstypes.xsd" />
<xs:include schemaLocation="ksparams.xsd" />
When I generate a cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SWT Notification animated box (a.k.a toaster) needed In a Java project (SWT desktop app), I want to inform the user about events through animated notification box (actually, it's not required to be animated). Something like MSN or any other IM client.
There is JToaster for Swing, but I wonder if there isn't any othe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What should I do in order to succesfully link a C++ Builder 6 project in C++ Builder 2009 without unresolved external references to CodeGuard things? Here's what I did:
*
*I've opened a C++ Builder 6 - project in C++ Builder 2009.
*Auto-converted it to a C++ Builder 2009 project.
*Told it (C++ Builder 2009) to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can you conditionally remove entire columns from a two dimensional array in Ruby? I have several large csv files with thousands of columns that I need to import and then remove entire columns based contents of the column. Is there an easy way to handle this in Ruby?
I could transpose the data and then just dele... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I find all the subsets of a set, with exactly n elements? I am writing a program in Python, and I realized that a problem I need to solve requires me, given a set S with n elements (|S|=n), to test a function on all possible subsets of a certain order m (i.e. with m number of elements). To use the answer to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "81"
} |
Q: ASP.NET configuration not attached with the library I'm working on a solution that has two projects: One ASP.NET web application, and one Custom Web Control library.
The custom control library is used in the asp.net application. When I compile the solution, the app.config file of the custom web control library is n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Script.Net vs Nemerle I was looking into scripting to be incorporated into my apps. Then I bumped into Script.Net and Nemerle. I do know that they have different syntax and Nemerle supports macro but not Script.Net. But I would like to know more about their differences in terms of functionality, usage and flexibilit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Help Me Solve Font Sizing Issue There's been this ongoing display issue my team has been having with the font size rendering larger than it should within the product. We've been having a heck of time pinpointing what it is.
Here's a screenshot of a before and after shot:
http://quickbase.intuit.com/images/font-issue... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I capture response of form.submit I have the following code:
<script type="text/javascript">
function SubmitForm()
{
form1.submit();
}
function ShowResponse()
{
}
</script>
.
.
.
<div>
<a href="#" onclick="SubmitForm();">Click</a>
</div>
I wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "163"
} |
Q: How to check if an object is nullable? How do I check if a given object is nullable in other words how to implement the following method...
bool IsNullableValueType(object o)
{
...
}
I am looking for nullable value types. I didn't have reference types in mind.
//Note: This is just a sample. The code has been si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "230"
} |
Q: Tool to convert MS-Access Database to SQL script Our Software Package uses MS-Access Database, this database has been modified many times, so, it's a bit complicated to just see the files (relationship between tables are small hell), anyway,
Is there a way or program to convert this mdb file to SQL Script (Any sort... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Returning Japanese characters via char* in an Excel XLOPER I am retrieving Japanese characters from a data source and I want to return this data to Excel in an XLOPER. I am using a Japanese version of Excel 2003 (hence XLOPERs and not XLOPER12s).
wchar_t* pszW = OLE2W(bstrResult); //I have the data I am trying to c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does Ant offer a way to bypass dependency? The build.xml has a test and a build target. The test target obviously depends on the build target.
How can I run the test target only, temporarily skipping the compilation, without modifying the build.xml file ?
I'm asking because the compilation is too long, and kept up... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Looking for an easy templating solution with ruby I am looking for a simple templating solution for ruby, i.e. something that will let me write php-like or jsp-like templates (html with embedded code tags), but in ruby.
jsp is no good for me, because most hosting services (I'm on dreamhost) don't support it on their... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why is "echo foo | read a ; echo $a" not working as expected? I could replicate the problem with various shells under FreeBSD, GNU/Linux, and Solaris. It had me head-scratching for more than an hour, so I decided to post the question here.
A: alternative:
echo foo | (read a ; echo $a)
Edit:
If you need $a outside... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Will an svn:external subdirectory sync with its HEAD revision upon every 'svn update' to the parent working copy? On this page in the Subversion manual, it says that "When you commit a change to the svn:externals property, Subversion will synchronize the checked-out items against the changed externals definition whe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374690",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: c# and xml-rpc.net: mismatch exception I'm using xml-rpc.net to access an e-commerce site (php) from an c# application. The code:
String[] fooResourcesReturn = FoobarProxy.resources(fooLoginReturn);
returns the following XmlRpcTypeMismatchException:
response contains struct value where string expected (as type Stri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL JOIN : Technical name for table identifier When I use A.column name, B.Column name where A = Table A and B = Table B , what is the technical name for the A.Column name? Is it a prefix, identifier or what else?
A: I have always seen it called an alias.
Edit:
Yeap!
A: They also call it a "Correlation Name"
http... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: VC++ 6.0 access violation when run in debugger I am trying to add enhancements to a 4 year old VC++ 6.0 program. The debug build runs from the command line but not in the debugger: it crashes with an access violation inside printf(). If I skip the printf, then it crashes in malloc() (called from within fopen()) and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Dependencies of references not copied to output directory I have a CommonUtils lib I have built into a dll which I file reference from several of my projects. CommonUtils depends on log4net.dll which was set as a file reference and copy-local=true when CommonUtils.dll was built. log4net.dll and CommonUtils.dll are n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: What is a good way to find a specific value in an XML document using C#? I'm calling a WebService exposed by Oracle that accepts an input of an ItemID and returns to me the corresponding Item Number. I want to grab the Item Number that has been returned out of the XML contained in the response.
The XML looks like th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to print to a null printer in .NET? I need to write a unit test for a method that will print a document. Is there an easy way to send the output to the Windows equivalent of /dev/null? I'm guessing that having our build server print a document on every check in is going to get expensive quickly. ;)
Ideally, t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why not upgrade to the latest .NET framework? I see a lot of people have .NET 2.0 or even 1.1 as a requirement for their projects. In my own workplace there is also lots of skepticism for upgrading to the latest and greatest .NET framework.
As a programmer I feel it is very frustrating working with the older framew... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: What all do I have to have to start learning Silverlight 2 for free? What do I need to install to begin learning Silverlight 2? I know how to build web applications and use c#, I just have very little experience with Silverlight. I used it a little when it first came out and decided to wait until more .net integrat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Count rows in an SQL table in O(1) I understand the best way to count the number of rows in an SQL table is count(*) (or equivalently count(PrimaryKey)).
*
*Is this O(1)?
*If not, why not?
Why not just implement a counter and return it for this specific query? Is it because this query is not a common use case?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: What SQL 2000 rights are required for creating SQL Agent jobs? It's been a long while since I looked at SQL Jobs on SQL Server 2000.
On SQL 2005, if I want to allow a user to create jobs etc I add the requisite login to msdb and assign one of the roles SQLAgentUserRole, SQLAgentReaderRole or SQLAgentOperatorsRole r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Understanding colors Kindly point towards theory/material to read for understanding colors and what makes a good color combinations. Mind it that I am not interested in say "Color combinations for web application" etc. More of the lines of say "Colors and humans".
Material free to read is what i am looking for.
Than... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: IOCP in custom thread pool I'm currently searching the internet for a custom thread pool implementation.
I found an implementation which uses IOCP's. I'm wondering what the benefit is, of using them? Do they provide work stealing, or something like that, I could really find an answer...
A: IOCP = "IO Completion Por... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Are there any plans to officially support Django with IIS? I say properly because everyone I have spoken to in the past said running Django on IIS was a hack. I had it working somewhat but it never did quite right and did feel like a hack. I like python but had to give it up because I could never make Django work ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Converting MBCS stream to UTF-8 and vice versa in C++ I'm using Visual C++ (VS2005) and compiling the project in Multibyte Character Set (MBCS). However, the program needs to communicate with a webapp (which is in utf-8) via XMLRPC. So I'm thinking maybe I can use MBCS internally and convert the strings to utf-8 bef... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Access: to export fields to excel based on a query I am looking to export a few files into Excel from MS Access based on querying a table.
It's like this the query will be
select * from table where field = 0
I would like to loop the query till field is 9 and I want to save each
result in a different name ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Should I use get_/set_ prefixes in Python method names? In Python, properties are used instead of the Java-style getters and setters. So one rarely sees get... or set... methods in the public interfaces of classes.
But, in cases where a property is not appropriate, one might still end up with methods that behave lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How do you test a file.read() error in Python? I have the following code (adapted from an example given in Dive Into Python) that reads the entire contents of a file into a buffer.
buffer = ""
try:
file = open(postFileName, 'rU')
try:
# Read the entire POST log file into a buffer
buffer += f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Chained IF structure Imagine this case where I have an object that I need to check a property.
However, the object can currently have a null value.
How can I check these two conditions in a single "if" condition?
Currently, I have to do something like this:
if (myObject != null)
{
if (myObject.Id != pId)
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Rolling and packing PHP scripts I was just reading over this thread where the pros and cons of using include_once and require_once were being debated. From that discussion (particularly Ambush Commander's answer), I've taken away the fact(?) that any sort of include in PHP is inherently expensive, since it requires ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cross Domain Javascript Bookmarklet I've been at this for several days and searches including here haven't give me any solutions yet.
I am creating a Bookmarklet which is to interact with a POST API. I've gotten most of it working except the most important part; the sending of data from the iframe (I know horrible! ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Boxing/Unboxing and Nullable? I understand that boxing and unboxing is about casting (real type to object... object to real type). But I do not understand what the MSDN say about it with the Nullable. Here is the text I do not understand:
When a nullable type is boxed, the common language runtime automatically boxe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: is there an argument to know you're on a views list page? I've had to move my page title into my node to accommodate a client need, but I'm unable to now get a title to display on a page view of my views list. The argument I have to display title on edit, admin and track pages is:
<?php if ($title && ((arg(2) == 'tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Subversive: can't commit files inside a tags folder I'm using Zend Studio 6.1 for Eclipse, which comes bundled with the Subversive plug-in.
My repo layout is:
/trunk/
/branches/
/tags/
My application code is in:
/trunk/application
I'm trying to add some view templates in:
/trunk/application/views/tags/index.tpl
B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do I get a specific drive's icon for any version of Windows? In a .NET WinForms app, how do I get a specific drive's icon (C:\ for example) for whatever version of Windows the client might be running?
A: I don't know if it will work, but you could try this, pointing at the drive root.
A: SHGetFileInfo is how t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Server certificate in IE6 We have an e-commerce site that uses certificates from Thawte, we had our certficate renewed in October. If you access https-pages from IE6 you get a warning that the certificate has expired, if you look at the expiration date it's actually the old certificate. Now, this doesn't happen at a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to configure svn Task in CruiseControl.net to detect subversion external changes I have a .net project in subversion which is contineously integrated with
Cruisecontrol.net.
i use Svn source control CCNET task.
The .net project library directory with set of reusable components configured as subversion externals... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I invoke an object dynamically in Perl Moose OOP? Here is classical object model:
class ViewBase
{
void DoSomethingForView() { } //May be virtual
}
class View1 : ViewBase //(derived class from ViewBase)
{
void DoSomethingForView() { }
void DoSomethingForView1Special() { }
}
class View2: Vi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: (QT/kdelib) how to know the end of a command in KTerminalInterface? I have a KTerminalInterface (from kparts) in my qt/kdelib app, and I run a command within it.
The problem is: how can I know if the program is terminated? I need to know it because at its end I must reset some variable.
Does anyone got a similar pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you start derby in network server mode and still get an embedded connection? I just want to know how I can start derby in network server mode and still be able to get an embedded connection?
Thank you.
A: You need to launch Derby in "embedded server mode". If you are already using Derby in embedded mode, thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I redirect based on referral in ColdFusion I have a coldfusion web site I need to change. Have no idea or experience with this environment (I do know ASP.NET). All I need to do is to write a condition based on the referral value (the URL) of the page, and redirect to another page in some cases.
Can anyone giv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Making PHP scripts time out so they don't kill my server The cause was probably that I ran out of disk space, causing everything to work strangely. I will leave this question up anyways in case anyone else has a similar issue.
I have a few PHP scripts that have hung for a long time, but apparently they are not reall... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I select only the latest entry in a table? I have a 3 table SQLServer Database.
Project
ProjectID
ProjectName
Thing
ThingID
ThingName
ProjectThingLink
ProjectID
ThingID
CreatedDate
When a Thing is ascribed to a Project an entry is put in the ProjectThingLink table.
Things can move between Projects. The Cre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can you stop an expander in a list box from collapsing when data changes? I have a screen with a ListBox of items. The item template contains an expander control with some of the data in the header and some of the data in the content part of the expander.
The data template for the ListBox ItemTemplate is simila... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to iterate over Hashtable in JSP I m doing a stuf in JAVA, as it is working fine.. now i need it to display in a browser using JSP, the following is my code..
Hashtable<String, Hashtable<String, Integer>> hash =
categoryCountManager.getFunctionWithSubFunctionCount(1L);
setCategoryDetails(ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I change the headers of the HTTP request sent by the browser? I'm looking into a restful design and would like to use the HTTP methods (POST, GET, ...) and HTTP headers as much as possible. I already found out that the HTTP methods PUT and DELETE are not supported from the browser.
Now I'm looking to get differe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "84"
} |
Q: Spring, Hibernate & JPA: Calling persist on entitymanager does not seem to commit to database I'm trying to setup Spring using Hibernate and JPA, but when trying to persist an object, nothing seems to be added to the database.
Am using the following:
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSour... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Can't re-add Service Reference Properly I've got a WCF service up and running on a server. We have a proxy class that we add all service references to, and I tried to add my service reference there. However, it's not exposing all of the methods, specifically the interface, allowing me to create an instance of it (th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the differences and possible similarities of closures and currying? I've read through some of the post on here about closures and currying but I feel like I didn't find the answer. So what's the differences and possibly the similarities of closures and currying? Thanks for the help :)
A: Currying is reall... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Can IntelliJ IDEA open more than one editor window for files from the same project? I can split editor panes horizontally or vertically, but it does not seem possible to view code in two separate physical windows. I am aware that Idea can open multiple projects in separate windows, but I'd like to be able to do thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: SugarCRM: How do I make "first name" and "salutation" required fields on the "Convert Lead to Contact" form? We use a customized installation of SugarCRM and I need to make a change to the "Convert Lead to Contact" form. On the form, only "last name" is marked as required, but if the user does not enter a salutation... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Web Framework that handles forms intuitively? Will be starting a web app that will have to provide many different HTML forms for data entry, so I was wondering if there is a web framework out there that does this in a clever way. generally when you have forms you have many considerations like navigation, validation,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Debug Installshield pendingfilerenameoperations that cause a reboot Starting with a already existing installscript 11.5 installer, we created a update installer (differential installer).
Given:
*
*V1 (first version of the software)
*V2 (second version of the software)
*V2P (differential installer between V1 and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Should I keep solutions and features in a 1-1 ratio? I have a complex sharepoint deploy with multiple EventReceivers and Workflows.
I also have schema changes to existing lists, adding new columns of metadata and changing existing columns.
Should I package a single feature, eventreceiver or workflow, to a single... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How Do I Follow A T-SQL Transaction? Are there any programs that will allow you to follow a sql transaction through to it's end? For instance, say I've inherited a rather complex sql database with a data dictionary. The data dictionary is pretty good, but not as good as say, SQL Doc. I've taken a look at Red Gate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Update a timestamp column I need to all of timestamps in a column the same amount.
I want to write an sql statement like:
update sometable set timecol = timecol + <4 months>;
A: update sometable set timecol = add_months(timecol,4);
See documentation
A: update sometable set timecol = timecol + interval '4' month;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Validating file types by regular expression I have a .NET webform that has a file upload control that is tied to a regular expression validator. This validator needs to validate that only certain filetypes should be allowed for upload (jpg,gif,doc,pdf)
The current regular expression that does this is:
^(([a-zA-Z]:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "101"
} |
Q: .net open source and running platform choices We have been asked to look into a fully open source solution for a big project, they want the project be as near to 100% Open Source as possible, mainly because as it's a community project there may be very little money available in the future except for the running of a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why does the BitConverter return Bytes and how can I get the bits then? As input I get an int (well, actually a string I should convert to an int).
This int should be converted to bits.
For each bit position that has a 1, I should get the position.
In my database, I want all records that have an int value field that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.