text stringlengths 8 267k | meta dict |
|---|---|
Q: Evaluating string "3*(4+2)" yield int 18 Is there a function the .NET framework that can evaluate a numeric expression contained in a string and return the result? F.e.:
string mystring = "3*(2+4)";
int result = EvaluateExpression(mystring);
Console.Writeln(result); // Outputs 18
Is there a standard framework funct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "122"
} |
Q: Fetching only rows that match all entries in a joined table (SQL) I have the following five tables:
*
*ISP
*Product
*Connection
*AddOn
*AddOn/Product (pivot table for many-to-many relationship).
Each Product is linked to an ISP, each Connection is listed to a Product. Each product can have a number of add-o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to get the installation directory in C# after deploying dll's Is there some smart way to retreive the installation path when working within a dll (C#) which will be called from an application in a different folder?
I'm developing an add-in for an application. My add-in is written in C#. The application that will... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: MySQL LEFT JOIN Problem - Missing LEFT column I'm having problems with an SQL query used to display custom profile fields and any (optional) corresponding values.
Here is the SQL query I'm using:
SELECT pf.`id`, pf.`name`, pv.`value` FROM `profile_fields` AS pf
LEFT JOIN `profile_values` AS pv ON (pf.`id` = pv.`fiel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Linking to a page and expanding a topic with Javascript I want to link to a page which contains multiple support topics.
When the user clicks on the link while being on an external site, the topic should be expanded as soon as the user arrives on the support page.
Example:
I link to this page
http://www.nintendo.de/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I print different bands depending on the value of a Field in a DataSet using FastReport? I have a product's dataset and I want to have distinct bands for each type of product, something like, if the product is a fruit, print it's weight, if the product is a car print its color and so on.
And I want to let my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why am I able to create the same SVN branch twice? I am able to create the same SVN branch twice. I would hope that SVN would not allow me to create same branch again. Please help me to fix this issue.
A: From SVN RedBook:
Subversion has no internal concept of a branch—it knows only how to make copies. When you co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Teaching base 2 notation to children This isn't exactly a programming question but it is related.
I had read a fascinating article a while ago about a teacher who explained how he taught base 2 notation to first grade children, without even "teaching" them anything but making them discover both the problem and the s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a free tool to profile the execution time of Java methods? I need to know the usage by other applications, in time of execution, of java methods of an api created in my project, does someone know any free tool to know this?
Thank you very much.
A: Seems as if you need a profiler. VisualVM contains one. It ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using Java, How can I get a list of all local users on a windows machine How can I list all the local users configured on a windows machine (Win2000+) using java.
I would prefer doing this with ought using any java 2 com bridges, or any other third party library if possible.
Preferable some native method to Java.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: WSDL2Code (Maven) auto-generates corrupt classes (packages) I am currently in the process of replacing the IBM WebService framework with Axis2. When generating the code from the WSDL file, I use the Maven plugin WSDL2Code. However, the code created is always wrong. Or rather, the packagenames are always wrong, which... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: php mysql date/time question I've built a small application which has User Management, a frontend console to enter data and a backend console to control parts of the frontend. The frontend adds rows to a MySQL database which are timestamped. The backend needs to be able to select rows from the database between X and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why can't I define a default constructor for a struct in .NET? In .NET, a value type (C# struct) can't have a constructor with no parameters. According to this post this is mandated by the CLI specification. What happens is that for every value-type a default constructor is created (by the compiler?) which initializ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "295"
} |
Q: SQl Query to Hibernate Query I have a MySQL query that I use to retrieve random rows from a table. The query is:
SELECT * FROM QUESTION WHERE TESTID=1 ORDER BY RAND() LIMIT 10;
Now I need to change this query to Hibernate. Did a bit of googling but couldn't find the answer. Can someone provide help on this?
A: The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Checking anonymous function signatures at runtime (reflection) in AS3 Is there any way to have a look at signatures of anonymous functions in ActionScript 3 during runtime?
I would like to validate Function objects passed in as arguments to other functions and make sure that they accept the correct number of argumen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How is Memory Organized in Windows? I'm looking for an explanation or good free online resources about the organization of memory and memory management in Windows systems.
A: You can buy this (old) book, (the actual Windows architecture hasn't really changed much in 10 years) for a penny (used):
Inside Windows NT
H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Passing web context to a 'service' in ASP MVC app I'm trying to work out a way of passing the web current http context to a service class (or initialising the class with a reference to it). I am doing this to abstract the rest of the app away from needing to know anything about the http context.
I also want the ser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Showing how many records were updated by an update query Is it possible to get a report of the records that are updated using a update query, without using a recordset?
Ex:
sqltext = update table employees set bonus = 0 where salary > 50000
DoCmd.RunSQL sqltext
After this query runs, is it possible to get the name o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Unable to cast object of type WhereListIterator to type system.web.mvc.listitem I have a SelectList that I first check for a selected value != null and then want to use this selectedvalue in a where clause for a filter. Like so:
if(searchBag.Qualities.SelectedValue != null){
ListItem selected = (ListItem)searchB... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Current view file in Rails helper method Is there some way to determine what file currently is being rendered by Rails (2.2) in a helper method. An example result would be "/sessions/new.html.erb" or something similar.
I am trying to write a helper function that does something based on the file name that is being re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why have header files and .cpp files? Why does C++ have header files and .cpp files?
A: It's the preprocessor way of declaring interfaces. You put the interface (method declarations) into the header file, and the implementation into the cpp. Applications using your library only need to know the interface, which the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "543"
} |
Q: OpenSSL and generating CSRs at client side I need a favour from you. My infrastructure is IIS 6.0 and windows server 2003.
I need to investigate the use of OpenSSL and the construction of media that can be sent to end users, allowing them to generate CSRs, as well as produce documentation to support the signing of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Will Request.UserHostName always give me the user's computer name? Basically I want to make sure I will always get the computer's name rather than any proxy or other hardware imbetween.
A: No you cannot.
Everything the server knows about a client is only through the user agent string which the browser supplies, sin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JQuery: animate() doesn't work as expected in IE I'm getting crazy with this IE 7...
==> hhttp://neu.emergent-innovation.com/
Why does following function not work in IE 7, but perfectly with Firefox? Is there a bug in the animate-function?
function accordion_starting_page(){
// hide all elements except the first... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Does anyone have metrics on the utility of formal Unit Testing? Does anyone have metrics on the utility of formal Unit Testing? I see a lot of attention being paid to unit testing tools and I was curious why?
I stopped formal unit testing over 5 or 6 years ago and the net gain in productivity seems quite high. I s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Working with ADO.NET Entity Objects and Soap-based Web Services I'm building a traditional ASP.NET Web Service -- the style built using asmx. It's a pretty simple service. I started using the new Ado.NET Entity Framework for my persistence layer, and I'm running into some problems:
1) I don't like the WSDL that g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: DVCS for a small company of remote employees Here's the situation: at my small office, because we like to keep mobile and occasionally work from home, instead of having a central file server, we have all the office documents in an SVN repository, and each person keeps a checkout on their own laptops. A checkout weig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why didn't header files catch on in other programming languages? Based on the response to this question: Why does C++ have header files and CPP
I have seen the responses and understand the answers - so why didn't this catch on? C# Java?
A: Because it means to duplicate information which you can get from the source... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Reimplementing ToUpper() How would you write ToUpper() if it didn't exist? Bonus points for i18n and L10n
Curiosity sparked by this: http://thedailywtf.com/Articles/The-Long-Way-toUpper.aspx
A: *
*I download the Unicode tables
*I import the tables into a database
*I write a method upper().
Here is a sample imp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: A good WPF scrolling timeline control? (fancy datetime picker) I'm looking for somthing I can use as a timeline control.
A kind of "banner" the user can drag to the left or the right to go forward or backwards
in time and then he or she should be able to select a point in time on that control.
A fancy datetime picke... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: C# equivalent to Java's Exception.printStackTrace()? Is there a C# equivalent method to Java's Exception.printStackTrace() or do I have to write something myself, working my way through the InnerExceptions?
A: http://msdn.microsoft.com/en-us/library/system.exception.stacktrace.aspx
Console.WriteLine(myException.Sta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "91"
} |
Q: Remoting performance degrades over the time I'm working on a client-server solution that uses .NET 2.0 Remoting (server activation, binary formatting over TCP channel, Vista Ultimate) for communication purposes. Currently I'm profiling the application and run everything on the same machine. I noticed that if I start... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: "Copying" a Tree from SVN into a local repository and merging it back afterwards I have a SVN Repository at my main PC, to which only I have access. I also have a Laptop, and I don't want to lose SVN Functionality when I am not connected to my PC. So at the moment, I simply copy accross the whole Repository to the L... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: sql search query for multiple optional parameters I'm trying to write a query for an advanced search page on my document archiving system. I'm attempting to search by multiple optional parameters. I have about 5 parameters that could be empty strings or search strings. I know I shouldn't have to check for each as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How should methods updating database tables be unit tested? I have an application that is database intensive. Most of the applications methods are updating data in a database. Some calls are wrappers to stored procedures while others perform database updates in-code using 3rd party APIs.
What should I be testing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: "Perfect" .NET development environment? I've been given an early Christmas Present:
Permission to step out of the development cycle to reorganize and document our application.
I have complete freedom to restructure, refactor, and set up any amount of infrastructure I see fit.
If you had carte blanche, what... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Where can I learn how to combine algorithms and data structures? After reading an introductory book on algorithms and data structures I am now craving for examples on how to combine these for optimal efficiency.
For instance, you can combine hashmaps with specific sorting algorithms to create a simple text search pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to detect that Python code is being executed through the debugger? Is there a simple way to detect, within Python code, that this code is being executed through the Python debugger?
I have a small Python application that uses Java code (thanks to JPype). When I'm debugging the Python part, I'd like the embedded ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: In Drupal, how can I create a front page with a set of menus as the content? This website http://nationalstrategies.standards.dcsf.gov.uk/ appears to be using Drupal, and I like the menu system on the front page, but can't work out how it's been done.
Has anyone any ideas about which Drupal modules might reproduce t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Which StyleCop rules should I follow when writing a open source library I am currently writing an open source wrapper for a COM object. I have just installed StyleCop and run it against some of my code, and as I expected it threw up a load of warnings (some of which I should have been doing already eg adding "this.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Crystal Reports vs. WinForms issue I have a WinForms app (written in VB.NET if that detail matters) which has an embedded Crystal Report for tracking application utilization (let's call it utr310.rpt). Our reporting guy made a minor tweak to the report that has been in production and I'm trying to test with it (let'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to read source code learn how to use large system? Let's say you want to start contributing to an open source project with thousands LOC. I am interesting in ways/suggestions on how you would start learning/hacking the new system.
A: If you want books that I found useful for learning how to learn from the code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: The correct way of waiting for strings to become equal In a Swing app a method should continue only after user enters a correct answer. The correct answer is stored in a String with user answer being set by a listener to another String. So, the code is
while (!correctAnswer.equals(currentAnswer)) {
// wait for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: An image and text query I have a very simple html page here:
http://www.nomorepasting.com/getpaste.php?pasteid=22407
And I have 4 layers on the page. The reason for this is it is the framework oif a much more complicated site, I have simplified it to ask my question. Basically, I want to be able to click on differen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Agile development and database changes For those agile practitioners out there...
How do you manage changes to a database schema during a project? My assumption is that in an agile project the schema of any database involved will change and be refactored just as happens with the codebase.
Is this assumption correct?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Debugging in a dll with both managed / unmanaged code fails in VS 2005. Why? I want to debug a piece of code written in C++. The problem is that the dll is mixed - it contains both C++ and CLI (managed C++). The environment is VS 2005.
My entry point is a very simple executable project, written in C++ that just star... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ExpressionEngine (CMS) with SQLite Has anyone out there hacked up ExpressionEngine (CMS) to work with SQLite? If so, any good tips or guides on how to do so?
A: Given that it's proprietary software under copyright and not available (so far as I can tell) under an F/OSS license, tightly tied to MySQL (no other dbs ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: flash motion question I am juststarting out with flash, and I know that motion tweening can automate simple things, but I would like to know if there are more ways to automate?
For example, the animation of the bird here:
http://www.youtube.com/watch?v=As_-K8xGqLE
but going accross the page, I have basically been co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Testing Events from Objects I have been trying to get more in to TDD. Currently keeping it simple with lots of Debug.Asserts in a console application.
Part of the tests I wanted to complete was ensuring that events were raised from the object, the correct number of times, since client code will depend on these event... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Eclipse memory settings when getting "Java Heap Space" and "Out of Memory" When trying to launch and run a flex/java project in eclipse I kept getting a "Out of Memory Exception" and "Java Heap Space" using Eclipse, Tomcat and a JRE.
While researching trying to adjust the memory settings I found three places to adju... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "58"
} |
Q: How do I check if a Sql server string is null or empty I want to check for data, but ignore it if it's null or empty. Currently the query is as follows...
Select
Coalesce(listing.OfferText, company.OfferText, '') As Offer_Text,
from tbl_directorylisting listing
Inner Join tbl_companymaster ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "257"
} |
Q: How to use apache mod_rewrite and alias at the same time? I have a directory outside the webroot that is used for storing images uploaded from a separate admin system. Images are stored in this format:
filepath/writable/images/00/00/23/65/filename-236581.jpg
(where the webroot is filepath/html)
...for example. Here... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How do I track web-based Logins and Logouts? I'm making modifications to a members-based site whose owner wants to be able to track time spent on site (login/logout) for all users in a DB backend. Login is easy; there's one point of entry (the login form) and as a result, logins can be thrown in the database as soo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: version of website for different brands, resource files? I have a web application that I need to modify so that it can be rebranded for different customers. I did the same thing with the windows version of the app using resource files and a #define. I have been reading up on resource files for aspx/C# but it seems... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Windows Authentication for remote reporting services I have a ASP.NET web application that I use to display MS reports using a Report Viewer.
The reports are sitting on a remote server. I need to use windows authentication to connect to the reporting services, as I need to display the reports based on who is logged ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Curly quotation marks vs Square quotation marks, what gives? An interesting problem that no doubt someone here has come across before.
I'm reading a CSV file that contains some values wrapped in quotes, I came across a problem today were my app couldn't read the file as the value was wrapped in cury quotation marks... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: regex matching alpha character followed by 4 alphanumerics I need a regex for the following pattern:
*
*Total of 5 characters (alpha and numeric, nothing else).
*first character must be a letter (A, B, or C only)
*the remaining 4 characters can be number or letter.
Clarifcation: the first letter can only be A, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Refactoring a Hibernate entity into subclasses I have a class that is currently mapped as an entity in a database table using Hibernate. This class should be refactored into an abstract class containing some field common to all of its subclasses.
I'm using annotations for mapping hibernate entities/relationships cla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to use dependencies of C++ libs in Visual Studio regarding the header path We have several C++ libs that are used in applications and so many dependencies occur.
Example problem:
Lets say we have an application AppA that uses libB and libC. libC uses libD. Each lib is a static library project, all libs are gr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Silverlight WCF Service Error What would prevent one machine from consuming a Silverlight Enabled WCF service some of the time, whilst another on the same network domain, behind the same proxy / firewall / etc.. can fine? Service and app are on the same domain.
I'm writing to the event log when the service comes in,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Avoid connection timeout when using multiple threads and connection pool I'm splitting up a readonly database operation into multiple chunks, (Each of which reads a subset of a very large amount of data, analyzes it and writes the results to a disk file).
Each chunk performs a Select (into a datatable) on a new .net... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Polyphonic sound playback I need audio playback with these features: good performance (for game), pitch control, and ability to layer the same sample multiple times at the same time (polyphony). What would be a quick way to get this on the iphone sdk?
Here's what I found out so far:
There's no available libraries o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Calculate the next anniversary date after today What's the quickest/neatest way to calculate the next anniversary of someone's birthday.
For example, if I knew a person was born on 31st January, 1990, and today is the 10th February 2000, their next anniversary will be 31st January, 2001.
February 29th should roll on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I abort an InstallShield Setup depending on a vbscript custom action result? I created a vbscript custom action which checks for some registry keys and alters them if neccessary. In case a key could not be written or something like that, the setup should be aborted.
In order to achieve this, I set a property... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can I run a .NET garbage collection from WinDbg? I'm looking into why a managed process is using a lot of memory. Is there a way to run GC.Collect(3) from WinDbg, so that I can focus on the actual memory allocation?
A: I don't think there is any way to run a .NET garbage collection from WinDbg, but I also don't thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: What's a reasonable amount of memory for a .NET application? I've had a couple of complaints that one of our managed apps is using 20-25Mb of RAM. I normally push back and say that memory's cheap; get over it.
Is this reasonable for a Windows Forms app?
A: 20-25MB is nothing.
The .Net framework doesn't always recyc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a way to disable/override the default style for disabled WebControls that one has been nagging me ever since I dabbled in web developpement; is there a way for this? Could I override that style and rely on some other mean to inform my users that that control can't be ineracted with?
My problem is that the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the most efficient way to store tags in a database? I am implementing a tagging system on my website similar to one stackoverflow uses, my question is - what is the most effective way to store tags so that they may be searched and filtered?
My idea is this:
Table: Items
Columns: Item_ID, Title, Content
Tabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "158"
} |
Q: How to build only a handful of projects contained in a solution using MSBuild? I am trying to setup a TFS Team Build and am new to MSBuild. I have a solution that contains a few projects (MyProject1, MyProject2, ..). I find that setting up the team build I could only select which solution should be built and when pe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why isn't SQL ANSI-92 standard better adopted over ANSI-89? At every company I have worked at, I have found that people are still writing their SQL queries in the ANSI-89 standard:
select a.id, b.id, b.address_1
from person a, address b
where a.id = b.id
rather than the ANSI-92 standard:
select a.id, b.id, b.addres... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "111"
} |
Q: I want a Master UserControl (a Master page, but for UserControls) ASP.NET master pages - essential things.
However, I have a lot of very similar UserControls in my projects - it might be a standard layout for an AJAX ModalPopup, or something more involved.
I wish I could get rid of some of my duplicated code (both i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Regedit file format I would like to document the file format of regedit utility, so data can be merged into the registry.
From the command-line you can (silently) merge data from a batch file like this:
regedit /s file.reg
Exporting from a subkey goes like this:
regedit /e file.reg "HKEY_XX\key"
A: Remove keys a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Any recommended training resources for VBA programming (e.g. DVD, computer) for non-software people? I have been asked to find training resources to bring engineers up to speed on VBA programming.
The target trainee will have some systems engineering experience but little to no non-systems programming experience.
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: binding dropdownlist in repeater's item template using an sql datasource We are having some performance issues with a page and I wanted to ask about this. If I have a repeater and in the itemtemplate of the repeater I have a dropdownlist bound to an sql datasource, will that selectcommand be called once per each it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to set ico I want to use as application icon in c#? Icon I set in properties is visible in taskbar and when on application window, but application icon in explorer is different.
A: Could it be that the application icon you have set has different images at different icon sizes and this is why you are seeing a di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Get active window without global hooks or polling GetActiveWindow? How can I get notifications about what is the currect active window and when this changes without polling GetActiveWindow or using global hooks?
I don't like polling, and I'm working in C# and global hooks don't work (mostly).
A: I have never found ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is my UserProperties collection empty? I'm using the Outlook 2003 PIA and VS 2005 to access items in a public folder. The item.UserProperties collection always comes back empty, despite the items having several user defined fields.
If I add a property in code using UserProperties.Add, it is saved correctly with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I add a custom XmlDeclaration with XmlDocument/XmlDeclaration? I would like to create a custom XmlDeclaration while using the XmlDocument/XmlDeclaration classes in c# .net 2 or 3.
This is my desired output (it is an expected output by a 3rd party app):
<?xml version="1.0" encoding="ISO-8859-1" ?>
<?MyCustomN... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: RSA Encryption : moving code from js to C# I'm working on an useragent that logs into teamcity and I'm trying to move the password encryption from js to c#.
this is the javascript
the section called rsa.js and encrypt.js are important. They make a function call with
rsa.setPublic(publicKey,"10001");
The exponent ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can a WM6 Emulator have a storage card? We're doing windows mobile development using the WM6 Professional emulator through visual studio 2008 for now. My question is, can you get the emulator image to simulate having a storage card? We run our SQLCE 3.5 database off the removable storage card in our devices and it'd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: understanding dll dependencies I'm building a c++ DLL in visual studio 2008.
For some reason, even when I build in release mode, my dll still depends on msvcr90d.dll.
I can see that using depends.exe
Is there any way to figure out what is causing this dependency?
My run-time library setting is /MD
Thanks,
Dan
A: I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: namespaces and specific xpath Can anyone tell me how can I get the xpath of the name attribute from this file:
<asmv1:assembly xmlns:asmv1="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="MyName"/>
</asmv1:assembly>
I'm trying to get it for nant xmlpoke task without success.
Thanks.
A: This should do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MySQL - how to SHOW PROCESSLIST only with current user's processes? Is there a way in MySQL 5 to show only the current user's processes(queries)?
The user has the PROCESS privilege, therefore SHOW PROCESSLIST displays running processes of all users. According to the documentation, SHOW PROCESSLIST does not allow any... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Symbian C++ - Substring operations on descriptors What is the preferred/easiest way to manipulate TDesC strings, for example to obtain a substring.
I will give you an example of my scenario.
RBuf16 buf;
...
CEikLabel label;
...
label->SetTextL(buf); // (SetTextL takes a const TDesC&)
I want to get a substring from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JMX client that can persist gathered information We've added performance measures to our application and are exposing them using
JMX. Now we would like to gather and store performance data for analysis, in files or in a database.
Does anyone know of a JMX client, open source or commercial, that can persist gathered ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: DataGridView SelectLine color to none? The grid display all information correctly, In the event dataGridView1cellFormatting I change the backcolor depending of the object under the line value. This works too. The last event that I have on my grid is the dataGridView1_CellPainting that check if it's the header to add... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Playing mp3 with delphi Which component to use to play mp3 files from streams/files and also to know the lenght in seconds of that mp3 stream?
A: You could use the Bass audio library.
http://www.un4seen.com/
Search for "MP3" on the 3D Buzz site. They have a series of video tutorials that walk you through the creat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to return actual cell component bounds in a JTable? I have a custom renderer in a JTable to display JCheckboxes for booleans. However, this causes a slight issue because when the user clicks in the table cell, but not in the checkbox, the checkbox is still checked.
Is there a way I can return the bounds of the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: "Re-Raising" Custom Events in .NET (ASP.NET in this case) I'm working on an ASP.NET page, using VB.NET and I have this hierarchy:
Page A
- Web User Control 1
- Web User Control A
- Web User Control B
- Web User Control C
I need to raise an event from Web User Control B that Page A will receive (th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Does wrapping everything in try/catch blocks constitute defensive programming? I have been programming for the last 3 years. When I program, I use to handle all known exceptions and alert the user gracefully. I have seen some code recently which has almost all methods wrapped inside try/catch blocks. The author says... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: How to display loading status with preloader and multiple images? I am building a slideshow with a few hundred images and would like to build a nice loading bar, so the idea was to preload the images using JavaScript, then initialize the rest of the UI afterwords.
Preloading the images is not a problem, but getting ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is managed or unmanaged code in programming? I am using a specific command in in my C# code, which works well. However, it is said to misbehave in "unmanaged" code.
What is managed or unmanaged code?
A: Here is some text from MSDN about unmanaged code.
Some library code needs to call into unmanaged code (for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "173"
} |
Q: How to create a .ICS file with multiple VEVENTs to be imported into an existing Outlook Calendar I have a need to allow for a user to download an event that has multiple meeting dates. To do this I have created a memorystream to be downloaded which produces a .ics file. For example:
BEGIN:VCALENDAR
PRODID:-//Comp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How do I check "Allow IIS intrinsic properties" in a COM+ application programmatically? Component Services -> Computers -> My Computer -> COM+ Applications
Open a COM+ Application object.
Open Components.
Right-click on a class and select Properties.
Under "Advanced" there is a check box for "Allow IIS intrinsic pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Are there any good ssh consoles for Eclipse? I'm looking for a good ssh console plugin for Eclipse, and can't find much at all. Would anyone have some good leads on one?
A: In Eclipse 3.4.1, there is the Remote Systems Explorer perspective that allows you to create and connect to SSH terminals (here)
A: If you don... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to use a view name stored in a field for an sql query? I have a table with a view_name field (varchar(256)) and I would like to use that field in an sql query.
Example :
TABLE university_members
id | type | view_name | count
1 | professors | view_professors | 0
2 | students | view_students2 | 0
3 | staff | view_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Text Attribute as value for another element With the XML below, I would like to know how to get the value of text in the case_id node as an attribute for the hidden input tag in the xsl sheet below.
Is this possible?
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="data.xsl"?>
<NewDataSe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: contextswitchdeadlock Whilst debugging my program in VS 2008 I have come across the following error:
The CLR has been unable to transition from COM context 0x34fc1a0 to COM context 0x34fc258 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or proc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: When to use 'nested diagnostic context' (NDC)? Playing with log4net, I have seen the possibility to use a per-thread stack of context labels called the NDC.
The labels pushed on this stack are displayed in a PatternLayout by specifying the %x or the %ndc format parameter.
The usage is something like:
ILog log = lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: Using an anchor as a javascript action, what should the link be? I've seen (and used) code to have a link spawn a javascript action many times in my life, but I've never come to a firm conclusion on if the href attribute should be blank or #. Do you have any preference one way or the other, and if so, why?
<a href=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.