text
stringlengths
8
267k
meta
dict
Q: Subscript text in HTML I am using the following code to write the table. Now I wish to add subscript text after the table text. How can it be achieved? My code has: oCell = document.createElement("TD"); oCell.innerHTML = data; oRow.appendChild(oCell); How do I add a subscript text followed by the data? A: Yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/450424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way for a Java application to detect if the screen is locked? I'm looking for a way to know in a Java application (without JNI - it's a multi-platform application) can detect if the screen is locked. For information... our application records time while a user is working - we want it to automatically stop...
{ "language": "en", "url": "https://stackoverflow.com/questions/450428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Dynamically Loading a UserControl with LoadControl Method (Type, object[]) I'm trying to return the html representation of a user/server control through a page method. It works when I call the overload which takes the virtual path to the user control, but not when I try to call the overload which takes a type. The s...
{ "language": "en", "url": "https://stackoverflow.com/questions/450431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: TFS over VPN connection - is there a way to save the userid/password on client? I often connect to my work TFS instance over VPN. Becasue my home computer is not on the domain, I'm forced to enter my userid/password for each tf.exe command. Is there a way to cache or save this locally? A: You can definitely do it! ...
{ "language": "en", "url": "https://stackoverflow.com/questions/450447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Minimal Qt executable-size Now that Qt goes LGPL I tend to give it a try again. Years ago I decided against for some reasons, one of them being the huge size of executables (Qt on windows). I found a lower limit of about 5MB. Trolltech affirmed this on request but told me, that the granularity will be improved, whic...
{ "language": "en", "url": "https://stackoverflow.com/questions/450455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Custom search in Dynamics CRM 4.0 I have a two related questions. First: I'm looking to do a full text search against a custom entity in Dynamics CRM 4.0. Has anyone done this before or know how to do it? I know that I can build QueryExpressions with the web service and sdk but can I do a full text search with boole...
{ "language": "en", "url": "https://stackoverflow.com/questions/450462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to make this class generic? (.NET C#) My class has the following core: class SmartDbConnection { private readonly IDbConnection Connection; public SmartDbConnection(string ConnectionString) { if(ConnectionString.Contains("MultipleActiveResultSets=true")) { Connection = ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/450463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Pascal syntax highlight in Visual Studio? I'm writing in C# the next generation of an old app originally written in Delphi. I often have to look in the old code and wondered if there's anyway to install Pascal syntax highlighting in the Visual Studio 2008 editor. TIA. A: I'm not an expert but you might want to look...
{ "language": "en", "url": "https://stackoverflow.com/questions/450464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Crystal Reports - No rowset was returned for this table, query or procedure - Crash! I am using Crystal Reports 8.0.1.0 and have an OLEDB connection set as "favourite". We have several reports being run against a few stored procedures on the database. Our database is an SQLExpress 2005 named instance. One of the rep...
{ "language": "en", "url": "https://stackoverflow.com/questions/450469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unknown crash in a C++ Memory Pointers Exercise I recently wrote a program to help me understand the basics of memory pointers in C++, I chose a simple prime number finder. I finally got it to work. (yay for debugging!) And I let it run to see how far it goes, it gets to prime #815389 with my verbose tells me is the...
{ "language": "en", "url": "https://stackoverflow.com/questions/450471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Automatically call visual studio 2008 "sort using directives" on save? Visual Studio 2008 got two great features for c#, which is called "sort using directives" and "remove unused using directives". I'd like to call the "sort using directives" every time I format the code using ctrl+k,ctrl+d. Or, even better, I woul...
{ "language": "en", "url": "https://stackoverflow.com/questions/450474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Strange Encoding Problem I have a table of datas encoded in latin5 charset and all the columns in the table are also latin5. From mysql console when I enter "SET NAMES 'latin5'" and query the table results are ok . When I try to delete or insert/update all the new data's encodings are perfect. But when I try to inse...
{ "language": "en", "url": "https://stackoverflow.com/questions/450476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Template engine for image generation Does anyone know of any templating engines for generating images, preferably Java-based? What I have in mind is something like StringTemplate where a you have a set of parameterized templates that render to an image (or SVG, etc) rather than text. It needs to be more general pu...
{ "language": "en", "url": "https://stackoverflow.com/questions/450486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: A Good C++ Library for SOAP What are the alternatives for SOAP development in C++? Which one do you prefer and is most supported/modern? A: I had to make SOAP calls for a project a while ago and the only acceptable solution I found was GSOAP. http://www.cs.fsu.edu/~engelen/soap.html It supports both C and C++ code,...
{ "language": "en", "url": "https://stackoverflow.com/questions/450488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: How to inject text to the cursor focus I am developing a .NET windows app that needs to insert text in the place where the cursor is. The cursor will be in a different application that I have no control over. I think the operating system needs to be used here to achieve this. Can you help please? A: Put the text yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/450491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Natural English language words I need the most exhaustive English word list I can find for several types of language processing operations, but I could not find anything on the internet that has good enough quality. There are 1,000,000 words in the English language including foreign and/or technical words. Can you ...
{ "language": "en", "url": "https://stackoverflow.com/questions/450493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: what are the Data Flow Diagrams DFD? What are DF Diagrams , and how they help project managers in their job? A: As you can see, is a data flow diagram a diagram that shows the dataflow in an application. At the highest level you have the context diagram that can be represented as: +-------------+ input --...
{ "language": "en", "url": "https://stackoverflow.com/questions/450498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best way to build a search function I have a website that has over 400,000 items. Some similar, some vastly different. We want to provide a way to search these items the best way possible. After being delivered the website it was using full text indexing. The solution is basic at best, woefully inadequate at wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/450500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Queries for migrating data in live database? I am writing code to migrate data from our live Access database to a new Sql Server database which has a different schema with a reorganized structure. This Sql Server database will be used with a new version of our application in development. I've been writing migrating ...
{ "language": "en", "url": "https://stackoverflow.com/questions/450515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: asp.net mvc release will include a validation framework? Does anyone know how the validation will work with V1? I'm at the crossroads, use one of the frameworks out there or wait for V1? My asp.net mvc development has has been put on hold until i can find out more info on the v1 release and how the validation wil...
{ "language": "en", "url": "https://stackoverflow.com/questions/450516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What do < and > mean such as implements Comparable? In Java 1.4.2, class java.math.BigInteger implements interfaces Comparable, Serializable. In Java 1.5.0, class java.math.BigInteger implements interfaces Serializable, Comparable<BigInteger>. This is just an example to help me ask about < and >. What I am really w...
{ "language": "en", "url": "https://stackoverflow.com/questions/450520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: View All Changed Files in TFS I would like to generate a list of all the files that have been modified within my project. I know I could view the history on the project to get all the changesets and then view each changeset for the files in contains, however, this process would take a long time. Is there an easier...
{ "language": "en", "url": "https://stackoverflow.com/questions/450523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Does Shoes have a list view control? I was taking a look at Shoes which seems like a very nice tool for quick GUI applications. The common elements/controls, however, don't seem to include the equivalent of a list/report view (e.g., ListView in Windows, NSTableView in OS X). Did I just miss this, or does it not (ye...
{ "language": "en", "url": "https://stackoverflow.com/questions/450535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I get a common-lisp GUI in Windows? I'm using Emacs, with CLISP and Slime, and want to be able to draw pictures on the screen. I'm specifically thinking about drawing graphs, but anything that would let me draw basic shapes and manipulate them would be able to get me started. A: I think I've found my own an...
{ "language": "en", "url": "https://stackoverflow.com/questions/450538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: VS 2008 WinForms with SourceSafe We are using Visual Studio 2008 to develop a winforms application stored in Visual Source Safe 2005. If one of our team members changes a *.Designer.cs file without changing the form's source file the change doesn't appear during a "Get" operation. However, if in Visual Studio you r...
{ "language": "en", "url": "https://stackoverflow.com/questions/450541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: open detail view with request parameter I created a simple master/detail using myfaces and richfaces. By clicking a h:commandLink in the rich:dataTable the user is able to open the detail view and edit the entity. Now I want to create a URL that allows the user to open the detail view directly. Normally I would to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/450546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to make Lucene match all words in query? I am using Lucene to allow a user to search for words in a large number of documents. Lucene seems to default to returning all documents containing any of the words entered. Is it possible to change this behaviour? I know that '+' can be use to force a term to be included...
{ "language": "en", "url": "https://stackoverflow.com/questions/450547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: vbscript / Classic ASP - Is there any way to get your own file name programmatically? I was just reviewing some old code and found the following (inside foo.asp): Const ASP_FILENAME = "foo.asp" ' TODO: Update this to the name of this file (if changed) The variable is only used for logging errors. (ie. "Error in f...
{ "language": "en", "url": "https://stackoverflow.com/questions/450552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Custom spring scopes? Anyone know of any other custom spring scopes than Servlet Context Scope and ThreadScope ? If you've made some closed-source custom scope I'd really also be interested in hearing what it does and how it worked out for you. (I'd imagine someone would make a WindowScope in a desktop app ?) I'm o...
{ "language": "en", "url": "https://stackoverflow.com/questions/450557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Simplified algorithm for calculating remaining space in a circular buffer? I was wonder if there is a simpler (single) way to calculate the remaining space in a circular buffer than this? int remaining = (end > start) ? end-start : bufferSize - start + end; A: If you're worried abou...
{ "language": "en", "url": "https://stackoverflow.com/questions/450558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Only create a TFS work item on a new failed build I've seen the post about disabling work item creation on all failed builds, but I'd like to have TFS only create a work item on the first failure. We have a very complicated legacy system that involves VB6 COM components and frequently have build failures on the bui...
{ "language": "en", "url": "https://stackoverflow.com/questions/450560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How best to implement BCD as an exercise? I'm a beginner (self-learning) programmer learning C++, and recently I decided to implement a binary-coded decimal (BCD) class as an exercise, and so I could handle very large numbers on Project Euler. I'd like to do it as basically as possible, starting properly from scratc...
{ "language": "en", "url": "https://stackoverflow.com/questions/450561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Running a WPF application on Windows XP I recently built a new application using WPF, so that I can learn the new technology. Now that I am trying to deploy the application, it appears as if it is running fine on a Vista system, but on a Windows XP SP2 machine with the .Net fx 3.5SP1, it's not able to load the Pres...
{ "language": "en", "url": "https://stackoverflow.com/questions/450563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Slow MySQL query -- possibly an index issue? So firstly here's my query: (NOTE:I know SELECT * is bad practice I just switched it in to make the query more readable) SELECT pcln_cities.*,COUNT(pcln_hotels.cityid) AS hotelcount FROM pcln_cities LEFT OUTER JOIN pcln_hotels ON pcln_hotels.cityid=pcln_cities.cityid ...
{ "language": "en", "url": "https://stackoverflow.com/questions/450573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can OpenLaszlo Use JavaScript Libraries like JQuery and PrototypeJS? I have been looking at OpenLaszlo and observed that scripting in the client is implemented in JavaScript. Does this mean it is possible to use libraries like JQuery and PrototypeJS ? A: Directions on using JQuery with other Libraries: http://docs....
{ "language": "en", "url": "https://stackoverflow.com/questions/450575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to average time intervals? In Oracle 10g I have a table that holds timestamps showing how long certain operations took. It has two timestamp fields: starttime and endtime. I want to find averages of the durations given by these timestamps. I try: select avg(endtime-starttime) from timings; But get: SQL Error...
{ "language": "en", "url": "https://stackoverflow.com/questions/450581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Debugging a crash after exiting? (After main returned) This is a fairly involved bug, and I've tried looking around to find other sources of help, but for reasons I don't understand, "Program Crashes in Vista" is not the most helpful query. The issue I'm having is that the program I'm working on - a graphical, multi...
{ "language": "en", "url": "https://stackoverflow.com/questions/450585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: IDisposable Winform What is the best practice for implementing IDisposable on a Winform? * *I have a dialog which extends System.Windows.Forms.Form *The generated designer.cs already contains an implementation of the virtual Dispose(bool) method *My form has a field added manually which implements IDisposable ...
{ "language": "en", "url": "https://stackoverflow.com/questions/450596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Change connection string from class library in main application at run-time You can change the connection string at run-time like this. You make the connection string setting available for writing as a separate property inside the MySettings class: Partial Friend NotInheritable Class MySettings Public WriteOnly ...
{ "language": "en", "url": "https://stackoverflow.com/questions/450598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Intercept entity saving with ADO.NET Entities Framework I want to invoke a validation function inside the entities objects right before they are stored with ObjectContext#SaveChanges(). Now, I can keep track of all changed objects myself and then loop through all of them and invoke their validation methods, but I s...
{ "language": "en", "url": "https://stackoverflow.com/questions/450601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Limit number of concurrent connections in Apache2 Is there a way I can limit the number of concurrent connections to the Web Application running on my Apache Server. My server version is Apache 2.2.11 A: Have a look at limitipconn module. A: I'm not sure if it will useful to you but definitely worth a chance. Mayb...
{ "language": "en", "url": "https://stackoverflow.com/questions/450606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How important for programming skills is to have nice gadgets? This question was asked by Ed Burns in his book 'Riding the Crest'. I remember that almost all of the rock star programmers found helpful if one had new and kool gadget. Programmer stays in touch with the latest design, hardware and software implementatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/450616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Most binary combinations from 4 bits, with single change per bit I have 4 binary bits Bit 3 Bit 2 Bit 1 Bit 0 Normally the answer is simple: 2^4, or 16 different combinations; and it would looks something like the following: 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 However,...
{ "language": "en", "url": "https://stackoverflow.com/questions/450617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: NaN Values in a float field in MSSQL Database I am working on an old database I inherited from my predecessors. In it, some float fields contains NaN where there should be a null. The following SQL doesn't work because it doesn't recognize NaN. UPDATE xxx SET column= null WHERE column=NaN How can I do this? A: Tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/450618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Change the ruby process name in top I would like to change the name of the ruby process that gets displayed in the linux/unix top command. I have tried the $0='miname' approach but it only works with the ps command and in top the process keeps getting displayed as "ruby" A: I don't think Ruby has the facility bui...
{ "language": "en", "url": "https://stackoverflow.com/questions/450620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Creating a single file WCF for testing IIS setup Is it possible to create a single .svc file (WCF Service) that I can upload to my server and test if it correctly handles WCF files? i.e. it is configured to host WCF services. (I have a IIS6 box that I have to test) A: You can use inline coding in your svc file: %@ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/450626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Visual C++ 2005 hangs during qt builds At my shop, the main product app is a mongrel built on MFC, QT and other random things devs have thrown in over the years. In the current stack, Qt toolkit is on the way out, but still features heavily. If I have SQL 2005 Management studio open and have to do a full build, it u...
{ "language": "en", "url": "https://stackoverflow.com/questions/450630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to disable warnings in Visual Studio for a Visual Basic Web Deployment Project For our VB.NET websites we use SVN for Source Control and CruiseControl.NET for continuous integration. To use the SVN build number in the compilation by CruiseControl.NET we need to use Web Deployment Projects. We then replace in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/450632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I create a subdomain on windows? I just want to add a couple subdomains to my computers FQDN so that I can have some Vitrual Servers (apache.) Any ideas? Note: I need to add the aliases to my machine, like a.foo.com and b.foo.com. I don't think apache makes those aliases. Alternative: I decided that instea...
{ "language": "en", "url": "https://stackoverflow.com/questions/450636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get column info from oracle table you don't own (without using describe)? How would one get columns information on table which he doesn't own, but has select granted? This is, without using DESCRIBE table_name. Consider this example: // user bob owns table STUDENTS grant select on students to josh; // now j...
{ "language": "en", "url": "https://stackoverflow.com/questions/450637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: ASP.NET MVC Standard Link/Href As Save Button And Model IS NUll Okay so, i am totally new to MVC and I'm trying to wrap my head around a few of the concepts. I've created a small application... This application has a view for creating a new Individual record. The view is bound to a model ViewPage... And I have a ass...
{ "language": "en", "url": "https://stackoverflow.com/questions/450640", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Compile a WinCE app as a PC app in VS2005 anyone knows a way how to compile a WinCE app as a PC app in VS2005. I want to change a standard MFC smart device app to an mfc windows app. A: You likely need to design your application to achieve this from the beginning. We use our own framework (built directly on top of...
{ "language": "en", "url": "https://stackoverflow.com/questions/450643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiple elements with same width equal to widest element I have two elements (a button and an anchor tag) both with a dynamical text inside that grow to the length of their content. I cannot know which one of them will be the longest at compile time, nor can I know what the maximum/minimum width will be. The shorte...
{ "language": "en", "url": "https://stackoverflow.com/questions/450646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Java Events: Is this a good way to go about it? I'm reimplementing a .Net API in Java and the API specifies a whole bunch of events, ehich java doesn't implicitly support. I'm going to use an observer pattern but due to the number of event I really don't want to clutter the interface. I was wondering if it was a goo...
{ "language": "en", "url": "https://stackoverflow.com/questions/450653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How source control management interworking can be achieved? While related questions have been asked before I would like to see an idea about how interoperability between two source control management (SCM) systems can be done. For example we could consider any SCM out there (Mercurial, Git, SVN, CVS, Perforce, Clear...
{ "language": "en", "url": "https://stackoverflow.com/questions/450666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I Dynamically Preselect an item in a html.DropDownlist in ASP.NET MVC is there way thats i can preselect an item when the page loads or posts to the server.. this is what i have right now.. <%=Html.DropDownList("dllMonths", new SelectList(new List<string>() { "", "January", "Feburary", "March",...
{ "language": "en", "url": "https://stackoverflow.com/questions/450669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can you install Office 2007 PIA's without office First of all, my question is not quite the same as Is Office 2007 PIA deployment possible without Office 2007? I am not looking to use the PIA's yet. The IT engineers would ideally like to deploy the 2007 PIA's to everyone's computers before they upgrade Office 2007. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/450674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: DataTable internal index is corrupted I am working with a .NET WinForms app in C#, running against the 3.5 .NET framework. In this app, I am setting the .Expression member of a DataColumn in a DataTable, like so: DataColumn column = dtData.Columns["TestColumn"]; column.Expression = "some expression"; The 2nd line, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/450675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: Why KeyTyped event does not show under Linux when typing unicode? I have a Swing Application running under Linux, that has problems to display accented characters. Looking into the application, I tracked the problem to the Keyboard. I added a new EventQueueManager to intercept all events received. I typed the "[de...
{ "language": "en", "url": "https://stackoverflow.com/questions/450676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Puzzled by Rails exception notification system [update2] One of those problems I solved & can't remember how... :) [update1] could this be a problem in the model? PAYPAL_CERT_PEM = File.read("#{Rails.root}/certs/paypal_cert.pem") APP_CERT_PEM = File.read("#{Rails.root}/certs/app_cert.pem") APP_KEY_PEM = File....
{ "language": "en", "url": "https://stackoverflow.com/questions/450679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: INSERT INTO .. ON DUPLICATE KEY UPDATE for multiple items I want to do something like this INSERT INTO t (t.a, t.b, t.c) VALUES ('key1','key2','value') ON DUPLICATE KEY UPDATE t.c = 'value'; INSERT INTO t (t.a, t.b, t.c) VALUES ('key1','key3','value2') ON DUPLICATE KEY UPDATE t.c = 'value2'; t.a and t.b are ...
{ "language": "en", "url": "https://stackoverflow.com/questions/450682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "80" }
Q: Programming Multi-Language PHP applications I'm developing a PHP application and I'm wondering about the best way to include multi-language support for users in other countries. I'm proficient with PHP but have never developed anything with support for other languages. I was thinking of putting the language into a P...
{ "language": "en", "url": "https://stackoverflow.com/questions/450687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: What is the correct regular expression for an email address? Duplicate: Using a regular expression to validate an email address There seem to be an awful lot of different variants on this on the web and was wondering if there is a definitive answer? Preferably using the .net (Regex) dialect of regular expressions. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/450696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can the DllMain of an .exe be called? My question is not exactly the same as this one (it's not theoretical, there is only a main thread without message loop, InitInstance and ExitInstance are no fitting calls). I'm using a console app without message loop; this app loads an exe with the LoadLibrary function, so tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/450700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jquery version of array.contains Can jQuery test an array for the presence of an object (either as part of the core functionality or via an avaible plugin)? Also, I'm looking for something like array.remove, which would remove a given object from an array. Can jQuery handle this for me? A: jQuery.inArray returns th...
{ "language": "en", "url": "https://stackoverflow.com/questions/450717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "55" }
Q: Best way to create an asp.net page dynamically i have to create an asp.net page dynamically on runtime. It should work like this: 1) User logs in using <authentication mode="Windows" /> 2) A CheckUser(string Username){} will be send to the webservice which connects to a MySQL database and response with true or fals...
{ "language": "en", "url": "https://stackoverflow.com/questions/450718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Bypassing Lock on Generated Code in NetBeans 6.5? In NetBeans the GUI Builder generates code that is off limits to you from the editor. I know you can switch to Design Mode and specify custom code and then enter edit in indirectly that way, but it's a pain to not be able to edit text that's 2 lines from your cursor....
{ "language": "en", "url": "https://stackoverflow.com/questions/450727", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to perform SQL LEFT JOIN's using Django? Essentially I need a count of each Entries Comments: SELECT e.*, COUNT(c.id) as comments FROM blog_entry e LEFT JOIN blog_comment c ON e.id = c.entry_id GROUP BY e.id, e.name, e.name_slug, e.date_published, e.category, e.image, e.body, e.is_published, e.views, e.subscript...
{ "language": "en", "url": "https://stackoverflow.com/questions/450729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I pass a password to the "su" command? I have a program that is going to take a password as input and then do a shell execute to perform a "su" (switch user) command in UNIX. However, I don't know how to pass the password variable to the UNIX su command. The language I have to use for this is pretty limite...
{ "language": "en", "url": "https://stackoverflow.com/questions/450732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I test my server has .net 3.5 SP1 installed? Is there a way I can upload a file to my web server to test whether .net 3.5 SP1 was installed properly? Maybe use a new feature or something? A: This has been discussed a fair bit: How do I tell if .NET 3.5 SP1 is installed? Best Way To Determine If .NET 3.5 Is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/450735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP Get Source and Search for Word I need help i want to code a program that search for a word inside the source code. Here a Example in Python: import urllib2, re site = "http://stackoverflow.com/" tosearch = "Questions" source = urllib2.urlopen(site).read() if re.search(tosearch,source): print "Found The W...
{ "language": "en", "url": "https://stackoverflow.com/questions/450740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does informix have a "materialized view" equivalent or DB-table syncing Question: Does Informix have a construct equivalent to Oracle's "materialized view" or is there a better way to synchronize two tables (not DB's) accross a DB link? I could write a sync myself (was asked to) but that seems like re-inventing the...
{ "language": "en", "url": "https://stackoverflow.com/questions/450742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Should I go open-source even if I want to retain all rights? Years ago I released a program called Banshee Screamer Alarm and at the time it included the full source code, "for educational purposes only." You couldn't extend it to make your own version, but you could learn from it. It actually helped somebody fix a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/450749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Cookie Problem in Python I'm working on a simple HTML scraper for Hulu in python 2.6 and am having problems with logging on to my account. Here's my code so far: import urllib import urllib2 from cookielib import CookieJar #make a cookie and redirect handlers cookies = CookieJar() cookie_handler= urllib2.HTTPCooki...
{ "language": "en", "url": "https://stackoverflow.com/questions/450787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: WCF Authentication With SSL I am very new to WCF and I have created a service to be consumed via a windows mobile app using the basicHttpBinding. I am now looking at how to implement encrpytion and authenticaion and I am not getting very far. I have added the following to my server side service configuration (which...
{ "language": "en", "url": "https://stackoverflow.com/questions/450788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: batch not working if calling from a Java program I wrote a batch file that reads in a text file which contains a list of file name, and then delete and rename them one by one. I did this by using a for loop, and it works perfectly by double clicking it. But when I tried to call this batch from a Java program. It's n...
{ "language": "en", "url": "https://stackoverflow.com/questions/450789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Shell command to sum integers, one per line? I am looking for a command that will accept (as input) multiple lines of text, each line containing a single integer, and output the sum of these integers. As a bit of background, I have a log file which includes timing measurements. Through grepping for the relevant line...
{ "language": "en", "url": "https://stackoverflow.com/questions/450799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1046" }
Q: Custom read-host dialog for PowerShell 2 CTP3 ISE Is it possible to hook a custom dialog into the new PowerShell ISE (Integrated Scripting Environment) that replaces the existing .NET WinForms dialog. I am talking about the dialog that the Read-Host cmdlet launches to request for user input. A: For example, see thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/450801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I make the method return type generic? Consider this example (typical in OOP books): I have an Animal class, where each Animal can have many friends. And subclasses like Dog, Duck, Mouse etc which add specific behavior like bark(), quack() etc. Here's the Animal class: public class Animal { private Map<...
{ "language": "en", "url": "https://stackoverflow.com/questions/450807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "682" }
Q: SSRS can't conditionally filter "nil" values from XML Data Source? I've got a report in SSRS 2008 that is using a web service as one of its data sources. The basic look of the XML returned is <table> <row> <column1>data</column1> <column2 xsi:nil="true" /> <column3>data</column3> </ro...
{ "language": "en", "url": "https://stackoverflow.com/questions/450815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Testing if NetworkStream is closed I have a class, that wrapps a Stream instance, so I can use it for wrapping FileStreams and NetworkStreams. Now, I want to test if the stream is still delivering any data, in other words, I want to test the NetworkStream if it is still connected or the FileStream if it reached its ...
{ "language": "en", "url": "https://stackoverflow.com/questions/450816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C#: Generic sorted container that can return the sorted position of a newly added object? I need a generic container that keeps its elements sorted and can be asked where (at which position) it would insert a new element, without actually inserting it. Does such a container exist in the .NET libraries? The best illu...
{ "language": "en", "url": "https://stackoverflow.com/questions/450820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Round window playing movie using WPF Is it possible with WPF to create a window that has the shape of a circle and uses a playing movie as the background? A: To make a non-rectangular window, you need to first do three things. * *Set Window.WindowStyle to WindowStyle.None *Set Window.AllowsTransparency to Tru...
{ "language": "en", "url": "https://stackoverflow.com/questions/450822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the "Temporary ASP.NET Files" folder for? I've discovered this folder in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files and have a few questions. * *What does ASP.NET use this folder for, and what sort of files are stored here? *How does a file get stored here, and when is it updat...
{ "language": "en", "url": "https://stackoverflow.com/questions/450831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "162" }
Q: How do I make Microsoft VCC crash out on the first build-error? My automated build process uses a command-line to build something like this: devenv.exe myproj.sln /build release It is a very long build-process which integrates components made by a team of developers. It takes about half an hour to run in release mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/450832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: .NET server based PDF generation I'd like to dynamically generate content and then render to a PDF file. This processing would take place on a remote hosting server so using virtual printers etc is out. Does any have a recommendation for a .NET library (pref C#) that would work? I know that I could generate a bunch...
{ "language": "en", "url": "https://stackoverflow.com/questions/450833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Stopping scripters from slamming your website I've accepted an answer, but sadly, I believe we're stuck with our original worst case scenario: CAPTCHA everyone on purchase attempts of the crap. Short explanation: caching / web farms make it impossible to track hits, and any workaround (sending a non-cached web-beac...
{ "language": "en", "url": "https://stackoverflow.com/questions/450835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "502" }
Q: Free IDE for Windows Mobile Development? It's been a while now since Microsoft stopped supporting Embedded Visual C++ 4.0 (eVC 4), and they don't let you use the Windows Mobile SDK with the Express version of VS 2008. Now, I'm OK because I get an MSDN license through work (including VS 2008 Pro), but I'd like to wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/450859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What are the lightweight options one has to persist Java objects What are the lightweight options one has to persist Java objects ? I'm looking for the easiest possible solution. I don't want anything fancy featurewise just something simple that works with reasonnably simple objects (some collections, relationships ...
{ "language": "en", "url": "https://stackoverflow.com/questions/450864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: What is the equivalent to Posix popen() in the Win32 API? Is there a rough equivalent to the Linux/Unix stdio.h popen() function in the Win32 API? If so, where can I find it? Edit: I need to know this to patch an omission in the D standard library. Any answer must use only standard Win32 API, no MSVC-specific fun...
{ "language": "en", "url": "https://stackoverflow.com/questions/450865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Naming convention for params of ctors and setters For those of you who name you member variables with no special notation like m_foo or foo_, how do you name parameters to your ctors and setters? Some options I've tried so far... Obj(int foo) : foo(foo) { } void set_foo(int foo) { this->foo = foo; } Obj(int _foo) :...
{ "language": "en", "url": "https://stackoverflow.com/questions/450866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to store file name in database, with other info while uploading image to server using PHP? Hi I have read many forums and websites that tell you how to upload an image to a server and I have managed to get this working, I can upload a file to a my server but storing the file name does work on the following examp...
{ "language": "en", "url": "https://stackoverflow.com/questions/450876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: ImportError when using Google App Engine When I add the following line to Google's helloworld example: from reportlab.pdfgen import canvas I get the following error: <type 'exceptions.ImportError'>: No module named reportlab.pdfgen I can get at the reportlab.pdfgen library from the python console. Why can't ...
{ "language": "en", "url": "https://stackoverflow.com/questions/450883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Accessing internal network resource using external IP address How is it possible to access an internal resource (email server / FTP server) using its external IP address but from within the network ? The situation is that a number of users have laptops and work out of the office several days per week. I don't want t...
{ "language": "en", "url": "https://stackoverflow.com/questions/450894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Function & Procedures in Delphi (Defaults & Optional Parameters) EDIT: Is there a better way of doing this ? TPendingBets = class(TDataModule) private public function GetBdy(out IdEvent : Integer ) : Boolean; overload; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/450897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I make a div not larger than its contents? I have a layout similar to: <div> <table> </table> </div> I would like for the div to only expand to as wide as my table becomes. A: What works for me is: display: table; in the div. (Tested on Firefox and Google Chrome). A: display: -moz-inline-stack; d...
{ "language": "en", "url": "https://stackoverflow.com/questions/450903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2457" }
Q: Important frameworks/tools to learn Heyja, a frequently used answer to the question "What is so special about Java?" is "The tools and frameworks". I guess this is correct. I am stunned when i see all the tools and frameworks which make your life as a developer much easier. My Java skills are not perfect, but good a...
{ "language": "en", "url": "https://stackoverflow.com/questions/450906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Upload files to Sharepoint document libraries via FTP I was wondering if anyone knows how to or if it is possible to upload files to a sharepoint (v3/MOSS) document library over FTP. I know it is possible with webdav. If it is possible is this even supported by Microsoft? A: I don't think so. I think your options...
{ "language": "en", "url": "https://stackoverflow.com/questions/450915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Database/Web servers as a Virtual Machines vs Bare Metal? I manage a database (Oracle 8i) and web server (IIS) for about 50 simultaneous users on average and a theoretical limit of 100 simultaneous users. A mid level system. We just got a dual-socket Quad-core XEON - 16GB RAM - SAS-RAID-10 beast and I am exploring t...
{ "language": "en", "url": "https://stackoverflow.com/questions/450917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to make a visual studio add-in that cannot be unloaded? I'm writing a Visual Studio add-in using C/C++. I am not familiar with the COM architecture. In fact I'm learning Windows programming. I can see an OnDisconnect() call back into my add-in. I tried returning S_FALSE, but that does not seem to stop the add-i...
{ "language": "en", "url": "https://stackoverflow.com/questions/450933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }