text
stringlengths
8
267k
meta
dict
Q: Are there any JavaScript live syntax highlighters? I've found syntax highlighters that highlight pre-existing code, but I'd like to do it as you type with a WYSIWYG-style editor. I don't need auto-completed functions, just the highlighting. As a follow-up question, what is the WYSIWYG editor that stackoverflow uses?...
{ "language": "en", "url": "https://stackoverflow.com/questions/61655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Profiling in Visual Studio 2008 PRO How do I use the profiler in Visual Studio 2008? I know theres a build option in Config Properties -> Linker -> Advanced -> Profile (/PROFILE), however I can't find anything about actauly using it, only articles I was able to find appear to only apply to older versions of Visual S...
{ "language": "en", "url": "https://stackoverflow.com/questions/61669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Recovering from a broken TCP socket in Ruby when in gets() I'm reading lines of input on a TCP socket, similar to this: class Bla def getcmd @sock.gets unless @sock.closed? end def start srv = TCPServer.new(5000) @sock = srv.accept while ! @sock.closed? ans = getcmd end end ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Expose an event handler to VBScript users of my COM object Suppose I have a COM object which users can access via a call such as: Set s = CreateObject("Server") What I'd like to be able to do is allow the user to specify an event handler for the object, like so: Function ServerEvent MsgBox "Event handled" End ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to work around a very large 2d array in C++ I need to create a 2D int array of size 800x800. But doing so creates a stack overflow (ha ha). I'm new to C++, so should I do something like a vector of vectors? And just encapsulate the 2d array into a class? Specifically, this array is my zbuffer in a graphics pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/61680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Preventing the loss of keystrokes between pages in a web application My current project is to write a web application that is an equivalent of an existing desktop application. In the desktop app at certain points in the workflow the user might click on a button and then be shown a form to fill in. Even if it take...
{ "language": "en", "url": "https://stackoverflow.com/questions/61688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to add uninstall option in .NET Setup Project? The .NET Setup project seems to have a lot of options, but I don't see an "Uninstall" option. I'd prefer if people could "uninstall" from the standard "start menu" folder rather than send them to the control panel to uninstall my app, so can someone please tell me...
{ "language": "en", "url": "https://stackoverflow.com/questions/61691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How do I get my Java application to shutdown nicely in windows? I have a Java application which I want to shutdown 'nicely' when the user selects Start->Shutdown. I've tried using JVM shutdown listeners via Runtime.addShutdownHook(...) but this doesn't work as I can't use any UI elements from it. I've also tried usi...
{ "language": "en", "url": "https://stackoverflow.com/questions/61692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Adding assemblies to the GAC from Inno Setup Until recently we were using Inno Setup for our installations, something I would like to continue doing, unless we can get an uninstall option in the start menu (thanks Giovanni Galbo), however we now need to GAC some external libraries, something I suspect is only doable...
{ "language": "en", "url": "https://stackoverflow.com/questions/61699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Switching editors in Eclipse with keyboard, rather than switching Design/Source In Eclipse, I can switch through open editors using control-page up/down. This works great, except for editors like XML or JavaScript, where there are Design and Source tabs. For those editors, it just toggles between the different tabs....
{ "language": "en", "url": "https://stackoverflow.com/questions/61704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Where to save high scores in an XNA game? I'm making a simple 2 player game in XNA and started looking into saving the player's high scores. I want the game to work on the XBox 360 as well as Windows, so I have to use the framework to save the data. It seems that you save data to a particular user's gamer tag - so m...
{ "language": "en", "url": "https://stackoverflow.com/questions/61705", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to capture crash logs in Java I'm working on a cross platform application in Java which currently works nicely on Windows, Linux and MacOS X. I'm trying to work out a nice way to do detection (and handling) of 'crashes'. Is there an easy, cross-platform way to detect 'crashes' in Java and to do something in resp...
{ "language": "en", "url": "https://stackoverflow.com/questions/61714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Database integration tests When you are doing integration tests with either just your data access layer or the majority of the application stack. What is the best way prevent multiple tests from clashing with each other if they are run on the same database? A: For simple database applications I find using SQLite in...
{ "language": "en", "url": "https://stackoverflow.com/questions/61718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: C# Casting vs. Parse Which of the following is better code in c# and why? ((DateTime)g[0]["MyUntypedDateField"]).ToShortDateString() or DateTime.Parse(g[0]["MyUntypedDateField"].ToString()).ToShortDateString() Ultimately, is it better to cast or to parse? A: Casting is the only good answer. You have to remember, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Include CSS or Javascript file for specific node in Drupal 6 What is the best method for including a CSS or Javascript file for a specific node in Drupal 6. I want to create a page on my site that has a little javascript application running, so the CSS and javascript is specific to that page and would not want to be...
{ "language": "en", "url": "https://stackoverflow.com/questions/61735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: How to determine the size of the button portion of a Windows radio button I'm drawing old school (unthemed - themed radios are a whole other problem) radio buttons myself using DrawFrameControl: DrawFrameControl(dc, &rectRadio, DFC_BUTTON, isChecked() ? DFCS_BUTTONRADIO | DFCS_CHECKED : DFCS_BUTTONRADIO); I've neve...
{ "language": "en", "url": "https://stackoverflow.com/questions/61739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Installing PDO-drivers for PostgreSQL on Mac (using Zend for eclipse) How can I get PDO to work on my mac (os x 10.5)? I'm using the built in php and php in Zend/Eclipse. Can't seem to find useful drivers for it at all. A: I had to install the PDO_PGSQL driver recently on Leopard, and I ran across a multitude of pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/61747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to implement database engine independent paging? Task: implement paging of database records suitable for different RDBMS. Method should work for mainstream engines - MSSQL2000+, Oracle, MySql, etc. Please don't post RDBMS specific solutions, I know how to implement this for most of the modern database engines. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/61750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Browser WYSIWYG best practices I am using a rich text editor on a web page. .NET has feature that prevent one from posting HTML tags, so I added a JavaScript snippet to change the angle brackets to and alias pair of characters before the post. The alias is replaced on the server with the necessary angle bracket and...
{ "language": "en", "url": "https://stackoverflow.com/questions/61760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Replacing Virtual PC/Server with VMWare Fusion/Server for Development Environments I develop exclusively on VMs. I currently run Boot Camp on a MacBook Pro and do all my development on a series of Virtual PC VMs for many different environments. This post by Andrew Connell litterally changed the way I work. I'm think...
{ "language": "en", "url": "https://stackoverflow.com/questions/61775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What technology(ies) and language(s) is Microsoft Navison implemented with/in? Navision is also known as Microsoft Dynamics NAV. A: Navision's application logic is written using a proprietary language called C/AL, which is loosely based on Pascal. It currently offers both a native database option as well as MS SQL...
{ "language": "en", "url": "https://stackoverflow.com/questions/61779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: python cgi on IIS How do you set up IIS so that you can call python scripts from asp pages? Ok, so I found the answer to that question here: http://support.microsoft.com/kb/276494 So on to my next question: How do you call a cgi script from within classic asp (vb) code? Particularly one which is not in the web root ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Has anyone attempted to make PHP's system functions more Object-Oriented? I'm just curious if any project exists that attempts to group all (or most) of PHP's built-in functions into a more object-oriented class hierarchy. For example, grouping all the string functions into a single String class, etc. I realize this...
{ "language": "en", "url": "https://stackoverflow.com/questions/61784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Java profiler for IBM JVM 1.4.2 (WebSphere 6.0.2) I'm looking for a Java profiler that works well with the JVM coming with WebSphere 6.0.2 (IBM JVM 1.4.2). I use yourkit for my usual profiling needs, but it specifically refuses to work with this old jvm (I'm sure the authors had their reasons...). Can anybody point ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Does Tiles for Struts2 support UTF-8 encoded templates? If so what are required configuration elements to enable UTF-8 for tiles? I'm finding my tile results are sent as: Content-Type text/html; A: What if you put this at the top? <%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" language="j...
{ "language": "en", "url": "https://stackoverflow.com/questions/61796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET MVC ViewData (using indices) I had a working solution using ASP.NET MVC Preview 3 (was upgraded from a Preview 2 solution) that uses an untyped ViewMasterPage like so: public partial class Home : ViewMasterPage On Home.Master there is a display statement like this: <%= ((GenericViewData)ViewData["Generic"])...
{ "language": "en", "url": "https://stackoverflow.com/questions/61805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the best method in ASP.NET to obtain the current domain? I am wondering what the best way to obtain the current domain is in ASP.NET? For instance: http://www.domainname.com/subdir/ should yield http://www.domainname.com http://www.sub.domainname.com/subdir/ should yield http://sub.domainname.com As a guide, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "104" }
Q: Do I need to release xib resources? If I have something like a UILabel linked to a xib file, do I need to release it on dealloc of my view? The reason I ask is because I don't alloc it, which makes me think I don't need to release it either? eg (in the header): IBOutlet UILabel *lblExample; in the implementation: ....
{ "language": "en", "url": "https://stackoverflow.com/questions/61838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: Is there a way to asynchronously filter an IList? Ok, so there has to be a way to do this... no? If not I'd love some ideas. I have two repeaters and an image inside an update panel along with some AJAX dropdowns with link buttons to the left. I want to update the data inside the update panel as fast as possible as...
{ "language": "en", "url": "https://stackoverflow.com/questions/61850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Anyone using WPF for real LOB applications? Anyone using WPF for real LOB applications? We have all seen the clever demos of WPF showing videos mapped onto 3D elements. These look great but what about the real world of line-of-business applications that make up the majority of developers efforts. Is WPF just for nic...
{ "language": "en", "url": "https://stackoverflow.com/questions/61853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Web Control Properties I would like to make my web control more readable in design mode, basically I want the tag declaration to look like: <cc1:Ctrl ID="Value1" runat="server"> <Values>string value 1</Value> <Values>string value 2</Value> </cc1:Ctrl> Lets say I have a private variable in the code...
{ "language": "en", "url": "https://stackoverflow.com/questions/61861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sum of items in a collection Using LINQ to SQL, I have an Order class with a collection of OrderDetails. The Order Details has a property called LineTotal which gets Qnty x ItemPrice. I know how to do a new LINQ query of the database to find the order total, but as I already have the collection of OrderDetails fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/61870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "72" }
Q: How do I use my pager (more/less) on error output only I have a program that spits out both standard error and standard out, and I want to run my pager less on the standard error, but ignore standard out. How do I do that? Update: That's it ... I didn't want to lose stdout ... just keep it out of pager program 2>&1 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Use float or decimal for accounting application dollar amount? We are rewriting our legacy accounting system in VB.NET and SQL Server. We brought in a new team of .NET/ SQL Programmers to do the rewrite. Most of the system is already completed with the dollar amounts using floats. The legacy system language, I progr...
{ "language": "en", "url": "https://stackoverflow.com/questions/61872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "77" }
Q: Power Efficient Software Coding In a typical handheld/portable embedded system device Battery life is a major concern in design of H/W, S/W and the features the device can support. From the Software programming perspective, one is aware of MIPS, Memory(Data and Program) optimized code. I am aware of the H/W Deep sle...
{ "language": "en", "url": "https://stackoverflow.com/questions/61882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: Using Subversion for general purpose backup Is it possible to use Apache Subversion (SVN) as general purpose backup tool? (As a kind of rsync alternative.) A: I found this article to be a pretty cool description of using svn to backup your home directory, and more: I use Subversion to backup my Linux boxes. With s...
{ "language": "en", "url": "https://stackoverflow.com/questions/61888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: 'bad address' error from copy_to_user I am attempting to copy a custom struct from kernel space to user space. inside user space errno returns 'bad address'. What is the usual cause of a bad address error? if(copy_to_user(info, &kernel_info, sizeof(struct prinfo))) A: Bad Address error means that the address loca...
{ "language": "en", "url": "https://stackoverflow.com/questions/61893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What's a good way to find relative paths in Google App Engine? So I've done the trivial "warmup" apps with GAE. Now I'd like to build something with a more complex directory structure. Something along the lines of: siteroot/ models/ controllers/ controller1/ controller2/ ... tem...
{ "language": "en", "url": "https://stackoverflow.com/questions/61894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: iframe wikipedia article without the wrapper I want to embed a wikipedia article into a page but I don't want all the wrapper (navigation, etc.) that sits around the articles. I saw it done here: http://www.dayah.com/periodic/. Click on an element and the iframe is displayed and links to the article only (no wrapp...
{ "language": "en", "url": "https://stackoverflow.com/questions/61902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Lazy loading property and session.get problem In Hibernate we have two classes with the following classes with JPA mapping: package com.example.hibernate import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import java...
{ "language": "en", "url": "https://stackoverflow.com/questions/61906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: VS 2005 Toolbox kind of control .NET I'm looking for a control that the Visual Studio "Toolbox" menu uses. It can be docked and can retract (pin). Would you know where I can find a control or COM I could use which would look like this? A: I would recommend the DockPanel Suite by Weifen Luo. A: I think you just nee...
{ "language": "en", "url": "https://stackoverflow.com/questions/61914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: VS Code Snippets automatic synchronizer? I use more than one machine for development in VS 2008. Is there a tool to automatically synchronize the snippets between the machines? Same concept of synchronizing browsers' bookmark. A: If you have Vista and the LiveMesh client installed try this suggestion Hope this hel...
{ "language": "en", "url": "https://stackoverflow.com/questions/61927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Firebird database replication I have reached the point where I've decided to replace my custom-built replication system with a system that has been built by someone else, mainly for reliability purposes. Can anyone recommend any replication system that is worth it? Is FiBRE any good? What I need might be a little aw...
{ "language": "en", "url": "https://stackoverflow.com/questions/61929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do you bind an Enum to a DropDownList control in ASP.NET? Let's say I have the following simple enum: enum Response { Yes = 1, No = 2, Maybe = 3 } How can I bind this enum to a DropDownList control so that the descriptions are displayed in the list as well as retrieve the associated numeric value (1...
{ "language": "en", "url": "https://stackoverflow.com/questions/61953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "137" }
Q: TFS vs open source alternatives? We're currently in the process of setting up a source control/build/and more-server for .NET development and we're thinking about either utilizing the Team Foundation Server (which costs a lot of dough) or combining several open source options, such as SourceForge Enterprise/GForge a...
{ "language": "en", "url": "https://stackoverflow.com/questions/61959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Howto import an oracle dump in an different tablespace I want to import an oracle dump into a different tablespace. I have a tablespace A used by User A. I've revoked DBA on this user and given him the grants connect and resource. Then I've dumped everything with the command exp a/*** owner=a file=oracledump.DMP lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/61963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: Is there a way to loop through a table variable in TSQL without using a cursor? Let's say I have the following simple table variable: declare @databases table ( DatabaseID int, Name varchar(15), Server varchar(15) ) -- insert a bunch rows into @databases Is declaring and using a cursor...
{ "language": "en", "url": "https://stackoverflow.com/questions/61967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "296" }
Q: JavaScript sqlite Best recommendations for accessing and manipulation of sqlite databases from JavaScript. A: The sql.js library will enable you to call SQL queries on the client side. with that libray, you can easily stream the whole data between the server and the client by calling .open(data) and .exportData(). ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: Match conditionally upon current node value Given the following XML: <current> <login_name>jd</login_name> </current> <people> <person> <first>John</first> <last>Doe</last> <login_name>jd</login_name> </preson> <person> <first>Pierre</first> <last>Spring</last> <login_name>ps</login_n...
{ "language": "en", "url": "https://stackoverflow.com/questions/61995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Apache Fall Back When PHP Fails I was wondering if anybody knew of a method to configure apache to fall back to returning a static HTML page, should it (Apache) be able to determine that PHP has died? This would provide the developer with a elegant solution to displaying an error page and not (worst case scenario) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62012", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Problem with Login control of ASP.NET I set up a website to use SqlMembershipProvider as written on this page. I followed every step. I have the database, I modified the Web.config to use this provider, with the correct connection string, and the authentication mode is set to Forms. Created some users to test with. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: WSE 2.0 raises wse910 error I had to use a Microsoft Web Services Enhancements 2.0 service and it raised wse910 error when the time difference between the server and client was more than 5 minutes. I read in many places that setting the timeToleranceInSeconds, ttlInSeconds and defaultTtlInSeconds values should help,...
{ "language": "en", "url": "https://stackoverflow.com/questions/62027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VS2008 Command Prompt + Cygwin I use the VS2008 command prompt for builds, TFS access etc. and the cygwin prompt for grep, vi and unix-like tools. Is there any way I can 'import' the vcvars32.bat functionality into the cygwin environment so I can call "tfs checkout" from cygwin itself? A: According to this page you...
{ "language": "en", "url": "https://stackoverflow.com/questions/62029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Unit Testing Monorail's RedirectToReferrer() I am trying to write a unit test for an action method which calls the Controller.RedirectToReferrer() method, but am getting a "No referrer available" message. How can I isolate and mock this method? A: Have you thought about creating a test double? A: In my version of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rails model validators break earlier migrations I have a sequence of migrations in a rails app which includes the following steps: * *Create basic version of the 'user' model *Create an instance of this model - there needs to be at least one initial user in my system so that you can log in and start using it *U...
{ "language": "en", "url": "https://stackoverflow.com/questions/62038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I use a pipe in the exec parameter for a find command? I'm trying to construct a find command to process a bunch of files in a directory using two different executables. Unfortunately, -exec on find doesn't allow to use pipe or even \| because the shell interprets that character first. Here is specifically...
{ "language": "en", "url": "https://stackoverflow.com/questions/62044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "81" }
Q: How to do Flash pseudo-streaming? I need to build something that starts serving a H.264 encoded video to a flash player halfway through the file (to support skipping to a point in the video that has not been buffered yet). Currently, the videos are in the FLV container format, but transcoding is an option. I manage...
{ "language": "en", "url": "https://stackoverflow.com/questions/62062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: MySQL Interview Questions I've been asked to screen some candidates for a MySQL DBA / Developer position for a role that requires an enterprise level skill set. I myself am a SQL Server person so I know what I would be looking for from that point of view with regards to scalability / design etc but is there anything...
{ "language": "en", "url": "https://stackoverflow.com/questions/62069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Is there a Transformation engine or library using .NET? We're looking for a Transformation library or engine which can read any input (EDIfact files, CSV, XML, stuff like that. So files (or webservices results) that contain data which must be transformed to a known business object structure.) This data should be t...
{ "language": "en", "url": "https://stackoverflow.com/questions/62077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Comparing runtimes I am trying to get some accurate runtime comparisons of PHP vs Python (and potentially any other language that I have to include). Timing within a script is not my problem but timing within a script does not account for everything from the moment the request is made to run the script to output. 1...
{ "language": "en", "url": "https://stackoverflow.com/questions/62079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: E4X : Assigning to root node I am using Adobe Flex/Air here, but as far as I know this applies to all of JavaScript. I have come across this problem a few times, and there must be an easy solution out there! Suppose I have the following XML (using e4x): var xml:XML = <root><example>foo</example></root> I can change...
{ "language": "en", "url": "https://stackoverflow.com/questions/62086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What does Class::MethodMaker exactly do? I want to know what exactly is the sequence of calls that occurs when a getter/setter created through Class::MethodMaker is called? How much costlier are getter/setters defined by MethodMaker than the native ones (overwritten in the module)? A: I don't have a simple answer f...
{ "language": "en", "url": "https://stackoverflow.com/questions/62102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Flexible compiler pipeline definitions I'm developing a compiler framework for .NET and want a flexible way of defining pipelines. I've considered the following options: * *WWF *Custom XML pipeline description *Custom pipeline description in code (using Nemerle's macros to define syntax for it) *Other code-ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/62106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ADO.NET Entity Framework tutorials Does anyone know of any good tutorials on ADO.NET Entity Framework? There are a few useful links here at Stack OverFlow, and I've found one tutorial at Jason's DotNet Architecture Blog, but can anyone recommend any other good tutorials? Any tutorials available from Microsoft, eith...
{ "language": "en", "url": "https://stackoverflow.com/questions/62110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: How can I find the current DNS server? I'm using Delphi and need to get the current Windows DNS server IP address so I can do a lookup. What function should I call to find it? The only solution I have right now does an ipconfig/all to get it, which is horrible. A: Found a nice one using the function GetNetworkParam...
{ "language": "en", "url": "https://stackoverflow.com/questions/62127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What is a Covered Index? I've just heard the term covered index in some database discussion - what does it mean? A: A covering index is an index that contains all of, and possibly more, the columns you need for your query. For instance, this: SELECT * FROM tablename WHERE criteria will typically use indexes to spe...
{ "language": "en", "url": "https://stackoverflow.com/questions/62137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "70" }
Q: Does anyone have a handy visulization widget that I can use for a web project? What I want is lots of nodes which can expand making a mind map. I'd ideally like to expand and collapse nodes. I would like to be able to navigate by either dragging around the page, or by following expanded nodes. A: I have a colleague...
{ "language": "en", "url": "https://stackoverflow.com/questions/62146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: DateTime.Now vs. DateTime.UtcNow I've been wondering what exactly are the principles of how the two properties work. I know the second one is universal and basically doesn't deal with time zones, but can someone explain in detail how they work and which one should be used in what scenario? A: DateTime has no idea w...
{ "language": "en", "url": "https://stackoverflow.com/questions/62151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "298" }
Q: Reasons not to build your own bug tracking system Several times now I've been faced with plans from a team that wants to build their own bug tracking system - Not as a product, but as an internal tool. The arguments I've heard in favous are usually along the lines of : * *Wanting to 'eat our own dog food' in term...
{ "language": "en", "url": "https://stackoverflow.com/questions/62153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: Response.Clear in ASP.NET 3.5 I have recently upgraded some of my web applications to ASP.NET 3.5 by installing the framework on the server and setting up my web applications acrodingly and all is well, however. On some pages, I want to clear the current contents of the response buffer with code like this: Response....
{ "language": "en", "url": "https://stackoverflow.com/questions/62154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Would you bother to mock StreamReader object? I use a stream reader to import some data and at the moment I hardcode a small sample file in the test to do the job. Is it sensible to use Mock Objects with this and how ? A: I don't see any points to mock StreamReader unless you're making StreamReader derived class. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/62159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Where can I find a QR (quick response) Code component/API for Windows Mobile? I am looking for a 3rd party solution to integrate a QR code reader in Windows Mobile Applications (.NET Compact Framework). The component should integrate Reader (camera) and Decoder (algorithm). I tried out the QuickMark reader, which ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/62173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the shortest code to cause a stack overflow? To commemorate the public launch of Stack Overflow, what's the shortest code to cause a stack overflow? Any language welcome. ETA: Just to be clear on this question, seeing as I'm an occasional Scheme user: tail-call "recursion" is really iteration, and any solutio...
{ "language": "en", "url": "https://stackoverflow.com/questions/62188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "160" }
Q: How (and whether) to populate rails application with initial data I've got a rails application where users have to log in. Therefore in order for the application to be usable, there must be one initial user in the system for the first person to log in with (they can then create subsequent users). Up to now I've us...
{ "language": "en", "url": "https://stackoverflow.com/questions/62201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "65" }
Q: Is there any way to get rid of the long list of usings at the top of my .cs files? As I get more and more namespaces in my solution, the list of using statements at the top of my files grows longer and longer. This is especially the case in my unit tests where for each component that might be called I need to inclu...
{ "language": "en", "url": "https://stackoverflow.com/questions/62219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Classis ASP debugging global.asa in VS2005 I was trying to set a breakpoint in global.asa in an old classic ASP project with IIS 6 in Visual Studio 2005. Somehow the context menu for actually setting the breakpoint somewhere in global.asa is disabled (greyed). How can I set a breakpoint then? Breakpoints in .asp pag...
{ "language": "en", "url": "https://stackoverflow.com/questions/62225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I access class variables of a parent object in PHP? An instance of class A instantiates a couple of other objects, say for example from class B: $foo = new B(); I would like to access A's public class variables from methods within B. Unless I'm missing something, the only way to do this is to pass the curren...
{ "language": "en", "url": "https://stackoverflow.com/questions/62226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to save jpg image to database and then load it in Delphi using FIBplus and TImage? How do I save a jpg image to database and then load it in Delphi using FIBplus and TImage? A: var S : TMemoryStream; begin S := TMemoryStream.Create; try TBlobField(AdoQuery1.FieldByName('ImageField')).SaveToStream(S); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to view web pages at different resolutions I am developing a web site and need to see how it will look at different resolutions. The catch is that it must work on our Intranet. Is there a free solution? A: For Firefox, Web Developer Toolbar (https://addons.mozilla.org/en-US/firefox/addon/60) A: Type in the add...
{ "language": "en", "url": "https://stackoverflow.com/questions/62232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to convert a Reader to InputStream and a Writer to OutputStream? Is there an easy way to avoid dealing with text encoding problems? A: If you are starting off with a String you can also do the following: new ByteArrayInputStream(inputString.getBytes("UTF-8")) A: commons-io 2.0 has WriterOutputStream A: You c...
{ "language": "en", "url": "https://stackoverflow.com/questions/62241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "98" }
Q: Merging records for Mnesia I am trying to refactor some code I have for software that collects current status of agents in a call queue. Currently, for each of the 6 or so events that I listen to, I check in a Mnesia table if an agent exists and change some values in the row depending on the event or add it as new i...
{ "language": "en", "url": "https://stackoverflow.com/questions/62245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Dealing with SVN keyword expansion with git-svn I recently asked about keyword expansion in Git and I'm willing to accept the design not to really support this idea in Git. For better or worse, the project I'm working on at the moment requires SVN keyword expansion like this: svn propset svn:keywords "Id" expl3.dtx...
{ "language": "en", "url": "https://stackoverflow.com/questions/62264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: Error consuming Web Service from Winform App - "Cannot execute a program..." I have a winform app that calls a web service to check for updates. This works in dev and it also works everywhere else I've tried it, just not on the installed copy on my machine (which happens to be the same in dev). The error is: Cannot...
{ "language": "en", "url": "https://stackoverflow.com/questions/62268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java package cycle detection: how do I find the specific classes involved? What tool would you recommend to detect Java package cyclic dependencies, knowing that the goal is to list explicitly the specific classes involved in the detected 'across-packages cycle'? I know about classycle and JDepend, but they both fai...
{ "language": "en", "url": "https://stackoverflow.com/questions/62276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "40" }
Q: Read/write to Windows registry using Java How is it possible to read/write to the Windows registry using Java? A: Thanks to original post. I have reskinned this utility class and come up over the flaws which it had earlier, thought it might help others so posting here. I have also added some extra utility methods. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "342" }
Q: Are liquid layouts still relevant? Now that most of the major browsers support full page zoom (at present, the only notable exception being Google Chrome), are liquid or elastic layouts no longer needed? Is the relative pain of building liquid/elastic layouts worth the effort? Are there any situations where a liquid...
{ "language": "en", "url": "https://stackoverflow.com/questions/62292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How to modify the default Check-in Action in TFS? The default check-in action for a work-item is "resolve". I'd like to set it to "associate" so that this work item isn't automaticaly closed if I check-in stuff too fast. How can I do that? A: Yup, the check-in action can only be associated to a state transition (i....
{ "language": "en", "url": "https://stackoverflow.com/questions/62294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: PHP: How to expand/contract Tinyurls In PHP, how can I replicate the expand/contract feature for Tinyurls as on search.twitter.com? A: If you want to find out where a tinyurl is going, use fsockopen to get a connection to tinyurl.com on port 80, and send it an HTTP request like this GET /dmsfm HTTP/1.0 Host: tinyur...
{ "language": "en", "url": "https://stackoverflow.com/questions/62317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Asynchronous APIs When trying to implement an asynchronous API calls / Non-blocking calls, I know a little in a All Plain-C application I have, I read a about APM (Asynchronous Programming Model) by 'Delegates'. Basically what I want to do is call one API f1() to do a functionality(which takes long time 8-10 seconds...
{ "language": "en", "url": "https://stackoverflow.com/questions/62322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there an algorithm that tells the semantic similarity of two phrases input: phrase 1, phrase 2 output: semantic similarity value (between 0 and 1), or the probability these two phrases are talking about the same thing A: For anyone just coming at this, i would suggest taking a look at SEMILAR - http://www.semant...
{ "language": "en", "url": "https://stackoverflow.com/questions/62328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "65" }
Q: What's a liquid layout? My designer keeps throwing out the term "liquid" layout. What does this mean? Thanks for the clarification, I have always just called this a percentage layout, and thought he was saying that the pieces could be moved around, and that was liquid A: From http://www.maxdesign.com.au/presentatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/62334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Does pop_back() really invalidate *all* iterators on an std::vector? std::vector<int> ints; // ... fill ints with random values for(std::vector<int>::iterator it = ints.begin(); it != ints.end(); ) { if(*it < 10) { *it = ints.back(); ints.pop_back(); continue; } it++; } Thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/62340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What are the best practices for using Assembly Attributes? I have a solution with multiple project. I am trying to optimize AssemblyInfo.cs files by linking one solution wide assembly info file. What are the best practices for doing this? Which attributes should be in solution wide file and which are project/assembl...
{ "language": "en", "url": "https://stackoverflow.com/questions/62353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "167" }
Q: Using reflection to call an ASP.NET web service Say I have an ASMX web service, MyService. The service has a method, MyMethod. I could execute MyMethod on the server side as follows: MyService service = new MyService(); service.MyMethod(); I need to do similar, with service and method not known until runtime. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/62365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Can you animate a custom dependency property in Silverlight? I might be missing something really obvious. I'm trying to write a custom Panel where the contents are laid out according to a couple of dependency properties (I'm assuming they have to be DPs because I want to be able to animate them.) However, when I try...
{ "language": "en", "url": "https://stackoverflow.com/questions/62382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to convert Apache .htaccess files into Lighttpd rules? It's big problem to convert mod_rewrite rules to lighttpd format A: It is generally a case of just going through one by one and converting them. I don't know of any automated means, The docs - http://redmine.lighttpd.net/projects/1/wiki/Docs:ModRewrite - h...
{ "language": "en", "url": "https://stackoverflow.com/questions/62384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What are the differences between Visual C++ 6.0 and Visual C++ 2008? What are the advantages/disadvantages between MS VS C++ 6.0 and MSVS C++ 2008? The main reason for asking such a question is that there are still many decent programmers that prefer using the older version instead of the newest version. Is there a...
{ "language": "en", "url": "https://stackoverflow.com/questions/62389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: What are the best practices for the Middleware API? We are developing a middleware SDK, both in C++ and Java to be used as a library/DLL by, for example, game developers, animation software developers, Avatar developers to enhance their products. What I would like to know is this: Are there standard "Best Practices"...
{ "language": "en", "url": "https://stackoverflow.com/questions/62398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What technical considerations must a system/network administrator worry about when a site gets onto social bookmarking/sharing sites? The reason I ask is that Stack Overflow has been Slashdotted, and Redditted. First, what kinds of effect does this have on the servers that power a website? Second, what can be done b...
{ "language": "en", "url": "https://stackoverflow.com/questions/62403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Alternative Style(CSS) methods in SAP Portal? I am overriding a lot of SAP's Portal functionality in my current project. I have to create a custom fixed width framework, custom iView trays, custom KM API functionality, and more. With all of these custom parts, I will not be using a lot of the style functionality im...
{ "language": "en", "url": "https://stackoverflow.com/questions/62406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }