text
stringlengths
8
267k
meta
dict
Q: Understanding Dijkstra's Mozart programming style I came across this article about programming styles, seen by Edsger Dijsktra. To quickly paraphrase, the main difference is Mozart, when the analogy is made to programming, fully understood (debatable) the problem before writing anything, while Beethoven made his de...
{ "language": "en", "url": "https://stackoverflow.com/questions/292682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: MySQL transaction with accounting application I have a table like the following: transaction_id user_id other_user_id trans_type amount This table is used to maintain the account transactions for a finance type app. Its double entry accounting so a transfer from User A to B would insert two rows into the table look...
{ "language": "en", "url": "https://stackoverflow.com/questions/292706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Can I make a website full screen without flash or silverlight? I'm working on something that needs a webpage to go full screen. The screen must become completely white. Is there anyway that I can do this without flash or silverlight? Thanks in advance edit: Im not trying to force anybody into fullscreen, this will...
{ "language": "en", "url": "https://stackoverflow.com/questions/292710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do you manage your DojoX code? How are you managing your usage of DojoX code or widgets in a production application? The Dojo Toolkit is comprised of Core, Dijit, and DojoX. As an incubator for new ideas to extend the toolkit, DojoX code and widgets are functional with varying degrees of instability. DojoX Code...
{ "language": "en", "url": "https://stackoverflow.com/questions/292711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Raising Events from a thread safely I am having some problems with events being raised from the non-UI thread, in that i dont wish to have to handle the If me.invokerequired on every event handler added to the thread in Form1. I am sure i have read somewhere how to use a delegate event (on SO) but i am unable to fin...
{ "language": "en", "url": "https://stackoverflow.com/questions/292715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Techniques for writing critical text data We take text/csv like data over long periods (~days) from costly experiments and so file corruption is to be avoided at all costs. Recently, a file was copied from the Explorer in XP whilst the experiment was in progress and the data was partially lost, presumably due to mul...
{ "language": "en", "url": "https://stackoverflow.com/questions/292717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How much should your development UI resemble the final product? Except perhaps at bigger (or better) shops, the development UI is done by the developers. In your experience, how much has this impacted the final product, and how much time should we spend getting the development UI right? A: The interface you're bui...
{ "language": "en", "url": "https://stackoverflow.com/questions/292722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to Stop Click Event From Executing in Javascript Function? I am trying to assign the onclick event to an anchor tag that already exists when I click on another element. However, everything I've tried seems to result in the firing of the event immediately after assignment. We're using Prototype and Scriptaculous....
{ "language": "en", "url": "https://stackoverflow.com/questions/292723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Self-signed SSL Cert or CA? I would like to have the authentication and registration parts of my website encrypted (for obvious reason). This site is currently and older site which some friends and I started in middle school and still use today. I may or may not register it to be a Non-Profit Organization in the n...
{ "language": "en", "url": "https://stackoverflow.com/questions/292732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "52" }
Q: C++ reading from a file blocks any further writing. Why? I am implementing a very simple file database. I have 2 basic operations: void Insert(const std::string & i_record) { //create or append to the file m_fileStream.open(m_fileName.c_str(), std::ios::out | std::ios::app); if (m_fileStream.is_open()) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/292740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a known pattern for scheduling events programatically? Does anyone have a known, solid solution for the scheduling of events (i.e. appointments, meetings, etc) within a system. I'm speaking here of "events" as tasks that need to be done on a one-time or recurring basis and executed based on a schedule. I've...
{ "language": "en", "url": "https://stackoverflow.com/questions/292741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to prevent ASP.NET 3.5 SP1 from overriding my action? In my master pages I have <form ... action="" ...>, in pre SP1, if I viewed the source the action attribute would be an empty string. In SP1 the action attribute is overridden "MyPage.aspx?MyParams", unfortunately, this causes my postbacks to fail as I have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/292756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Where do you take mocking - immediate dependencies, or do you grow the boundaries...? So, I'm reasonably new to both unit testing and mocking in C# and .NET; I'm using xUnit.net and Rhino Mocks respectively. I'm a convert, and I'm focussing on writing behaviour specifications, I guess, instead of being purely TDD. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/292767", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calculating rotation along a path I am trying to animate an object, let's say its a car. I want it go from point x1,y1,z1 to point x2,y2,z2 . It moves to those points, but it appears to be drifting rather than pointing in the direction of motion. So my question is: how can I solve this issue in my updateframe() even...
{ "language": "en", "url": "https://stackoverflow.com/questions/292774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Problems with HttpWebRequest/HttpWebResponse and cookies I'm having troubles with HttpWebRequest/HttpWebResponse and cookies/CookieContainer/CookieCollection. The thing is, if the web server does not send/use a "path" in the cookie, Cookie.Path equals the path-part of the request URI instead of "/" or being empty in...
{ "language": "en", "url": "https://stackoverflow.com/questions/292778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Setting selection to Nothing when programming Excel When I create a graph after using range.copy and range.paste it leaves the paste range selected, and then when I create a graph a few lines later, it uses the selection as the first series in the plot. I can delete the series, but is there a more elegant way to do...
{ "language": "en", "url": "https://stackoverflow.com/questions/292779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: How to use JQuery with Master Pages? I can get simple examples to work fine as long as there's no master page involved. All I want to do is click a button and have it say "hello world" with the javascript in a .js file, using a master page. Any help very much appreciated :) A: Adam's solution is the best. Simple! M...
{ "language": "en", "url": "https://stackoverflow.com/questions/292787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Overnormalization When would a database design be described as overnormalized? Is this characterization an absolute one? Or is it dependent on the way it is used in the application? Thanks. A: When the performance cost exceeds the benefit towards the application's intended purpose. A: Normalize your OLTP databases...
{ "language": "en", "url": "https://stackoverflow.com/questions/292797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Silverlight DataBinding Error - Works in WPF Though! Start a new Silverlight application... and in the code behind (in the "Loaded" event), put this code: // This will *NOT* cause an error. this.LayoutRoot.DataContext = new string[5]; But... // This *WILL* cause an error! this.LayoutRoot.DataContext = this; The er...
{ "language": "en", "url": "https://stackoverflow.com/questions/292800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Server Express / MS Access LINQ Features, Which One to Use? I have a few ASP.Net database front-end websites where MS Access is the back-end. I am trying to use ASP.Net dynamic data website. Should I change this database to SQL Server Express or something else to make it easier or should this work from with MS...
{ "language": "en", "url": "https://stackoverflow.com/questions/292803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I access a different object collection in a view in Rails? I'm not sure how to search for this answer, so I'll go ahead and ask it. In my rails project I have a User model and a foo model. A user can have one or more foo models assigned to it. I have accomplished this by adding has_many :foo, :through => :u...
{ "language": "en", "url": "https://stackoverflow.com/questions/292806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I use ODAC 11g to access 10g I am developing an application with VS208 for different Oracle versions. I am wondering if I need to install different version of ODAC to do this, or does the latest release has backward compatibility? Thanks in advance, A: According to the system requirements, it should work ...
{ "language": "en", "url": "https://stackoverflow.com/questions/292809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to correctly unregister an event handler In a code review, I stumbled over this (simplified) code fragment to unregister an event handler: Fire -= new MyDelegate(OnFire); I thought that this does not unregister the event handler because it creates a new delegate which had never been registered before. But sear...
{ "language": "en", "url": "https://stackoverflow.com/questions/292820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "69" }
Q: Flex: Prevent scrollbar from covering content when automatically displayed I have a canvas in Flex that shall be able only to be scrolled in vertical direction, so I set the attributes of the canvas as follows: verticalScrollPolicy="auto" horizontalScrollPolicy="off" The problem here is that the vertical scrollbar ...
{ "language": "en", "url": "https://stackoverflow.com/questions/292826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How best can I isolate my application from an unreliable database? I have a Java SOAP data service which sits on top of a Sybase database which, for reasons out of my control, has unreliable performance. The database is part of a vendor package which has been modified by an internal team and most of the issues are c...
{ "language": "en", "url": "https://stackoverflow.com/questions/292830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Web service variable shared for the lifetime of the webservice? How can I make a variable (object) available for the whole lifetime of the webservice? Static variable seem to work but is there an other way to do it? A: Static variables exist for the lifetime of the App Domain that contains them. In the case of a w...
{ "language": "en", "url": "https://stackoverflow.com/questions/292831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Getting the property name that a value came from I would like to know how to get the name of the property that a method parameter value came from. The code snippet below shows what I want to do: Person peep = new Person(); Dictionary<object, string> mapping = new Dictionary<object, string>(); mapping[peep.FirstName]...
{ "language": "en", "url": "https://stackoverflow.com/questions/292841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Regex for SQL query gives an empty MatchCollection I try to keep it brief and concise. I have to write a program that takes queries in SQL form and searches an XML. Right now I am trying to disassemble a string into logical pieces so I can work with them. I have a string as input and want to get a MatchCollection as...
{ "language": "en", "url": "https://stackoverflow.com/questions/292844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MySQL - A difficult INSERT...SELECT on the same table [MySQL 5.051] I am trying to insert a new row into my table which holds the same data as the one I am trying to select from the same table but with a different user_id and without a fixed value for auto_id since that is an auto_increment field, and setting ti to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/292851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring Integration as embedded alternative to standalone ESB Does anybody has an experience with Spring Integration project as embedded ESB? I'm highly interesting in such use cases as: * *Reading files from directory on schedule basis *Getting data from JDBC data source *Modularity and possibility to start/sto...
{ "language": "en", "url": "https://stackoverflow.com/questions/292860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Change an element's onfocus handler with Javascript? I have a form that has default values describing what should go into the field (replacing a label). When the user focuses a field this function is called: function clear_input(element) { element.value = ""; element.onfocus = null; } The onfocus is set to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/292861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Adding Hyperlinks to created Bookmarks in a Word documnet using Ruby How do you add a Hyperlink to a word document using an existing bookmark. I have been testing using IRB but continue to get Command Failed. I have attached to a running word application have text selected that I want to tie to the hyperlink. For t...
{ "language": "en", "url": "https://stackoverflow.com/questions/292862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Volatile Extreme Programming Team Would you recommend extreme programming practices implemented in organizations where team composition changes often? If in an extreme programming scenario, the team becomes volatile midway, what would you recommend? Thanks. A: I would suggest that the issue of team volatility is a...
{ "language": "en", "url": "https://stackoverflow.com/questions/292874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Extreme Programming and clients What type of client is likely to support XP (Extreme Programming) practices? A: I'm working for a company which is doing Agile (not strictly XP, but still applicable), and our client base is exclusively government organizations. Once they saw the results of the agile process at work...
{ "language": "en", "url": "https://stackoverflow.com/questions/292877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Signs of a great SQL developer Based on their work, how do you distinguish a great SQL developer? Examples might include: Seldom uses CURSORs, and tries to refactor them away. Seldom uses temporary tables, and tries to refactor them away. Handles NULL values in OUTER JOINs with confidence. Avoids SQL extensions th...
{ "language": "en", "url": "https://stackoverflow.com/questions/292878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Event Log SecurityException for Web Application? I have an app that writes messages to the event log. The source I'm passing in to EventLog.WriteEntry does not exist, so the Framework tries to create the source by adding it to the registry. It works fine if the user is an Admin by I get the following whe the user is...
{ "language": "en", "url": "https://stackoverflow.com/questions/292883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: .NET Store DateTime in SQL in different timezone and different locale What is the best way to store DateTime in SQL for different timezones and different locales There a few questions/answers about timezones, but none is addressing the locale problems. DateTime.ToUniversalTime is locale specific, and I need it local...
{ "language": "en", "url": "https://stackoverflow.com/questions/292887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Cause of a memory leak in C++ when using the Boehm GC This code is causing a memory leak for me, and I'm not sure why. [EDIT] Included code from here into question: #include "src/base.cpp" typedef std::map<std::string, AlObj*, std::less<std::string>, gc_allocator<std::pair<const std::string, AlObj*> > > KWARG_TY...
{ "language": "en", "url": "https://stackoverflow.com/questions/292893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Print Report without ReportViewer in ASP.NET I am using Business Intelligent reporting servicess to reporting some data from My MS SQL Database. In ASP.NET I create new Reporting Viewer that take data from BI and display the report then I can Print it. My Question is How can I print the report without report viewer?...
{ "language": "en", "url": "https://stackoverflow.com/questions/292910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Where can I download JSTL jar Does anyone know because all the places I've tried seem to timeout! A: You can download JSTL 1.1 here and JSTL 1.2 here. See also: * *JSTL wiki page A: http://jstl.java.net/download.html It's been split into two separate JAR files: jstl-api.jar and jstl-impl.jar. A: In the past, th...
{ "language": "en", "url": "https://stackoverflow.com/questions/292914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "62" }
Q: What constitutes a good memory profile? In designing any desktop applications, are there any general rules on how much memory should the application uses? For heavy-weight applications, those can be easily understood or at least profiled such as Firefox or Google Chrome. But for smaller utilities or line-of-business...
{ "language": "en", "url": "https://stackoverflow.com/questions/292920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using scope_builder to conditionally build a named scope in an Active Record model search() method I'm using Ryan Bates' excellent scope_builder to conditionally build a new named scope to use in a search() method of an Active Record model. The example documentation shows that you can do something like the following...
{ "language": "en", "url": "https://stackoverflow.com/questions/292922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Robust and Mature HTML Parser for PHP Are there any robust and mature HTML parsers available for PHP? A quick skimming of PEAR didn't turn anything up (lots of classes for generating HTML, not so much for consuming), and Google taught me a lot of people have started and then abandoned a variety of parser projects. N...
{ "language": "en", "url": "https://stackoverflow.com/questions/292926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "139" }
Q: SimpleXML or XMLReader? which one of the two is more spread? I want to read out the version number from http://freshmeat.net/projects-xml/mysql/mysql.xml?branch_id=46519 but I want to use the one which more people have. If you know another way to get the latest stable version number from mysql please tell me ;) A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/292935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I find the source of rogue Ajax requests on IE? I've rewritten my family web site using JavaScript (JQuery) making Ajax calls to PHP on the back end. It's your standard "bunch of image thumbnails and one main image, and when you click on a thumbnail image the main image changes" kind of thing. Everything is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/292941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Solution with 2 projects - sharing Properties.Resources In Visual C# 2008, I have a solution with two projects. First project contains Form1 that displays one Label with Text set to a string from Properties.Resources, like this: label1.Text = Properties.Resources.MY_TEXT; In the second project, I "Add as link" this...
{ "language": "en", "url": "https://stackoverflow.com/questions/292948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is a UUID? Well, what is one? A: Standardized identifiers UUIDs are defined in RFC 4122. They're Universally Unique IDentifiers, that can be generated without the use of a centralized authority. There are four major types of UUIDs which are used in slightly different scenarios. All UUIDs are 128 bits in len...
{ "language": "en", "url": "https://stackoverflow.com/questions/292965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "98" }
Q: Developing a simple photo ASP.NET/MVC application, how to do this? I found this web site (photoblog) http://www.OneReaction.net/ and I am very curious how this is done: 1) From source code you don't see the image URL 2) How to overlay the copyright information on the image without changing the underlying photo? Ide...
{ "language": "en", "url": "https://stackoverflow.com/questions/292966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Securing Windows Service Applications Is there any way to restrict users with administrative privileges from managing specific Windows service based applications? I would like to restrict administrators from stopping or re-starting my service very similar to the Windows event log service. What are some of the more p...
{ "language": "en", "url": "https://stackoverflow.com/questions/292967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sproc Parameter Returning First Character Only I've got a sproc and some C# calling it. My problem is that both the (N)VARCHAR values only have the first character returned. Everything else is fine. Why would only the 1st character be returned? So Content = (string)cmd.Parameters["@SmsContent"].Value, ToNumber = (st...
{ "language": "en", "url": "https://stackoverflow.com/questions/292988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Allow vertical scrolling in listbox, when it is disabled (VB6) I need to allow the vertical scrollbar in a multiselect listbox (VB6) however, when the control is disabled, I can't scroll. I would think there is an API to allow this, but my favorite VB6 site (MVPS VB.NET) does not have a way. I toyed with pretending ...
{ "language": "en", "url": "https://stackoverflow.com/questions/292991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the secret to getting ClaimsResponse working with DotNetOpenId? What's the secret to getting ClaimsResponse working with DotNetOpenId? For example, in this bit of code (from Scott Hanselman's blog) the ClaimsResponse object should have lots of nice little things like 'nickname' and 'email address', but the Cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/292993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: C# and MySQL - Gentle Framework alternatives I'm playing around at the start of a personal project in C# and MySQL. I am familiar with the use of the Gentle Framework (using MyGeneration to generate the classes, based on the data model). Here's what I like about Gentle; * *Simple-to-use [class].Retrieve(id) / [...
{ "language": "en", "url": "https://stackoverflow.com/questions/292995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: can you set SO_RCVTIMEO and SO_SNDTIMEO socket options in boost asio? can you set SO_RCVTIMEO and SO_SNDTIMEO socket options in boost asio? If so how? Note I know you can use timers instead, but I'd like to know about these socket options in particular. A: Absolutely! Boost ASIO allows you to access the native/un...
{ "language": "en", "url": "https://stackoverflow.com/questions/292997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Do I need a UUID to program for the iPhone? Do I need a UUID to program for the iPhone? I was told I need this, how can I get a UUID A: You need a developer certificate from Apple to install your application on an actual iPhone and to post your application to the Apple Store but you don't need a uuid unless the per...
{ "language": "en", "url": "https://stackoverflow.com/questions/292998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Algorithm to determine how positive or negative a statement/text is I need an algorithm to determine if a sentence, paragraph or article is negative or positive in tone... or better yet, how negative or positive. For instance: Jason is the worst SO user I have ever witnessed (-10) Jason is an SO user (0) Jason is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/293000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "67" }
Q: How to divide a large Java project into smaller components We've trying to separate a big code base into logical modules. I would like some recommendations for tools as well as whatever experiences you might have had with this sort of thing. The application consists of a server WAR and several rich-clients distribu...
{ "language": "en", "url": "https://stackoverflow.com/questions/293006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Is it possible to "steal" an event handler from one control and give it to another? I want do something like this: Button btn1 = new Button(); btn1.Click += new EventHandler(btn1_Click); Button btn2 = new Button(); // Take whatever event got assigned to btn1 and assign it to btn2. btn2.Click += btn1.Click; // The co...
{ "language": "en", "url": "https://stackoverflow.com/questions/293007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Tips for using Visual Studio Typed DataSets? When using strongly typed dataSets in Visual Studio 2005/2008, if the underlying database schema changes, the only practical way to refresh is to delete the dataset and recreate it from scratch. This is OK unless I need to customize the dataset. Customizing by extending...
{ "language": "en", "url": "https://stackoverflow.com/questions/293019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: TYPO3: Change plugin from USER to USER_INT type I have a working TYPO3 extension. It is attached this wiki page. How can I change the code of this extension so it is of the USER_INT type? I.e. I don't want TYPO3 to cache the output of this plugin, and want TYPO3 to invoke the extension ever time a page that uses the...
{ "language": "en", "url": "https://stackoverflow.com/questions/293021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: AX / Axapta: Retrieve Custom fields via SQL I'm creating a rather "dirty" business connector of my own here, and I'm having trouble finding those "custom fields" that have been created. They show up in AX - but in the SQL-database, they are not mentioned at all... I have a hunch that all custom fields are stored so...
{ "language": "en", "url": "https://stackoverflow.com/questions/293029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: XML-over-HTTP analysing/testing framework Many products/services we are interact with (including our own) uses XML-over-HTTP or derivatives (like OMA IMPS IM/presence protocol). I am looking for some tool that will "listen" to a traffic and produce client/server stubs for simulation/testing. Thanks. A: To some deg...
{ "language": "en", "url": "https://stackoverflow.com/questions/293038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Function persistence in Common Lisp Is there any persistence solution for Common Lisp, such as Elephant, that allows function persistence? Currently my app stores an identifier on the db and later searches in a function table which it is, but this method does not allow dynamically created functions to be stored. A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/293040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Is MEF a dependency injection framework? The recently announced managed extensibility framework (MEF) of .NET 4.0 - is it a dependency injection framework? Will Microsoft Unity from Patterns and Practices be obsolete in 4.0 ? How does MEF compare to a framework like Unity? A: Specifically addressed in the PDC 2008 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/293051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: Positive lookahead for exclamation mark I'm trying to build a Java regular expression to match ".jar!" The catch is that I don't want the matcher to consume the exclamation mark. I tried using Pattern.compile("\\.jar(?=!)") but that failed. As did escaping the exclamation mark. Can anyone get this to work or is this...
{ "language": "en", "url": "https://stackoverflow.com/questions/293070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What unit tests should be written for simple POCO domain objects? So standard Agile philosophy would recommend making your domain classes simple POCOs which are Persisted using a separate proxy layer via data access objects (like NHibernate does it). It also recommends getting as high unit test coverage as possible...
{ "language": "en", "url": "https://stackoverflow.com/questions/293081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How semantic is your XHTML/CSS markup? I think I'm pretty good at using semantic markup on my pages but I still have a handful of classes like this: /**** Aligns ****/ .right_align { text-align: right; } .left_align { text-align: left; } .center_align { text-align: center; } Which, technically, is a no-no. But w...
{ "language": "en", "url": "https://stackoverflow.com/questions/293090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What RAD tools are out there for GUI building in Perl? I need to do some quick-and-dirty Perl GUI building. I can't afford a Komodo License. What would people recommend as a free (as in beer) alternative. I don't care if it is UNIX or Windows or both. I would be using either Win32 Perl or Perl/Tk depending on what h...
{ "language": "en", "url": "https://stackoverflow.com/questions/293094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: asp.net dynamic data with access can you use ms access as the backend of a asp.net dynamic data project website. Any links or examples? A: At first I thought that this should be possible, because .NET generally supports ODBC and thus connecting to a MS Access database. Linq to SQL and the ADO.NET Entity Framework ...
{ "language": "en", "url": "https://stackoverflow.com/questions/293096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to return an error from a service? I'm writing a service application that sometimes cannot be stopped immediately upon receiving the SERVICE_CONTROL_STOP from the Services MMC. I currently handle it like this: (in pseudo-code): DWORD HandlerEx( DWORD dwControl, DWORD dwEventType, PVOID pvEventData...
{ "language": "en", "url": "https://stackoverflow.com/questions/293098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: VB6 - compile error with do while loop syntax I have a do-while loop that's supposed to do three things, go through a text file line by line, the text file contains pathnames and filenames (C:\Folder\file1.txt). If the line contains a certain string, it then copies a file to that location, renames it to what it is n...
{ "language": "en", "url": "https://stackoverflow.com/questions/293100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java Command Line Trouble with Reading a Class from a Jar Archive I am trying to run a java based tool using a command line syntax as the following: java -cp archive.jar archiveFolder.theMainClassName.Although the class I am searching for, a main class, "theMainClassName" is in the archive.jar and in the archiveFold...
{ "language": "en", "url": "https://stackoverflow.com/questions/293114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Linq-to-SQL How to prevent the use of Delete methods? By convention our DB only alows the use of stored procedures for INSERT, UPDATE and DELETE. For some tables / types there is no DELETE stored procedure, because it is not allowed to delete rows. (You can only update the status of such a type to "deleted"). e.g. a...
{ "language": "en", "url": "https://stackoverflow.com/questions/293117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: thread safety of ManualWorkflowSchedulerService.RunWorkflow I was wonder about the proper usage of ManualWorkflowSchedulerService.RunWorkflow(). Do I need to synchronize calls to the same workflowInstanceId across threads when I call ManualWorkflowSchedulerService.RunWorkflow? A: No, I don't think so. Following is...
{ "language": "en", "url": "https://stackoverflow.com/questions/293121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I make this regex more compact? Let's say I have a line of text like this Small 0.0..20.0 0.00 1.49 25.71 41.05 12.31 0.00 80.56 I want to capture the last six numbers and ignore the Small and the first two groups of numbers. For this exercise, let's ignore the fact that it might be easie...
{ "language": "en", "url": "https://stackoverflow.com/questions/293134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Disable JSP extension processing I have a JavaEE 1.4 web application running on WebSphere Application Server 6.0. In web.xml, there is a servlet configured to intercept all server requests: <servlet-mapping> <servlet-name>name</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> This works fine u...
{ "language": "en", "url": "https://stackoverflow.com/questions/293135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best way to learn .NET/OOP best practices? I'm relatively new to .NET programming (and OOP in general) and I want to make sure I'm not developing bad beginner habits when designing my applications. If you were hiring a new .NET developer and had to get him up to speed relatively quickly, but also wanted to make sure...
{ "language": "en", "url": "https://stackoverflow.com/questions/293152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: How do I add a control at design time without using Drag 'n' Drop? I'm attempting to create a Wizard type control in VB6 and have run into a stumbling block. I'd like to allow users of the control to be able to add and manage CWizardPage(s) to the design time control using a property page. The first approach I used ...
{ "language": "en", "url": "https://stackoverflow.com/questions/293158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using application settings across assemblies I'm writing an application that includes a plugin system in a different assembly. The problem is that the plugin system needs to get application settings from the main app (like the directory to look for plugins). How is this done, or am I going about this the wrong way? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/293160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I limit mouse pointer movement in wxWidgets? Is there a way to limit mouse pointer movement to a specific area in wxWidgets? I know there is an API function ClipCursor() in Windows, but is there a method in wxWidgets for all platforms? A: No. There is no such function in wx by all i know. Start up a timer (s...
{ "language": "en", "url": "https://stackoverflow.com/questions/293163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Finding the minimal coverage of an interval with subintervals Suppose I have an interval (a,b), and a number of subintervals {(ai,bi)}i whose union is all of (a,b). Is there an efficient way to choose a minimal-cardinality subset of these subintervals which still covers (a,b)? A: A greedy algorithm starting at a o...
{ "language": "en", "url": "https://stackoverflow.com/questions/293168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How can I build a search engine for a knowledge base system? I need to build full-text search functionality into our knowledge base system using C#. How do I start? A: For example from Lucene: http://lucene.apache.org/java/docs/ C# port is here http://incubator.apache.org/lucene.net/ You should also read somethin...
{ "language": "en", "url": "https://stackoverflow.com/questions/293172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Add custom design time command to WinForms control I have a custom WinForms control (inherits from control, i.e. without user interface jsut as Timer) to which I want to add a custom command add design time. This could be similar to the "right click and choose 'Edit Items...'" of a menu. Is this posisble? How? Also...
{ "language": "en", "url": "https://stackoverflow.com/questions/293187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I keep GD::Graph from showing points outside of the graphing area? I am making some plots in Perl using GD::Graph and some of the data is outside the area I would like to display, but instead of being truncated off the chart outside the graphing area, it is being drawn over the title, legend, and axis labels....
{ "language": "en", "url": "https://stackoverflow.com/questions/293208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Emacs keybinding hall of fame/shame What are the best and worst emacs key bindings in development software? Ever since I learned it, I find myself trying to use C-p and C-n to move up and down in everything that has a text box on it. I'm perpetually annoyed by software that has an emacs mode that's pretty obviously...
{ "language": "en", "url": "https://stackoverflow.com/questions/293213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Default properties in VB.NET? In the early days of .NET, I believe there was an attribute you could decorate a class with to specify a default property. According to some articles I've found, this appears to have been yanked from the framework at some point, because it was a little confusing, and I can see how that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/293215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: LINQ to SQL bug (or very strange feature) when using IQueryable, foreach, and multiple Where I ran into a scenario where LINQ to SQL acts very strangely. I would like to know if I'm doing something wrong. But I think there is a real possibility that it's a bug. The code pasted below isn't my real code. It is a simpl...
{ "language": "en", "url": "https://stackoverflow.com/questions/293216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the best way to test a site which displays differently depending on the client location? I am using an IP location lookup to display localised prices to customers depending on whether they are visiting from the UK, US or general EU and defaulting to the US price if the location can't be determined. I could e...
{ "language": "en", "url": "https://stackoverflow.com/questions/293224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Monkey-patching Vs. S.O.L.I.D. principles? I'm slowly moving from PHP5 to Python on some personal projects, and I'm currently loving the experience. Before choosing to go down the Python route I looked at Ruby. What I did notice from the ruby community was that monkey-patching was both common and highly-regarded. I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/293236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Doing a binary search on some elements in Haskell I'm trying to complete the last part of my Haskell homework and I'm stuck, my code so far: data Entry = Entry (String, String) class Lexico a where (<!), (=!), (>!) :: a -> a -> Bool instance Lexico Entry where Entry (a,_) <! Entry (b,_) = a < b Entry ...
{ "language": "en", "url": "https://stackoverflow.com/questions/293239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to use "native" custom mouse cursors from within Flash apps? The most common way of changing a cursor in Flash apps seems to be based on simply hiding the native OS cursor and displaying a graphic (drawn by the Flash Player) inside the Flash rectangle where the (hidden) cursor would be. This is what mx.managers....
{ "language": "en", "url": "https://stackoverflow.com/questions/293246", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there really any point to using relative font sizing in CSS? I've read a lot about the pros and cons of sizing with either relative or absolute font sizes. Fixed sizes don't zoom in IE6 but that's not much of an issue these days. Accessibility is important, but I assume that all good accessibility software is bui...
{ "language": "en", "url": "https://stackoverflow.com/questions/293247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: IT project methodologies Looking for good project methodologies.Anyone got some good reference links..want to share. A: This is a link from google video of Ken Schwaber co-developer of the Agile process, Scrum called as Scrum et al. http://video.google.com/videoplay?docid=-7230144396191025011. I gives a nice brief...
{ "language": "en", "url": "https://stackoverflow.com/questions/293252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Creating safe SQL statements as strings I'm using C# and .NET 3.5. I need to generate and store some T-SQL insert statements which will be executed later on a remote server. For example, I have an array of Employees: new Employee[] { new Employee { ID = 5, Name = "Frank Grimes" }, new Employee { ID = 6, Name =...
{ "language": "en", "url": "https://stackoverflow.com/questions/293254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Why do so few .NET languages integrate into Visual Studio (specifically VS2008)? The "core" .NET languages are integrated into VS2008 - C#, VB.NET, and C++. I'm not sure about current support for J# and JScript. But there are a number of other .NET languages out there - A#, Boo, Oxygene, F#, IronLisp/IronScheme, Iro...
{ "language": "en", "url": "https://stackoverflow.com/questions/293256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Synchronizing scroll positions for 2 WPF DataGrids I am trying to synchronize the horizontal scroll position of 2 WPF DataGrid controls. I am subscribing to the ScrollChanged event of the first DataGrid: <toolkit:DataGrid x:Name="SourceGrid" ScrollViewer.ScrollChanged="SourceGrid_ScrollChanged"> I have a second Dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/293275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Asp.net System.Web.HttpContext.Current.Session null in global.asax I have a custom security principal object which I set in the global.asax for the current thread and all is well, no problems normally. However, I'm just adding a dynamic image feature by having a page serve up the image and whenever that dynamic imag...
{ "language": "en", "url": "https://stackoverflow.com/questions/293276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Why won't Visual Studio 2008 create .mdf files with SQL Server 2008 Developer installed? I'm trying some of the ASP.NET MVC tutorials and one of them has the following steps: * *Right-click on the "App_Data" folder, and choose "Add New item" *Choose "SQL Server Database" under the "Data" category. However, onc...
{ "language": "en", "url": "https://stackoverflow.com/questions/293281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Want to redirect all visitors except for me Basically I'm about to start work on a site and I'd like something that I can add into my .htaccess file (or elsewhere) that'll work like this pseudo code: (my ip will be in place of 127.0.0.1) if (visitors_ip <> 127.0.0.1) redirectmatch ^(.*)$ http://www.example.com/u...
{ "language": "en", "url": "https://stackoverflow.com/questions/293285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Software tool for agile project management We user JIRA for bug tracking and release management and we have started using greenhopper for project management inside of JIRA but one thing that it lacks is the idea of user stories versus tasks in those users stories. Does anyone recommend other task board like agile p...
{ "language": "en", "url": "https://stackoverflow.com/questions/293292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }