text string | meta dict |
|---|---|
Q: How to reset Performance objects in perfmon? When I launch perfmon and try to add a counter, the displayed performance objects are all numbers. How can I reset these Performance objects?
A: I found a way to solve the problem:
*
*copy C:\WINDOWS\system32\PerfStringBackup.INI from a PC where perfmon works correctl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Why does Date.parse not return a Date object? today1 = new Date();
today2 = Date.parse("2008-28-10");
To compare the time (millisecond) values of these I have to do the following, because today2 is just a number.
if (today1.getTime() == today2)
Why is this?
A: To answer the question in the title: Because they dec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Table NewRow() Causes Memory Leak Whilst investigating a memory leak I discovered that it was caused by calling NewRow() on a Table inside a loop many times. However the DataRow created was never added to the Table Rows collection and the Table Rows Count never got above zero.
My question is why does this use up mor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Is it possible to build an email reader for the Zune? Is it possible to build an email reader for the Zune through XNA ?
Version 3.0 allows us to connect to the Market place and download music directly from the Zune hence the nature of my question.
Edit: Buy a ZuneHD
A: No.
XNA 3.0 for the Zune does offer some netw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Rails meta plugin install script? I wanna see if there is an approach to pack a few plugins together as a meta plugin that install everything together automatically, works like a project template.
Why not a script? Because I want to put it in github so I don't have to worry about it when I am not with my own PC :) b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Math: Factorisation Omitting details of methods to calculate primes, and methods of factorisation.
Why bother to factorise ?
What are its applications ?
A: Asymetric encryption as RSA/DAS bases on the fact, that factorization is a very hard thing. If I give you a number, that when printed out is as large as a whole... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: use vimdiff with a diff file How can I use vimdiff to view the differences described in a diff file?
A: Instead of using /usr/bin/vimdiff command, try this:
$ vim file
:vertical diffpatch path/to/diff
(:vert diffpa for short.)
This is equivalent to calling vimdiff on the original file and the subsequently patched f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: Accessing control, ajax, asp.net I have one aspx page with some controls.
Also i have one DIV which is dynamically populated from AJAX call.
This AJAX call return couple of controls, for example HtmlInputText1 and HtmlInputText2.
When page is submitted, I can get values from this controls through Request.Form.
If p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the most secure hashing algorithm in the .NET framework? The size of the generated hash and the speed of the algorithm are not important. I'm really only interested in it being the most secure option. I don't want to use any third party libraries either.
The version of the .NET framework I'm using if 3.5 if ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is mutation testing useful in practice? Do you have any examples of real life applications of mutation testing? Does it work better than simple test coverage tools? Or is it useless?
What are the advantages/disadvantages of mutation testing in the real world?
A: I known that this is a old question but recently Uncl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: Understanding engine initialization in OpenSSL I'm trying to set up a basic test of HMAC-SHA-256 hashing but I'm having problems with the engine setup. Ideally I would like to set up only the HMAC-SHA-algorithm but so far I haven't even gotten the general case where load all the algorithms to work. Currently I'm get... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: SharePoint SSO with a PHP application on a different server? I need to implement a SSO between a SharePoint site and a custom PHP-based site which resides on a different domain. I need to use the SharePoint user accounts to log in the PHP site. (I'll have a full control over the PHP source)
Is this possible? Any tip... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Strange javascript error in ASP.NET TreeView control I’m using Treeview Control (ASP.NET 2.0) in a web control. The funny thing is, that everything is working fine : expanding, collapse, selecting a node etc. ,but after every click firebug shows an error : TreeView_SelectNode is not defined [Break on this error] Hel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Long strings with newlines I have seen C# code that uses the @ to tell the compiler the string has newlines in it and that it should be all in one line.
Is there something like that for C/C++?
Like if I want to put something like:
73167176531330624919225119674426574742355349194934
96983520312774506326239578318016984... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: do stdout output with specific speed For a load test of my application (under Linux), I'm looking for a tool that outputs data on stdout at a specific rate (like 100 bytes/s), so that I can pipe the output to netcat which sends it to my application. Some option for dd would be ideal, but I didn't find anything so fa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Regex to match all words except a given list I am trying to write a replacement regular expression to surround all words in quotes except the words AND, OR and NOT.
I have tried the following for the match part of the expression:
(?i)(?<word>[a-z0-9]+)(?<!and|not|or)
and
(?i)(?<word>[a-z0-9]+)(?!and|not|or)
but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Which SQL statement is faster? Which SQL statement is faster?
SELECT TOP 2 c1.Price, c2.Price, ..... c49.Price, c50.Price
FROM Table1 AS c1, Table2 AS c2, ..... Table49 AS c49, Table50 AS c50
WHERE c1.Date = c2.Date AND c2.Date = c3.Date ..... c49.Date = c50.Date
ORDER BY c1.ID DESC
OR
SELECT TOP 2 c1.Pric... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: algorithm for index numbers of triangular matrix coefficients I think this must be simple but I can't get it right...
I have an MxM triangular matrix, the coefficients of which are stored in a vector, row by row.
For example:
M = [ m00 m01 m02 m03 ]
[ m11 m12 m13 ]
[ m22 m23 ]
[ ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Implementing notification emails My client wants to send email announcements and reports for customers. Now. The python-side code doesn't seem too hard but there's the rest of the story.
What do I require in order to send such emails that won't end up getting blocked by email servers and clients?
A: Your program ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do i split a String into multiple values? How do you split a string?
Lets say i have a string "dog, cat, mouse,bird"
My actual goal is to insert each of those animals into a listBox, so they would become items in a list box.
but i think i get the idea on how to insert those items if i know how to split the strin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Most crucial elements in a light-weight C++ coding standard I've been involved in developing coding standards which were quite elaborate. My own experience is that it was hard to enforce if you don't have proper processes to maintain it and strategies to uphold it.
Now I'm working in, and leading, an environment eve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: What is your favorite bug/issue tracking system? And why? What is your favorite bug/issue tracking system? And why?
(Please answer this question only if you have used at least three different bug tracking systems for quite a long time. And please mention these systems as well.)
A: FogBugz is actually great, as it's... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using SVN to lock documents for editing and update notifications Recently developers highlighted that it is bit hard for them to keep track of which document has been updated. And they thus suggested that using SVN to keep track of document changes will be better as they will be able to know if document if being upd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there any way to view all event handlers of TextBox TextChanged event in Visual Studio debugger? When I add the textBox.TextChanged to watch list I get a message saying The event 'System.Windows.Forms.Control.TextChanged'
can only appear on the left hand side of += or -=
Is there any way to check what event's are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What SQL command grants a securityadmin access to a database? My account is in the securityadmin role and I cannot grant myself sysadmin permission. I wish to gain access to a database so I can add my account to a particular role within it.
As I don't yet have access to the database I can't use the UI.
Does anyone ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Force application to shut down (.net) I'm looking to force my application to shut down, and return an Exit code. Had a look on MSDN and I can see that in WPF the Application has a Shutdown method which takes an error code as a parameter, but there doesn't appear to be one for System.Windows.Forms.Application.
I can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Relative Positioning of DIV There is div named "dvUsers". there is an anchor tag "lnkUsers".
When one clicks on anchortag, the div must open like a popup div just below it.
Also the divs relative position should be maintained at window resize and all.
How to do that using javascript/jquery?
A: Perhaps you should lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dynamically Reassigning Filtered Text Box Extender I have a page with 8 Text fields, all these text boxes requires the same rules in regard to accepted characters/invalid characters.
My question is, should I have individual Filtered Text box Extenders for each Text Field or can I have a single Filtered Text Box Ext... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it correct to use single quotes for HTML attributes? Recently I've been seeing a lot of this:
<a href='http://widget-site-example.com/example.html'>
<img src='http://widget-site-example.com/ross.jpg' alt='Ross's Widget' />
</a>
Is it valid to use single quotes in HTML? As I've highlighted above it's also... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "77"
} |
Q: Oracle stored procedure with parameters for IN clause How can I create an Oracle stored procedure which accepts a variable number of parameter values used to feed a IN clause?
This is what I am trying to achieve. I do not know how to declare in PLSQL for passing a variable list of primary keys of the rows I want to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Using iptables to change a destination port Is it possible to change the destination port of a UDP packet using iptables?
I'm trying to get an SNMP agent to send out traps on 1620 instead of 162. Unfortunately so far I've only managed to change the source port:
iptables -t nat -A POSTROUTING -p udp
--dport 162 -j... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Reasons for having different UI Design for intranet and internet? We are currently having two UI design for internet and intranet the underlying reason being is that they both serve different purpose so they have different UI design.
But however users want to have a more synchronized look and feel between internet a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Escape path separator in a regular expression I need to write a regular expression that finds javascript files that match
<anypath><slash>js<slash><anything>.js
For example, it should work for both :
*
*c:\mysite\js\common.js (Windows)
*/var/www/mysite/js/common.js (UNIX)
The problem is that the file separa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How do I retrieve the name property of a radio button in c# I've created a series of radio button controls in C#. (radCompany, radProperty etc.)
I've set their group name to be the same (282_Type) so they function as a list of radio buttons.
How do I retrieve the name (like: ct100$m$dfgadjkfasdghasdkjfg$282_Type) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Are double and single quotes interchangeable in JavaScript? Consider the following two alternatives:
*
*console.log("double");
*console.log('single');
The former uses double quotes around the string, whereas the latter uses single quotes around the string.
I see more and more JavaScript libraries out there using ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2258"
} |
Q: Xcode Preprocessor Macros In Xcode, I can edit my preprocessor macros in the project settings. I want to create a macro that refers to an environment variable. Basically, I want to be able to refer to $SRC_ROOT in my code. What I currently have in my macros is:
SRC_ROOT=${SRC_ROOT}
but it isn't working.
A: In Xcod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why would someone use WHERE 1=1 AND in a SQL clause? Why would someone use WHERE 1=1 AND <conditions> in a SQL clause (Either SQL obtained through concatenated strings, either view definition)
I've seen somewhere that this would be used to protect against SQL Injection, but it seems very weird.
If there is injectio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "311"
} |
Q: JavaScript for...in vs for Do you think there is a big difference in for...in and for loops? What kind of "for" do you prefer to use and why?
Let's say we have an array of associative arrays:
var myArray = [{'key': 'value'}, {'key': 'value1'}];
So we can iterate:
for (var i = 0; i < myArray.length; i++)
And:
for (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "470"
} |
Q: Error handling using Soap Headers We are developing a new web service and are looking into the "best practice" for returning errors in the soap response.
We were looking into creating a error response object which every response would contain as a property. This seems a little heavy however and are wondering if i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: moq - good sample apps I know that there has been a couple questions about tutorials on moq. But I am wondering if there are any sample apps out there that use moq in the context of an n-tier business application using ado.net.
I find the tutes good, but they don't seem to bring everything all together into the big ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to make app fully SQL Server 2005 compatible? We have an application that use MSSQL, when we move to 2005, basically we recommend to our client to apply the backward compatibility package and that’s it, but somebody ask me what to do to be 100% compatible on 2005.
I was thinking on
1. Compatibility level: SQL Se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I unlock a file that is locked by a process in .NET I want my application to clean all the temp files it used, the problem is that not all the temp files are under my control, so I just want to "brutally" unlock them in order to delete them programatically.
A: Take a look at this article. I think that you'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: DLLs that require registration, used in different programs How do you organize installing different programs if these programs use the same DLLs which require registration.
The problem: if the user uninstalls the program that is installed later the other program will stop working as the registry entries now point t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CUDA Driver API vs. CUDA runtime When writing CUDA applications, you can either work at the driver level or at the runtime level as illustrated on this image (The libraries are CUFFT and CUBLAS for advanced math):
(source: tomshw.it)
I assume the tradeoff between the two are increased performance for the low-evel ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: Problem with Swing GUI on Macintosh I am new to Swing.
Are there any specific issues related to customizing the paint operation on the Mac?
I have developed a sample application using NetBeans + Swing on Windows. It is working fine. But if I run the same application on a Mac, panels' buttons' labels don't appear on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you report your project status? Currently I use the "One Page Project Manager" Excel Template for project status reports. It contains a summary of last week's work and a forecast for the next week. For all important tasks we track, if they are comleted or not. Everything on one page. I send this report every ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: The effect of static properties in a web context I need to change a static property on an object in our web application. The property has a default value that is hard-coded into the object. If I change the static property in my Application_Start does that change stick:
A) Forever (well, until the app is recycled)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you get log4net's SmtpPickupDirAppender to use the IIS pickup directory? Due to the nature of the live server I deploy to, my mail settings are using deliveryMethod="PickupDirectoryFromIis". I'm using log4net to send logs via email and I need find a way of getting it to do the same thing.
I can see from the d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Windows 'dir' command, Order By Name AND We can see in a directory files ordered by Name in Windows Explorer.
If I try the same thing in the Windows command prompt it orders by name differently - correctly:
dir *.jpg /ON /B
cubierta.jpg
pag00.jpg
pag06.jpg
pag08.jpg
pag09.jpg
pag100.jpg
pag101.jpg
pag102.jpg
pag10... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: JPA Composite Key + Sequence Is it possible in plain JPA or JPA+Hibernate extensions to declare a composite key, where an element of the composite key is a sequence?
This is my composite class:
@Embeddable
public class IntegrationEJBPk implements Serializable {
//...
@ManyToOne(cascade = {}, fetch = Fetch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Terminalfour site manager - Content Management System I am about to start a project, ongoing actually for the next 2 years where we as an organisation will be implementing TerminalFour Site Manager
I am basically after any advice or support if anyone has used this piece of software, and what they think about it.
So ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Comparison of C++ unit test frameworks I know there are already a few questions regarding recommendations for C++ unit test frameworks, but all the answers did not help as they just recommend one of the frameworks but do not provide any information about a (feature) comparison.
I think the most interesting framework... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "335"
} |
Q: How do you rollback changes made to a bound DataGridView? I have a DataGridView with its datasource set to a generic list of custom objects. As the user changes values (in this case checks/unchecks a check box) the underlying boolean field in the object changes.
Should I be creating a "copy" of the List for binding,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Downsides to using Int64 universally instead of int (C#) We use a base entity with properties such as version (datetime needed for NHibernate) and guid (as key).
It also has an Id (int) field with two functions. Firstly to relate to legacy application key if there is one. Secondly as a shorthand code: for instance... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: FLEX3, Click and event catching, special case I have a main canvas 'blackboard' in a panel,
this canvas has itself several children, like a toolbar (tiles), a label and some skinning.
The problem is that when I move to the rectangle tool and I start drawing rectangles if I want to change the tool when I click on an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: nHibernate session and multithreading I had a method with a lot of persistence calls that used a nHibernate session, it worked, was alright. But I needed to refactor this method, extracting a method from a content inside a loop, for multithread reasons. Then I created an class with this method. It is like a normal r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Can XFire SOAP server send HTTP 301 REDIRECT to client? Is it possible to send a HTTP REDIRECT response from inside the XFire SOAP server instead of a regular response?
I need this in order to redirect the client to another server based on some checking of method parameters.
Also, is redirect handling something that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why OnVScroll() method enters only once? I design a class which derives from CScrollBar in a dialog-based MFC application. In the dialog class (MyScrollbarDlg), I set the ON_WM_VSCROLL message and declare the OnVSCroll method in the header file. I also Implement the OnVScroll() method in the corresponding .cpp file.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sending Emails as a "batch execution job" I do not have any experience in web based development(neither client side nor server s ide code). since long time i had a question as to if anything like below is possible to do:
1.) I have say 10 attachments 1.zip to 10.zip on my desktop.
2.) I need to send all of these as ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Access DB5 to MySQL automatically I have a problem, and was hoping I could rely on some of the experience here for advice and a push in the right direction. I have an MS Access file made by propietary software. I only want to take half the columns from this table, and import into new(not yet setup)mysql database.
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Add Plaintext into ciphertext How can I add a plaintext into encrypted ciphertext?
For example, I would like to add number 4 into encrypted(5)
A: There are schemes that allow you to perform arithmetic on encrypted data without being able to decrypt the data. Such schemes are useful for for example electronic voting... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Excluding file types in Eclipse / Aptana find in files search Is there a way to exclude say, image types in Aptana or Eclipse file search? I want to search all files that are not images rather than specifying all the file types that I want to search in.
A: Try putting an '!' mark in front of the pattern you don't w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Effort Spent on Designing, Implementing and Maintaining CRUD What percentage of your total development effort do you spend on implementing and maintaining simple Create, Read, Update and Delete (CRUD) methods in your data access layer?
Does moving to an ORM like Hibernate or Entity Framework lead to significant savi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: HTML what is the name of on select event? Does the HTML "select" element have an on select event? what exactly is the name of the event?
A: Is onchange what you're looking for?
A: Regardless of input type, whenever a form input changes value, an onchange event should always be thrown. (With the exception of butto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: Strongly Typed Resources Causing Problems? In the middle of some refactoring and I've moved a resources file from one project to another. I think I clicked a warning telling me to Strongly type the resource file at one point and now I'm getting:
Could not find any resources
appropriate for the specified culture
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/242998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: useUnsafeHeaderParsing in Windows Service Application I have a VS2005 windows service where I have the need to use 'useUnsafeHeaderParsing' as per documentation from MSDN.
As this is a library used within my windows service, I do not have a web.config to add httpwebrequest element and set useUnsafeHeaderParsing to t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Parsing through XML elements in XmlReader I'm building an application that needs to run through an XML feed but I'm having a little trouble with getting certain elements.
I'm using the Twitter feed and want to run through all the <item> elements. I can connect fine and get the content from the feed but I can't figur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Non localized error messages in Asp.net I've got a Polish version of Windows installed and therefore I get exception messages in Polish. Is there a way to make asp.net display error messages in English? Other than installing English version of Windows.
A: Try adding the following to the system.web section of your w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Drop Down List doesn't post back after first post back I've got this ASP.NET drop down control that displays other textbox controls when the value is not UK (this is to help find UK addresses using postcodes). When UK is reselected I will like to hide the other controls. I've enabled view state and AutoPostBack to t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Datamining open source software alternatives I am evaluating datamining packages.
I have find these two so far:
*RapidMiner
*Weka
Do you have any experience to share with these two products, or any other product to recommend me?
Thanks
A: Another alternative would be Orange. It includes various algorithms and dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Finding difference in row count of two tables in MySQL I have two tables, one stores the products and quantity we have bought, the other stores the sells. The current stock is therefore the sum of all the quantity columns in the bought table minus the number of rows in the sells table. How can this be expressed in M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Web.Config Falling back to Global Config in Web Farm This problem has several of us stumped in the office. We are all new to deploying ASP.NET apps to a web farm, and I am fresh out of ideas.
We have a web farm, and the application is copied on to all of them.
However, we are having a problem..
An exception is being... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why does addition of long variables cause concatenation? What does Java do with long variables while performing addition?
Wrong version 1:
Vector speeds = ... //whatever, speeds.size() returns 2
long estimated = 1l;
long time = speeds.size() + estimated; // time = 21; string concatenation??
Wrong version 2:
Vector ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Load XML containing 300 elements for each record into db So I have this large XML file containing 300+ elements for each record and I need to insert these records into a database table. The name of the nodes in the XML file are the same as the column names in the db. And they're all strings. Is there an automatic wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Response.Redirect strips Header Referrer - Possible to Add it Back? I'm using a Response.Redirect to redirect users to another server to download a file, and the other server is checking the header to ensure it came from the correct server... however it seems Response.Redirect strips the headers from the Response.
D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Set PYTHONPATH in Emacs on MacOS? Emacs does not recognize my correct Python path. I think it is a general problem with Emacs not recognizing my environment variables. I have GNU Emacs 22.1.1 (i386-apple-darwin8.9.1, Carbon Version 1.6.0) of 2007-06-17 installed.
I have set PYTHONPATH in my ~/.bashrc. Maybe I should... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How can I create EPS files in C#? How can I create EPS files in C#? Are there any opensource libraries available or do I have to resort to the spec and do it by hand?
A: You can use the same principle as I suggested in the HTML to Postscript question here: html-to-postscript-conversion
It is clumsy to set up, but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: WebSphere Portal v.5.1 and AJP? is there a way to configure WebSphere Portal to accept AJP connections?
E.g. Tomcat/JBoss and Oracle have a specific AJP port. I can't find it in WebSphere, and I'm getting tired of Googlin' around IBM pages.
Thank you in forward...
Balint
A: Configuring an AJP connector
| {
"language": "en",
"url": "https://stackoverflow.com/questions/243071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Dynamic rendering of webpage for logged in users only When a user logs in to my site I want a css styled button to appear (this could be anything really, i.e. some special news text item etc), how can you do this via masterpages in asp.net? Or is there some other way you do this?
A: Check out the LoginView control ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Self-owned objects in Objective-C Garbage Collection I'm wondering what are the recommended ways to handle situations where, in memory managed code, object didn't belong to any particular owner, i.e. objects released themselves. One such example could be a subclass of NSWindowController, which configures, displays a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Disabling an ASP validation on an event click before it posts back and performs the validation Can you disable an ASP validation on an event click before it posts back and performs the validation? This is for ASP with C#.
I would like to load some details into a bunch of text-boxes with field validators on them. How... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: UIImage and UILabel outside UITableView Look at this image:
alt text http://img139.imageshack.us/img139/4488/picture2ep3.png
I know how to add UITableView with grouped style and how to add label in any table cell.
But how can I add image and labels on top on the view, like screen.
A: Using Interface Builder, you ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C++ casting programmatically : can it be done? Let's say I have a Base class and several Derived classes. Is there any way to cast an object to one of the derived classes without the need to write something like this :
string typename = typeid(*object).name();
if(typename == "Derived1") {
Derived1 *d1 = static_c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is a strongly typed dataset? What is a strongly typed dataset? (.net)
A: Short answer: A dataset which is guaranteed (by the compiler) to hold a specific type.
A: It looks like DataSet has already been covered, but for completeness, note that in .NET 3.5 there are good alternatives for simple data access; in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: javac error "code too large"? I have a unit test where I have statically defined a quite large byte array (over 8000 bytes) as the byte data of a file I don't want to read every time I run my unit test.
private static final byte[] FILE_DATA = new byte[] {
12,-2,123,................
}
This compiles fine within Eclip... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How to write an ISAPI plugin? Any links/Turorials avalable? I want to write a simple ISAPI plugin for IIS6.0.
Prefered language c++
A: Below is a quick (and simple) ISAPI Filter example. I found it very useful when trying to write my first ISAPI plugin.
http://blogs.msdn.com/rakkimk/archive/2007/03/01/writing-a-sim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ASP.NET Session State Server - Saving Unserialized Data As you know, in ASP.NET, you can store session data in one of following three modes:
*
*InProc
*Session State
*SQL Server
For InProc mode, you can store any kind of data objects even it's not serializable. However, in Session State and SQL Server modes,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I find out which control events will fire on an ASP postback? Is it possible to get a list of control events that are going to fire before they happen, say inside the Page_Load handler?
For example if a button was clicked can I figure this out before the button_click event handler is called?
A: Unfortunately, i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to configure mod_rewrite to serve minified files, if available? Here is the problem: we have lots of Javascripts and lots of CSS files, which we'd rather be serving minified. Minification is easy: set up the YUI Compressor, run an Ant task, and it spits out minified files, which we save beside the originals.
So ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How would you identify a user's most active sections? On a website, everything is tagged with keywords assigned by the staff (it's not a community driven site, due to its nature). I am able to determine which tags a user is most active in (or, what tags they view the most). However, I'm not sure how to choose the li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you remove a value that has an empty key from an associative array in PHP? I have a key that appears to be an empty string, however using unset($array[""]); does not remove the key/value pair. I don't see another function that does what I want, so I'm guessing it's more complicated that just calling a functio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How can I write a conditional lock in C#? The thing is I've been using the lock statement to protect a critical part of my code, but now, I realize I could allow concurrent execution of that critical code is some conditions are met.
Is there a way to condition the lock?
A: bool locked = false;
if (condition) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Round robin server setup From what I understand, if you have multiple web servers, then you need some kind of load balancer that will split the traffic amongst your web servers.
Does this mean that the load balancer is the main connecting point on the network? ie. the load balancer has the IP address of the domain n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing input to a state machine (c#) I'll try to explain my scenario as best i can;
At each application tick I query the current state of the keyboard and mouse and wrap them in individual classes and data structures. For the keyboard it's an array of my Keys enum (one item for each of the keys that are currently p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I fix "Error -5" when transferring a random number of bytes using LIB-USB? I'm having an issue with a USB project using LIB-USB. The USB device is based on a PIC18F4550 and has a single control endpoint. The PC front-end is written in MSVC and uses Lib-Usb 1.12.
On the PC end, the program begins by setting th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: vmware and licensing If I have a windows xp computer with a single license (the one dell gave me), if I have 2-3 vm's setup (using vmware) for development purposes, do I have to have licenses for all of them?
A: Read Microsoft's EULA that came with the OEM license you have.
It most likely says you can only have one... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I programmatically get a list of locked files under a folder structure? Following up from this question: How can I unlock a file that is locked by a process in .NET, how do I programmatically get a list of files that are locked in a particular folder and its subfolders?
I'm using Windows 2003, .NET 3.5, C# 3.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Throttle traffic in Apache based on User-Agent We are running Apache (IBM HTTP Server 6.0.2.0) in front of WebSphere 6.0 on linux. We are getting excessive traffic from a specific User-Agent from varying IP addresses. We do not want to block the User-Agent or IP addresses, but would like to slow them down a bit.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mirroring Table Modifications I have a set of tables that are used to track bills. These tables are loaded from an SSIS process that runs weekly.
I am in the process of creating a second set of tables to track adjustments to the bills that are made via the web. Some of our clients hand key their bills and all of tho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are some useful PHP Idioms? I'm looking to improve my PHP coding and am wondering what PHP-specific techniques other programmers use to improve productivity or workaround PHP limitations.
Some examples:
*
*Class naming convention to handle namespaces: Part1_Part2_ClassName maps to file Part1/Part2/ClassName.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/243200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |