text
string
meta
dict
Q: Enabling https for Java Webstart I have a swing application deployed in HTTP Server. Users use the browser to point an URL and install the client using java webstart. Now I need to enable https access to my application deployed on HTTP server. I am using JDK 1.5 as default jdk supported in the jnlp file. For time be...
{ "language": "en", "url": "https://stackoverflow.com/questions/267738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Java Instance Variable Accessibility What is the difference in the accessibility of the following variables in Java? public class Joe { public int a; protected int b; private int b; int c; } I'm most interested in what the last one is doing. A: * *public: read/writable for anyone *protected: read...
{ "language": "en", "url": "https://stackoverflow.com/questions/267750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Removing Outlook AddIn Sidebar Header I am working on a sidebar AddIn for Microsoft Outlook using Visual Studio Tools for Office. However, I can't figure out how to get rid of the header outlook puts on my sidebar when I show it in Outlook. Here is a screenshot showing the header, which contains the text "Sidebar ...
{ "language": "en", "url": "https://stackoverflow.com/questions/267751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Boost Asio serial_port - need help with io So I've been trying to learn the boost::asio stuff to communicate to a serial device using RS232. The documementation is sparse and the examples are non-existent. Can't figure out exactly how to communicate with the device. The device can't send data so all I need to do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/267752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: What's the best Street Address Search service? I'm impressed with the simplicity of Microsoft's Virtual Earth Street Address search service. My requirement is to type rough address info with no comma separators into a simple text box, press a find button, wait a few seconds and then observe a result picklist. I mock...
{ "language": "en", "url": "https://stackoverflow.com/questions/267754", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I create an OLE Control? Without going into why I need OLE.. I need to embed a managed C++ custom control into MS Word 2007 (2003 also would be nice). So the question is How do I make this managed (.net 3.5) control OLE compliant ? It seems that I need to do something akin to implementing an interface. But an...
{ "language": "en", "url": "https://stackoverflow.com/questions/267755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How can i get rid of hard coding in creating a new EntityKey in Entity Framework How can i get rid of hard coding in creating a new EntityKey in Entity Framework A: GetType(Model).Name GetType(Account).Name which means: Public Shared Function GetName(Of TEntity As Type)() As String Dim type = GetType(TEntity) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/267757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: defensive coding practices Ever since I first wrote if ($a = 5) { # do something with $a, e.g. print "$a"; } and went through the normal puzzling session of * *why is the result always true *why is $a always 5 until I realized, I'd assigned 5 to $a, instead of performing a comparison. So I decided to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/267763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Copying specific rows from a sheet tab to another sheet tab by just clicking a button I need to copy a set of rows from one tab to another tab of the same Excel document by just clicking a button. Also, can I also get information on how can I copy a set of rows that are hidden and paste it in the same tab without c...
{ "language": "en", "url": "https://stackoverflow.com/questions/267764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: difference between parameterizedThreadstart, Threadstart and Thread What is the difference between parameterizedThreadstart, Threadstart and Thread? A: ThreadStart and ParameterizedThreadStart are delegate types, defined like this: public delegate void ThreadStart() public delegate void ParameterizedThreadStart(o...
{ "language": "en", "url": "https://stackoverflow.com/questions/267765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Java Swing GUI theming Is it possible to develop custom PLAF themes for Swing? I would appreciate constructive suggestions in this topic Thanks A: Yes! But don't do that. If you need just change colors. Try JGoodies or Substance and obey writing your own PLAF. A: It depends on what you exactly want to do. Writing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/267766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: SOAP - Google Maps and Javascript - Connecting to a webservice I need to connect to an asmx webservice using javascript. the webservice accepts and returns a soap response. im looking for an example bit of code of how i can connect to the webservice using javascript. it returns lat and long details which i'll then u...
{ "language": "en", "url": "https://stackoverflow.com/questions/267774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java Class Accessibility Slightly related to my other question: What is the difference between the following: private class Joe protected class Joe public class Joe class Joe Once again, the difference between the last 2 is what I'm most interested in. A: A public class is accessible to a class in any package. A c...
{ "language": "en", "url": "https://stackoverflow.com/questions/267781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: oracle express detatach Hi I am new and I am used to MS SQL Manager's Attach/Detatch functionality to drop a database into a single file so I can move it to other computers/SQL instances. In a nut shell, this is what I want to do. I have a large Oracle Express database (instance name Zeus) that I need to move onto o...
{ "language": "en", "url": "https://stackoverflow.com/questions/267792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Server - How to insert a record and make sure it is unique I'm trying to figure out the best way to insert a record into a single table but only if the item doesn't already exist. The KEY in this case is an NVARCHAR(400) field. For this example, lets pretend it's the name of a word in the Oxford English Dictiona...
{ "language": "en", "url": "https://stackoverflow.com/questions/267804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Convert SDF database to MDF I have this SQL Server CE database which I would like to convert to SQL Server 2008 database because I want it to be accessible through the network. I am using SQL Server 2008 Express and VB9. Any idea? A: A simple way would be to go into SQL Management Studio (I think it can connecto to...
{ "language": "en", "url": "https://stackoverflow.com/questions/267807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: SQL (MySQL): Match first letter of any word in a string? (Note: This is for MySQL's SQL, not SQL Server.) I have a database column with values like "abc def GHI JKL". I want to write a WHERE clause that includes a case-insensitive test for any word that begins with a specific letter. For example, that example would ...
{ "language": "en", "url": "https://stackoverflow.com/questions/267808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Editing Excel Spreadsheets easily with the SDK is there anyone who makes use of the Microsoft Open XML SDK 2.0 for editing Excel Spreadsheet, I edited Open XML documents already by only using XML methods, but as there exists the SDK, does someone know if there are really easy methods for some essential functions? Fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/267823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I find the file handles that my process has opened in Linux? When we perform a fork in Unix, open file handles are inherited, and if we don't need to use them we should close them. However, when we use libraries, file handles may be opened for which we do not have access to the handle. How do we check for the...
{ "language": "en", "url": "https://stackoverflow.com/questions/267825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How do I prevent this System.IO.IOException when copying a file? When I run the following code to test copying a directory, I get a System.IO.IOException when fileInfo.CopyTo method is being called. The error message is: "The process cannot access the file 'C:\CopyDirectoryTest1\temp.txt' because it is being used by...
{ "language": "en", "url": "https://stackoverflow.com/questions/267830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Explanation of an algorithm to set, clear and test a single bit Hey, in the Programming Pearls book, there is a source code for setting, clearing and testing a bit of the given index in an array of ints that is actually a set representation. The code is the following: #include<stdio.h> #define BITSPERWORD 32 #define...
{ "language": "en", "url": "https://stackoverflow.com/questions/267832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can a Windows service execute a GUI application? I have written a Windows service that allows me to remotely run and stop applications. These applications are run using CreateProcess, and this works for me because most of them only perform backend processing. Recently, I need to run applications that present GUI...
{ "language": "en", "url": "https://stackoverflow.com/questions/267838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "53" }
Q: Getting rendered images to the browsers in Rails I am writing a Rails app that processes data into a graph (using Scruffy). I am wondering how can I render the graph to a blog/string and then send the blog/string directly to the the browser to be displayed (without saving it to a file)? Or do I need to render it, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/267841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can an Ant build script to reference the Eclipse plugin folder without full path details? I could use the following: <fileset dir="C:\Program Files\eclipse\plugins\myplugin"> <include name="extraStuff.jar" /> </fileset> But that breaks the build file on someone else's PC who did not install eclipse into the def...
{ "language": "en", "url": "https://stackoverflow.com/questions/267842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Visual Studio Editor does not underline errors anymore My Visual Studio (2008) Editor has stopped to underline Errors (this nifty wavy red lines). I can't really tell when, but it can be related to the installation of .Net Framework 3.5 SP 1 or the MVC Beta (which I guess is unlikely). Furthermore have I installed a...
{ "language": "en", "url": "https://stackoverflow.com/questions/267843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "125" }
Q: Are CAs allowed to modify CSRs before signing? Can anyone please tell me if Certifying Authorities (CAs) are allowed to make modifications to the Certificate Signing Request (CSR) before actually signing the certificate with their own private key? Specifically, I'd like to know if it's valid for the CA to insert ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/267858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to add an automatic filter to a relation with SQLAlchemy? I'm using SQLAlchemy 0.5rc, and I'd like to add an automatic filter to a relation, so that every time it tries to fetch records for that relation, it ignores the "remote" ones if they're flagged as "logically_deleted" (a boolean field of the child table) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/267861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: What makes Lisp macros so special? Reading Paul Graham's essays on programming languages one would think that Lisp macros are the only way to go. As a busy developer, working on other platforms, I have not had the privilege of using Lisp macros. As someone who wants to understand the buzz, please explain what makes ...
{ "language": "en", "url": "https://stackoverflow.com/questions/267862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "353" }
Q: authentication problem or bug There are 3 web apps. Site A and B are both ASP.NET Web Application with FormsAuthentications configurations, and there is a protected folder in site B which also configured correctly in the web.config. Site C is a classic ASP web which keep authentication status with Session. Now pleas...
{ "language": "en", "url": "https://stackoverflow.com/questions/267868", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Configuring Tomcat to authenticate using Windows Active Directory What is the best way to configure Tomcat 5.5 or later to authenticate users from Windows Active Directory? A: From www.jspwiki.org See : ActiveDirectoryIntegration Try this in the server.xml with your ldap-settings : <Realm className="org.apache.cata...
{ "language": "en", "url": "https://stackoverflow.com/questions/267869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: ASP.NET CompareValidator issue I've got a web form with Password and Confirm Password text boxes. I've got a RegularExpressionValidator attached to the first one and CompareValidator to the second one. Now the problem is when i have something in the Password field and nothing in Confirm Password field it does not di...
{ "language": "en", "url": "https://stackoverflow.com/questions/267872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: How do you implement pagination in PHP? How are paged results commonly implemented in PHP? I'd like to have a results page with 10 results. Paging forward in the navigation would give me the next and previous sets. Is there a way this is commonly done? Does anyone have simple advice on getting started? A: You'll n...
{ "language": "en", "url": "https://stackoverflow.com/questions/267892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Is there a way to customize Firebug's keyboard shortcuts? Is there a way to customize Firebug's keyboard shortcuts? I love being able to step through JavaScript code using Firebug's Script panel, but it looks like I'm limited to either using the default keyboard shortcuts for stepping over/into/out of code or using...
{ "language": "en", "url": "https://stackoverflow.com/questions/267893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Ship dates of simultaneous projects in fogbugz I am currently working on two projects, and I am using Fogbugz to keep track of my cases. My question is: if I enter one month worth of estimated work for each project, will Fogbugz estimate that the ship dates for the two projects will be TWO months from now? Note: the...
{ "language": "en", "url": "https://stackoverflow.com/questions/267903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Polluting the global namespace I think most C++ programmers here would agree that polluting the global namespace is a bad idea, but are there times when this rule can be ignored? For example, I have a type that I need to use all over a particular application - should I define it thus: mytypes.h typedef int MY_TYPE;...
{ "language": "en", "url": "https://stackoverflow.com/questions/267908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Would you consider HTML + CSS + Webserver to be MVC? Simply put, MVC is the pattern for separating contents (model) from presentation (view), and having a mechanism in place (controller) defining how to gather both. If you already see where I am going at, I am very interested to hear your opinion on the matter. Of c...
{ "language": "en", "url": "https://stackoverflow.com/questions/267920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Regular Expressions in SQL Server servers? Is it possible to make efficient queries that use the complete regular expression feature set. If not Microsoft really should consider that feature. A: The answer is no, not in the general case, although it might depend on what you mean by efficient. For these purposes, I...
{ "language": "en", "url": "https://stackoverflow.com/questions/267921", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: How does the MVC pattern differ, if at all, from the DAL / BLL design pattern? I'm making my way through the early Data Access Tutorials on Microsoft's ASP.NET website and it occurred to me that this all seems awfully similar to what I have read about separating your logic and presentation code using the MVC pattern...
{ "language": "en", "url": "https://stackoverflow.com/questions/267924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: piston git support? I found piston seems a decent tool for managing rails plugins, but when I try to do piston convert for my project with git based plugins, it just went dead completely and seems its trying to look for .svn with svn tools. I am on piston 1.4.0, is that git natively supported or I would have to buil...
{ "language": "en", "url": "https://stackoverflow.com/questions/267931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Should A Custom Method Be Used In The before(:each) Section I have a method on the model Category called create_main used to create main categories. Should I use this method in the before(:each) section even though the method itself has to be tested, or should the main category be created manually using rails built ...
{ "language": "en", "url": "https://stackoverflow.com/questions/267938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Determine target ISA extensions of binary file in Linux (library or executable) We have an issue related to a Java application running under a (rather old) FC3 on an Advantech POS board with a Via C3 processor. The java application has several compiled shared libs that are accessed via JNI. Via C3 processor is suppo...
{ "language": "en", "url": "https://stackoverflow.com/questions/267941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "61" }
Q: Having some confusion with LINQ Some background info; * *LanguageResource is the base class *LanguageTranslatorResource and LanguageEditorResource inherit from LanguageResource *LanguageEditorResource defines an IsDirty property *LanguageResourceCollection is a collection of LanguageResource *LanguageResource...
{ "language": "en", "url": "https://stackoverflow.com/questions/267944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Casting between structs? I'm working on a code base in which we have several configurable types. One of those types is 64 bit integer. When we compile for platforms that have no native 64 bit integer type, we simple represent 64 bit integers using a struct similar to typedef struct { unsigned int hi, lo; } int64...
{ "language": "en", "url": "https://stackoverflow.com/questions/267949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Does Tomcat load the same library file into memory twice if they are in two web apps? I have two applications under tomcat/webapps folder. tomcat/webapps/App1 tomcat/webapps/App2 Both applications share the same libraries. Which are stored for example in tomcat/webapps/App1/WEB-INF/lib. Are both libraries loaded...
{ "language": "en", "url": "https://stackoverflow.com/questions/267953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "53" }
Q: Finding why a text in a web page is larger than supposed to using Firebug I have some text displaying in a larger font size than what it is supposed to. I used Firebug and it shows that the text is 12px as defined in the element's CSS. However Web Developer and CSSViewer both report that the text is 16px, which is w...
{ "language": "en", "url": "https://stackoverflow.com/questions/267962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python distutils and replacing strings in code I often find a need to put paths in my code in order to find data or in some cases tool-specific modules. I've so far always used autotools because of this--it's just so easy to call sed to replace a few strings at build time. However, I'd like to find a more Pythonic...
{ "language": "en", "url": "https://stackoverflow.com/questions/267977", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: When should I use Radio Buttons? IMHO Radio buttons should retire. The ComboBox (Drop-Down list mode) should always be preferred.Drop-Down list takes minimal screen space, and you can add/remove items programmatically.No need to resize anything (hard), or disable irrelevant options (ugly). Can you think of a situat...
{ "language": "en", "url": "https://stackoverflow.com/questions/267982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: .NET 2.0 DataGridView ComboBox column - slow to display items Any suggestions on how to improve DataGridViewComboBoxColumn performace with large item sets? I've got a DataGridView with several columns of type DataGridViewComboBoxColumn. I'm databinding those combobox columns to a rather large collection (10k+ items)...
{ "language": "en", "url": "https://stackoverflow.com/questions/267987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Qt QGraphicsScene copy I have a QGraphicsScene that I want to copy and append to the start of a list. What is the best method of doing this? QGraphicsScene* m_scene = new QGraphicsScene(); QGraphicsScene* m_DuplicateScene; QList<QGraphicsScene *>m_list; A: Doing this would be very complicated because you don't k...
{ "language": "en", "url": "https://stackoverflow.com/questions/267998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: 2D overlap line chart Does any one know of an API that would allow me to draw something like this. It would need some interactivity to it * *zooming *change second dimension axis angle I was looking at JFreeChart but I don't see any example of doing 2D overlap chart. Thanks A: I did this quite recently. Pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/268002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: java webstart decompiler Is there anyway to decompile java webstart application? A: Start the application, then fetch the JAR(s) from the webstart cache. Proceed to decompile like with any other Java application. A: Yes, there is. A Java Webstart application is just one form of deployment. The result is a bunch o...
{ "language": "en", "url": "https://stackoverflow.com/questions/268010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: On QCoreApplication and QProcess I'm on the path to write a QCoreApplication supposed to create an external process via Qprocess. I've just noticed that even if the waitForStarted() is called and the process state is Running before the event handler is executing, the external process does not start until the exec()...
{ "language": "en", "url": "https://stackoverflow.com/questions/268011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I convert a Bitmap to byte[]? Basically I am inserting an image using the listviews inserting event, trying to resize an image from the fileupload control, and then save it in a SQL database using LINQ. I found some code to create a new bitmap of the content in the fileupload control, but this was to store it...
{ "language": "en", "url": "https://stackoverflow.com/questions/268013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: apache user can not write to .python-eggs I have read that I need to set the PYTHON_EGG_CACHE environment variable, or install the python library as an uncompressed .egg Which do you suggest? A: It totally depends on if you want to make the egg available as a generally available library or just for a single (or a h...
{ "language": "en", "url": "https://stackoverflow.com/questions/268015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there anything like a small version of TFS? Is there anything that has features of TFS(Like Source Control, Debug, Testing,...) that we can use in a workgroup with a small team(say 1-6 persons)? BTW: we are using VS 2008 Team Suit A: Do you particularly need it all in one package? Various open source projects on...
{ "language": "en", "url": "https://stackoverflow.com/questions/268018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What’s the best way to check if a file exists in C++? (cross platform) I have read the answers for What's the best way to check if a file exists in C? (cross platform), but I'm wondering if there is a better way to do this using standard c++ libs? Preferably without trying to open the file at all. Both stat and acc...
{ "language": "en", "url": "https://stackoverflow.com/questions/268023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "103" }
Q: Install MySQLdb (for python) as non-compressed egg The install instructions are: $ python setup.py build $ sudo python setup.py install # or su first This gives me an .egg file. How do I tell the install to dump the files as a normal, uncompressed library? Thanks! A: OK, I hate to answer my own question, but: find...
{ "language": "en", "url": "https://stackoverflow.com/questions/268025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can I use indexed primitives when using vertex buffer objects in OpenGL ES 1.x? I have an array that contains a list of vertices which I copy to the GPU using a vertex buffer object. However the vertex coordinates on their own are meaningless as I also have an integer array that contains a list of indices into the v...
{ "language": "en", "url": "https://stackoverflow.com/questions/268035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Exported Project Template from VS2008 but it is corrupted? I am working on creating a custom project template with Visual Studio 2008 Team System edition. I have also created a custom wizard for the custom template. So I have to update the vstemplate file to tell the template to use my custom wizard. But the archi...
{ "language": "en", "url": "https://stackoverflow.com/questions/268037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ActionController::InvalidAuthenticityToken: verified with authentication token on the form I don't know why it happens but my form for some reason does not post properly. I am very sure the form contains the required authentication token: <form action="/account/complete_verify_email/4df78710-e27b-4527-bd2d-71cd2e9a1...
{ "language": "en", "url": "https://stackoverflow.com/questions/268038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you handle multiple (overlapping) projects in trac? We are using trac and are really satisfied with it. However, out of the box, trac is best suited for single-project environments only. I'd be interested to hear about the various approaches people take to make it work with multiple projects nevertheless and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/268039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Multi line search and replace tool I am looking for a tool to replace multiple lines through out a project. For example: #include "../DiscreteIO/Discrete.h" #include "../PCI/pci.h" #include "../Arinc429/ARINC429.h" with #include "../PCI/pci.h" #include "../DiscreteIO/DiscreteHW.h" #include "../DiscreteIO/Discrete.h...
{ "language": "en", "url": "https://stackoverflow.com/questions/268045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Can I find out the return value before returning while debugging in Visual Studio? Take the following function: DataTable go() { return someTableAdapter.getSomeData(); } When I set a breakpoint in this function, is there a possibility to inspect the returned value? go() is directly coupled to a datagrid in an ....
{ "language": "en", "url": "https://stackoverflow.com/questions/268048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "442" }
Q: Delphi 2009 where is the 'treat warnings as errors' option? In Delphi 2009 whereabouts do you turn on the option to treat warnings as errors? A: Just found the answer soon after I posted this! Might be useful for other people. Navigate to 'Project -> Options - > Delphi Compiler -> Hints and Warnings' and change th...
{ "language": "en", "url": "https://stackoverflow.com/questions/268062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: C#: How can Dictionary implement ICollection> without having Add(KeyValuePair)? Looking at System.Collections.Generic.Dictionary<TKey, TValue>, it clearly implements ICollection<KeyValuePair<TKey, TValue>>, but doesn't have the required "void Add(KeyValuePair<TKey, TValue> item)" function. This can also be seen when...
{ "language": "en", "url": "https://stackoverflow.com/questions/268064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Problem when including a file with an included file I have been trying to include a file in a included file e.g main.cpp file #include <includedfile.cpp> int main(){ cout<<name<<endl; } includedfile.cpp #include <iostream> using namespace std; string name; name = "jim"; this code does not work, the debuger sa...
{ "language": "en", "url": "https://stackoverflow.com/questions/268069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Search multiple list for missing entries I have 3 lists, I will make them simple here. list of letters A B C list of numbers 1 2 3 Mixed A,1 A,2 B,2 B,3 C,1 C,3 I need to know what is missing: A,3 B,1 C,2 The list of letters has about 85 entries and the list of numbe...
{ "language": "en", "url": "https://stackoverflow.com/questions/268079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Creating a constant Dictionary in C# What is the most efficient way to create a constant (never changes at runtime) mapping of strings to ints? I've tried using a const Dictionary, but that didn't work out. I could implement a immutable wrapper with appropriate semantics, but that still doesn't seem totally right....
{ "language": "en", "url": "https://stackoverflow.com/questions/268084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "157" }
Q: How to remove the prompt for killing emacsclient buffers? After I open something with emacsclient, when I kill that buffer (C-x k) I get a confirmation dialog: Buffer `blah' still has clients; kill it? (yes or no) But when I kill buffers opened directly from Emacs I don't. Is there a way not to get them when emacsc...
{ "language": "en", "url": "https://stackoverflow.com/questions/268088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Multiple database support in django From some forum I came to know that Multiple database support is added in Django at lower level, but the higher level apis are not added yet. Can anyone please tell me how one can achieve multiple database connections in Django. Does anyone have any idea by when Django will fully/...
{ "language": "en", "url": "https://stackoverflow.com/questions/268089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Right-floated sidebar with main content flowed around - how? I'd like to create a webpage layout with the sidebar to the right and the main content flowing around the sidebar. Requirements: * *Content below the sidebar should occupy all of the available width *Content below the sidebar should not wrap when it hi...
{ "language": "en", "url": "https://stackoverflow.com/questions/268093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Design Questions Im building a windows app in c# and I have the following design question : I have the following object structure : Parent -> Child Collection - > Child - > Grandchild collection -> Grandchild. The use case requires that I use my Parent object in stages. Eg. Make a new instance of parent. Populate pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/268096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Update data in different tables in SQL Server In a table I have the following schema table1: playerID int primary key, nationalities nvarchar table2: playerID int, pubVisited nvarchar Now, I want to set all the players' playedVisited to null, for player whose nationality is "England", any idea on how to do this? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/268105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySQL Cross-Table Count(*) Query Help SELECT `name` , COUNT(*) AS `count` FROM `t1`, `t2` WHERE `t2`.`id` = `t1`.`id` GROUP BY `t2`.`id` I want to obtain the name from t1 and the number of rows in t2 where the id is the same as on t1. I've got the above so far, however it won't return any data if there are no rows...
{ "language": "en", "url": "https://stackoverflow.com/questions/268107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Full-screen camera How can I make the iPhone camera full-screen by removing the overlay? Can I change the camera toolbar style? A: There is no reliable way to do this using the current iPhone SDK. You should file a bug with Apple to try to get them to add more control over the camera. A: I ran into a blog on this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/268108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Dynamically load pictures from file system into Crystal Report (VS 2008 version) I have a VB.NET application which needs to generate reports (invoices) which contains optional images. The images are going to be loaded into 1 of 6 places on the report, but will reside on the client PC (deployed with the application)...
{ "language": "en", "url": "https://stackoverflow.com/questions/268109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I do string operations in XSLT? I have the following code block in my xslt; <xsl:when test="StatusData/Status/Temperature > 27"> <td bgcolor="#ffaaaa"> <xsl:value-of select="StatusData/Status/Temperature" /> </td> </xsl:when> But as you might...
{ "language": "en", "url": "https://stackoverflow.com/questions/268116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: To check whether the string value has numeric value or not in C# I am having an string like this string str = "dfdsfdsf8fdfdfd9dfdfd4" I need to check whether the string contains number by looping through the array. A: If you are looking for an integer value you could use int.TryParse: int result; if (int.TryParse(...
{ "language": "en", "url": "https://stackoverflow.com/questions/268120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: When to build your own buffer system for I/O (C++)? I have to deal with very large text files (2 GBs), it is mandatory to read/write them line by line. To write 23 millions of lines using ofstream is really slow so, at the beginning, I tried to speed up the process writing large chunks of lines in a memory buffer (f...
{ "language": "en", "url": "https://stackoverflow.com/questions/268121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Vim - how to start inserting at the end of the file in one step Is there a single shortcut to start inserting in the new line at end of the file? I'm aware of G + o combo. A: There's also the command line option "+": vim + myfile.txt Will open myfile.txt and do an automatic G for you. A: echo >> myfile.txt && vi...
{ "language": "en", "url": "https://stackoverflow.com/questions/268123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "58" }
Q: What's the best way to share business object instances between Java web apps using JBoss and Spring? We currently have a web application loading a Spring application context which instantiates a stack of business objects, DAO objects and Hibernate. We would like to share this stack with another web application, to a...
{ "language": "en", "url": "https://stackoverflow.com/questions/268129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Invert "if" statement to reduce nesting When I ran ReSharper on my code, for example: if (some condition) { Some code... } ReSharper gave me the above warning (Invert "if" statement to reduce nesting), and suggested the following correction: if (!some condition) return; Some co...
{ "language": "en", "url": "https://stackoverflow.com/questions/268132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "323" }
Q: Wildcard application maps in IIS using WIX Is it possible to add a wildcard application map in IIS6 from the wix installer package? I know how to add application extensions however can't see any way to add wildcards. This is needed for ASP.Net MVC to function properly. A: Found the answer. You use the WebApplicati...
{ "language": "en", "url": "https://stackoverflow.com/questions/268146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Access original subject of meeting in Resource calendar I'm trying to set up a system that displays calendar items from a resource calendar on a web page using Exchange 2007 and EWS (Exchange Web Services). I've managed to get access to the calendars of the resources, but when getting the items in the calendars, the...
{ "language": "en", "url": "https://stackoverflow.com/questions/268152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Multithread read and write to a ::stl::vector, vector resource hard to release I am writing code in VS2005 using its STL. I have one UI thread to read a vector, and a work thread to write to a vector. I use ::boost::shared_ptr as vector element. vector<shared_ptr<Class>> vec; but I find, if I manipulate the vec in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/268153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to create a XML file from an Excel in .NET? I want to create XML file from my Excel file through .NET (c#). My data is in Excel and it will be added in XML file. Thanks. Manoj A: There is good article in CodeProject about it. Generally the answer is, that Excel can be used as Data provider. Later, when you get ...
{ "language": "en", "url": "https://stackoverflow.com/questions/268164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ASP.NET user control - can't get client-side (JavaScript) altered value back into control Ok guys and gals, here is my problem: I've built a custom control that uses a textbox to present data to the user. When the user interacts with the control the value of that textbox is altered with client side javascript. I al...
{ "language": "en", "url": "https://stackoverflow.com/questions/268180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What are the dangers of dynamic SQL, and can they be avoided? We've just been given the following code as a solution for a complicated search query in a new application provided by offshore developers. I'm skeptical of the use of dynamic SQL because I could close the SQL statement using '; and then excute a nasty th...
{ "language": "en", "url": "https://stackoverflow.com/questions/268182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Weird nUnit unit test failure I have classX: Sub New(ByVal item_line_no As String, ByVal item_text As String) ' check to ensure that the parameters do not exceed the file template limits Select Case item_line_no.Length Case Is > m_item_line_no_capacity Throw New ArgumentOutOfRangeExcepti...
{ "language": "en", "url": "https://stackoverflow.com/questions/268184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create a numeric textbox in Silverlight? As the title says really. I've had a look at inheriting from TextBox, but the only sensible override was "OnKeyDown", but that just gives me a key from the Key enum (with no way to use Char.IsNumeric()). A: I took Nidhal's suggested answer and edited it a bit to handl...
{ "language": "en", "url": "https://stackoverflow.com/questions/268207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Delphi - Gracefully Closing Created Process in Service. (using tprocess / createProcess) I have a Windows Service written in Delphi which runs a number of programs. On Stopping the service, I want to also close these programs. When the service was originally written, this worked fine, but I think I've updated the t...
{ "language": "en", "url": "https://stackoverflow.com/questions/268208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you detect packet-loss on Windows Server 2003? Is there any way to detect packet loss with the help of performance counters or am I better of using a 3rd-party tool? What tools would you recommend? A: netstat -s will show you the total count of retransmissions. Wireshark can capture traffic and got an "exper...
{ "language": "en", "url": "https://stackoverflow.com/questions/268209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Dependencies and references - What exactly should I reference? I am wondering what to include when building my project. I have a library I need to reference for my project to build but that library has 10 dependencies itself. Should I reference those dependencies as well or should I copy them to the output directory...
{ "language": "en", "url": "https://stackoverflow.com/questions/268214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What are the 404;1, 404;2 etc HTTP error codes for? In IIS I can configure my custom error pages. For each HTTP Error code I can say where to go. Several codes have a number of "sub" codes available. For example 404 has a regular 404, 404;1, 404;2 and so on.. What are they for? When are they returned? Should I make ...
{ "language": "en", "url": "https://stackoverflow.com/questions/268244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Why seal a class? I'd like to hear what is the motivation behind the bulk of sealed classes in the .Net framework. What is the benefit of sealing a class? I cannot fathom how not allowing inheritance can be useful and most likely not the only one fighting these classes. So, why is the framework designed this way and...
{ "language": "en", "url": "https://stackoverflow.com/questions/268251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "109" }
Q: How do you make code reusable? Any code can be reused in a way or an other, at least if you modify the code. Random code is not very reusable as such. When I read some books, they usually say that you should explicitly make the code reusable by taking into account other situations of code usage too. But certain code...
{ "language": "en", "url": "https://stackoverflow.com/questions/268258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: How do I write a console application in Windows that would minimize to the system tray? I have a written a Visual C++ console application (i.e. subsystem:console) that prints useful diagnositic messages to the console. However, I would like to keep the application minimized most of the time, and instead of minimizin...
{ "language": "en", "url": "https://stackoverflow.com/questions/268260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Really Basic Graphics in C# 2.0 Tutorials I work for a ticketing agency and we print out tickets on our own ticket printer. I have been straight coding the ticket designs and storing the templates in a database. If we need a new field adding to a ticket I manually add it and use the arcane co-ordinate system to esti...
{ "language": "en", "url": "https://stackoverflow.com/questions/268270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting key with maximum value in dictionary? I have a dictionary where keys are strings, and values are integers. stats = {'a': 1, 'b': 3000, 'c': 0} How do I get the key with the maximum value? In this case, it is 'b'. Is there a nicer approach than using an intermediate list with reversed key-value tuples? inve...
{ "language": "en", "url": "https://stackoverflow.com/questions/268272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1343" }
Q: Can I check wheter Linq 2 SQL's DataContext is tracking entities? We want to throw an exception, if a user calls DataContext.SubmitChanges() and the DataContext is not tracking anything. That is... it is OK to call SubmitChanges if there are no inserts, updates or deletes. But we want to ensure that the developer di...
{ "language": "en", "url": "https://stackoverflow.com/questions/268277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }