instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
How exactly do DLL files work? There seems to be an awful lot of them, but I don't know what they are or how they work. So, what's the deal with them?
stackexchange/codereview
I have an AI file. I paste it into Expression Blend and then export the XAML for use in my WPF project. Works for most of my files, but some export the XAML plus a seperate png file. What can I do so that the png is embedded into the paths of my image and not a seperate image? Can it be done?
stackexchange/codereview
I'm trying to use Google's jstemplate as a client-side templating engine on an ASP.NET page, and it seems to be conflicting with ASP.NET AJAX. The problem is not jstemplate.js but util.js, which it needs as a support file. I've isolated the problem as follows:: <%@ Page Language="VB" %> <body> <form id="form1" runa...
stackexchange/codereview
Our development uses lots of open-source code and I'm trying to figure out what the best way to manage these external dependencies. Our current configuration: we are developing for both linux and windows We use svn for our own code external dependencies (boost, log4cpp, etc) are not stored in svn. Instead I put them u...
stackexchange/codereview
We have a SmartClient built in C# that stubornly remains open when the PC its running on is being restarted. This halts the restart process unless the user first closes the SmartClient or there is some other manual intervention. This is causing problems when the infrastructure team remotely installs new software that ...
stackexchange/codereview
What is the equivalent of the extended procedure 'xp_dirscan' in SQL Server 2005?
stackexchange/codereview
How would one create a Singleton class using PHP5 classes?
stackexchange/codereview
I'm looking for a current (1.2), well-formatted, printable version of the jQuery documentation. I've checked the alternative resources page and see the PDF versions from CF and Java, but both are out of date. The jQuery site has the API browser with "Printable Version" in the toolbox, but it prints terribly, and I don...
stackexchange/codereview
An application currently in development has the requirements for using MS Word to perform spell check on certain textareas within the application. I currently have Office 2007 (which is the Office 12 com objects). My question is, if I add in the Office 12 objects what will happen on boxes which have Office 2003? This ...
stackexchange/codereview
Elementree has become the accepted standard for interacting with xml. What is the prevalent web service/SOAP library in use today?
stackexchange/codereview
In Eclipse IDE how do you customize the Java code style formatter to have it sort the class members with a specified order, for example to group all instance methods by visibility?
stackexchange/codereview
Is there a tool to integrate Mercurial into Visual Studio? I am just curious. Mercurial is pretty nice, even with 'just' TortoiseHG, but integration with Visual Studio would be better.
stackexchange/codereview
Due to company constraints out of my control, I have the following scenario: A COM library that defines the following interface (no CoClass, just the interface): [ object, uuid(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx), dual, nonextensible, helpstring("IService Interface"), pointer_default(unique) ]...
stackexchange/codereview
Here's a problem I keep running into: I have a lot of situations where I need to display some text with a styled container like so: <mx:Canvas> <mx:Text text="{text}" left="5" verticalCenter="0" right="5" /> </mx:Canvas> As you can see - the text in constrained by the left and right margins of the canvas and ...
stackexchange/codereview
I know it is easy to recommend several cross platform libraries. However, are there benefits to treating each platform individually for your product? Yes there will be some base libraries used in all platforms, but UI and some other things would be different on each platform. I have no restriction that the product mu...
stackexchange/codereview
I have a DataSet that contains a few columns. One of these columns is a number - most of the time. Because it's occasionally a string, in the database it's a varchar(10) column. However, when you sort a varchar column, it sorts it like a string. What I want to do instead is to try and override this somehow so that it s...
stackexchange/codereview
I've been trying to submit a form with the FormPanel using the Action class Ext defaults to. However, I'd like it to consider the response as a script, not JSON-encoded. Has anyone had any experience on this?
stackexchange/codereview
How do you delete all the cookies for the current domain using JavaScript?
stackexchange/codereview
Sometimes I break long conditions in ifs onto several lines. The most obvious way to do this is: if (cond1 == 'val1' and cond2 == 'val2' and cond3 == 'val3' and cond4 == 'val4'): do_something Isn't very very appealing visually, because the action blends with the conditions. However, it is the natural way...
stackexchange/codereview
The link over here lists ([http://www.yoda.arachsys.com/csharp/singleton.html][1]) some singleton patterns in C#. The article also describes the obvious that a singleton is not meant to accept parameters which “as otherwise a second request for an instance but with a different parameter could be problematic”. This mean...
stackexchange/codereview
What is the resolution of the image for the tab bar item? And also, please provide some other useful information regarding that tab item image. Thanks in advance.
stackexchange/codereview
I'm using the DnsQueryConfig Win32 function to get the DNS servers used by Windows. This works fine for IPv4 addresses, but what if the DNS servers have IPv6 addresses?
stackexchange/codereview
I've been searching for a library that can render organisation charts in either flash and/or javascript(preferably jQuery). I know of several javascript and/or flash chart libraries but none of them seem to be able to render an organisation chart such as this: http://www.fsai.ie/images/org_chart.gif
stackexchange/codereview
I'm trying to combine a list of functions like so. I have this: Func<int, bool>[] criteria = new Func<int, bool>[3]; criteria[0] = i => i % 2 == 0; criteria[1] = i => i % 3 == 0; criteria[2] = i => i % 5 == 0; And I want this: Func<int, bool>[] predicates = new Func<int, bool>[3]; predicates[0] = i => i % 2 == 0; pred...
stackexchange/codereview
I've been wondering whether there is a good "git export" solution that creates a copy of a tree without the .git repository directory. There are at least three methods I know of: git clone followed by removing the .git repository directory. git checkout-index alludes to this functionality but starts with "Just read th...
stackexchange/codereview
I'm trying to unit test (JUnit) a DAO i've created. I'm using Spring as my framework, my DAO (JdbcPackageDAO) extends SimpleJdbcDaoSupport. The testing class (JdbcPackageDAOTest) extends AbstractTransactionalDataSourceSpringContextTests. I've overridden the configLocations as follows: protected String[] getConfigLoc...
stackexchange/codereview
I have a Dynamic Data website built in Visual Studio 2008 using .NET 3.5 SP1. The site works OK on my Vista machine, but I get the following error when running it on a Windows XP machine: Server Error in '/FlixManagerWeb' Application. -------------------------------------------------------------------------------...
stackexchange/codereview
I am having fickle of problem in Oracle 9i select 1"FirstColumn" from dual; Oracle throwing error while executing above query. ORA-03001: unimplemented feature in my Production server. The Same query is working fine in my Validation server. Both servers are with Oracle 9i Any one have Idea what's wrong...? Is this some...
stackexchange/codereview
I've built a full-text catalog on a SQL 2005 box that, after it's re-build process completes, runs extremely slow. I've implemented a hack (i.e. try...catch{do again}) so that my users don't get a timeout error; this makes me feel bad inside. All subsequent queries are lightning fast. Has anyone experienced this issu...
stackexchange/codereview
I have a text string value that I'd like to persist from one web page to another without using query strings or the session/view states. I've been trying to get the ASP http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.hiddenfield.aspx">HiddenField control to pass information from one web form to a dif...
stackexchange/codereview
So basically we have lots of SharePoint usage log files generated by our SharePoint 2007 site and we would like to make sense of them. For that we're thinking of reading the log files and dumping into a database with the appropriate columns and all. Now I was going to make an SSIS package to read all the text files and...
stackexchange/codereview
When I use Emacs I want to be able to easily display and navigate through a list of files I worked on from not just the current session but from previous sessions. (BTW, running Emacs 22.2 on Windows)
stackexchange/codereview
Does anyone know if silverlight plugs into chrome, or when they plan to support it?
stackexchange/codereview
Has anyone ever integrated an external web application with Siebel On-Premise CRM? Note that I'm not talking about Siebel On-Demand SaaS, but their behind-the-firewall product. Specifically, I'm trying to achieve two-way synchronization of CRM objects (contacts, accounts, sales opportunities) between my web applicat...
stackexchange/codereview
I think everyone would agree that the MATLAB language is not pretty, or particularly consistent. But nevermind! We still have to use it to get things done. What are your favourite tricks for making things easier? Let's have one per answer so people can vote them up if they agree. Also, try to illustrate your answer wit...
stackexchange/codereview
I've been trying to retrieve the locations of all the page breaks on a given Excel 2003 worksheet over COM. Here's an example of the kind of thing I'm trying to do: Excel::HPageBreaksPtr pHPageBreaks = pSheet->GetHPageBreaks(); long count = pHPageBreaks->Count; for (long i=0; i < count; ++i) { Excel::HPageBreakPtr p...
stackexchange/codereview
I am about to start on a journey writing a windows forms application that will open a txt file that is pipe delimited and about 230 mb in size. This app will then insert this data into a sql server 2005 database (obviously this needs to happen swiftly). I am using c# 3.0 and .net 3.5 for this project. I am not asking ...
stackexchange/codereview
I have a loop that looks something like this: for (int i = 0; i < max; i++) { String myString = ...; float myNum = Float.parseFloat(myString); myFloats[i] = myNum; } This is the main content of a method whose sole purpose is to return the array of floats. I want this method to return null if there is an er...
stackexchange/codereview
Is there a clean way of cloning a record in SQL that has an index(auto increment). I want to clone all the fields except the index. I currently have to enumerate every field, and use that in an insert select, and I would rather not explicitly list all of the fields, as they may change over time.
stackexchange/codereview
There seems to be a lot of heated discussion on the net about the changes to the reduce() function in python 3.0 and how it should be removed. I am having a little difficulty understanding why this is the case; I find it quite reasonable to use it in a variety of cases. If the contempt was simply subjective, I cannot i...
stackexchange/codereview
I'm working with JIntegra java com bridge. I have an object of type Object which true coclass is unknown. I need to check if that object can be casted to specific COM interface (which has a proxy class generated by JIntegra).
stackexchange/codereview
When using py2exe to distribute Python applications with wxPython, some MSVC DLLs are usually needed to make the .exe work on freshly installed machines. In particular, the two most common DLLs are msvcp71.dll and msvcr71.dll The former can be included in the .exe using this tip. However, the latter is just placed in t...
stackexchange/codereview
I have a compiled swf file and a I can't edit it, but the movie is working fine (but gives an error message with a message box). I am using it from an other movie (load with as3 code). When the loader movie loads it the error message box appears. I wonder is it possible to disable the errors while loading a movie with ...
stackexchange/codereview
Want to know what the stackoverflow community feels about the various free and non-free Java Profilers and profiling tools available.
stackexchange/codereview
I would like to be able to display Notebook and a TxtCtrl wx widgets in a single frame. Below is an example adapted from the wxpython wiki; is it possible to change their layout (maybe with something like wx.SplitterWindow) to display the text box below the Notebook in the same frame? import wx import wx.lib.sheet as ...
stackexchange/codereview
At the moment I check in all my files (including dll's, VS solution files, images, etc). I often need to checkout these files to a staging server or to a another developer and so having these files there means the project is setup there all ready to go. Whats the best practice here? EDIT: If I don't add the generated f...
stackexchange/codereview
What is the most elegant way to solve this: open a file for reading, but only if it is not already opened for writing open a file for writing, but only if it is not already opened for reading or writing The built-in functions work like this >>> path = r"c:\scr.txt" >>> file1 = open(path, "w") >>> print file1 <open fi...
stackexchange/codereview
Is there an easy way of cloning entire installed debian/ubuntu system? I want to have identical installation in terms of installed packages and as much as possible of settings. I've looked into options of aptitude, apt-get, synaptic but have found nothing.
stackexchange/codereview
Why is it that when I use a converter in my binding expression in WPF, the value is not updated when the data is updated. I have a simple Person data model: class Person : INotifyPropertyChanged { public string FirstName { get; set; } public string LastName { get; set; } } My binding expression looks like this...
stackexchange/codereview
I've got a bunch of 3D vertex positions & need to generate a convex hull containing them; does anyone know of any QHull bindings for .NET? or native 3D Delaunay triangulation algorithms?
stackexchange/codereview
List Comprehension is a very useful code mechanism that is found in several languages, such as Haskell, Python, and Ruby (just to name a few off the top of my head). I'm familiar with the construct. I find myself working on an Open Office Spreadsheet and I need to do something fairly common: I want to count all of the ...
stackexchange/codereview
How do you generate a X.509 public and private key pair and a signing request (CSR file) to be sent to a CA for signing in C#?
stackexchange/codereview
Every once in a while, typically when I stop debugging in our UI assembly, I get the following error which requires a restart of Visual Studio 2008 and it's killing my productivity: Error 13 Unable to copy file [UI assembly] to [output directory]. The process cannot access the file [output directory][UI ass...
stackexchange/codereview
I'm using PowersHell to automate iTunes but find the error handling / waiting for com objects handling to be less than optimal. Example code #Cause an RPC error $iTunes = New-Object -ComObject iTunes.Application $LibrarySource = $iTunes.LibrarySource # Get "playlist" objects for main sections foreach ($PList in $Librar...
stackexchange/codereview
I'm working on a small project where for the first time I want to use XML as the one and only data source...a file based store suits the need of the project. When writing the DAL should I have all the get methods static? to aviod and "reading while file open" errors? Should I use CacheDependency on the file? Thx
stackexchange/codereview
I'm running tests using the TestDriven.NET VS add-in, and the class library I'm testing is instrumented using TraceSource. How can I get the output of that TraceSource to show up in the Output window in Visual Studio? The DefaultTraceListener doesn't appear to be working quite right. Do I need to manually add a Cons...
stackexchange/codereview
How do you convert a numerical number to an Excel column name in C# without using automation getting the value directly from Excel. Excel 2007 has a possible range of 1 to 16384, which is the number of columns that it supports. The resulting values should be in the form of excel column names, e.g. A, AA, AAA etc.
stackexchange/codereview
We are in the process of nutting out the design guidelines we would like to use in our development team and got into a discussion today around how ASP.NET controls should be named. I am talking about our good friends Label, TextBox, Button etc. We came up with the following three possibilities that we voted on: (Exampl...
stackexchange/codereview
I have a third party COM dll that I'm trying to add to a vb.net (2008 express) project. I put the dll in C:\WINDOWS\system32\ and registered it with "regsvr32 vxncom.dll". When I go to projects > add reference and go to the COM tab it shows up in the list of available components/libraries. But, when I select the librar...
stackexchange/codereview
I've seen that a Processor Pack is available for Visual Studio 6, however it appears to only be available for users with SP5 and I am already using SP6: In addition, the Visual C++ Processor Pack (VCPP) was removed from Service Pack 6. If you have the VCPP installed, installing SP6 will remove it from your machine. If ...
stackexchange/codereview
What Latex styles do you use and where do you find them? The reason I'm asking this is that it seems that some 99.9999% of all styles on the internet are copies of each other and of a physics exam paper However, when you try to find a style for a paper like this one... Good luck, you are never going to find it. Creatin...
stackexchange/codereview
I am using Windows 2003. I have mapped a web application into a virtual directory. This is built on framework 1.1 When i try to browse to the default page i get a error as Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error det...
stackexchange/codereview
I've created some fairly simple XAML, and it works perfectly (at least in KAXML). The storyboards run perfectly when called from within the XAML, but when I try to access them from outside I get the error: 'buttonGlow' name cannot be found in the name scope of 'System.Windows.Controls.Button'. I am loading the XAML w...
stackexchange/codereview
In an app I'm working on, I have a plain style UITableView that can contain a section containing zero rows. I want to be able to scroll to this section using scrollToRowAtIndexPath:atScrollPosition:animated: but I get an error when I try to scroll to this section due to the lack of child rows. Apple's calendar applicat...
stackexchange/codereview
I am trying this: Provider=MSDASQL.1;Persist Security Info=False;User ID=sys;Password=pwd;Initial Catalog=DATABASE;Data Source=OdbcDataSource;DBA Privilege=SYSDBA But I get the error: [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed I'm using Delphi, but answers in any language are welcome. Clarific...
stackexchange/codereview
I have a poorly designed database. One of the most important tables has 11,000+ entries. We would like to expand our system, and I am wondering if this table grew to 5x its size, would this be a problem? It's 15360 kB in size... if that matters. I'm using phpMyAdmin, the server is a Fedora Linux box (nothing fancy), T...
stackexchange/codereview
Does anyone have an example using the table object in YUI library. More specifically, I'd like to dynamically load it from JSON or SQL? http://www.grails.org/YUI+Plugin
stackexchange/codereview
Is it possible for a web server to know which type of device request has been received from? For example, can a create a website which shows different contents if request came from a computer (Firefox) and something different if it came from iPhone?
stackexchange/codereview
Does Microsoft force an update down to all of its users of windows-update? Is it for legal reasons? EDIT(aku): Question was reformulated. if you want to know which version of Windows comes with .NET see this topic: https://stackoverflow.com/questions/71390/which-operating-systems-come-with-net
stackexchange/codereview
Sorry for the long question title. I guess I'm on to a loser on this one but on the off chance. Is it possible to make the calculation of a calculated field in a table the result of an aggregate function applied to a field in another table. i.e. You have a table called 'mug', this has a child called 'color' (which make...
stackexchange/codereview
I'm trying to get my multithreading understanding locked down. I'm doing my best to teach myself, but some of these issues need clarification. I've gone through three iterations with a piece of code, experimenting with locking. In this code, the only thing that needs locking is this.managerThreadPriority. First, the s...
stackexchange/codereview
Originally there was the DAL object which my BO's called for info and then passed to UI. Then I started noticing reduced code in UI and there were Controller classes. What's the decent recomendation. I currently structure mine Public Class OrderDAL Private _id Integer Private _order as Order Public Functi...
stackexchange/codereview
I want to loop over the elements of an HTML form, and store the values of the <input> fields in an object. The following code doesn't work, though: function config() { $("#frmMain").children().map(function() { var child = $("this"); if (child.is(":checkbox")) this[child.attr("name")] = c...
stackexchange/codereview
The book that I purchased to help with my SSIS understanding seems to have glossed over this, and I wanted to know exactly what is the method to turn on FastParse in SSIS?
stackexchange/codereview
I'm using spring 2.5 and annotations to configure my spring-mvc web context. Unfortunately, I am unable to get the following to work. I'm not sure if this is a bug (seems like it) or if there is a basic misunderstanding on how the annotations and interface implementation subclassing works. For example, @Controller @R...
stackexchange/codereview
We have an old project written using Managed C++ syntax. I would like to propose to the team a reasonably pain-free (I don't mind some level of human interaction, I think I'm realistic in my expectations that we'll still have to do some work by hand) method of updating the existing code to C++/CLI syntax so that we can...
stackexchange/codereview
I've been working on the Android SDK platform, and it is a little unclear how to save an application's state. So given this minor re-tooling of the 'Hello, Android' example: package com.android.hello; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class HelloAndroid exte...
stackexchange/codereview
I'm making a mini ORM for a Java program I'm writing... there is a class for each table in my db, all inheriting from ModelBase. ModelBase is abstract & provides a bunch of static methods for finding & binding objects from the db, for example: public static ArrayList findAll(Class cast_to_class) { //build the sql que...
stackexchange/codereview
This question is specifically related to overriding the equals() method for objects with a large number of fields. First off, let me say that this large object cannot be broken down into multiple components without violating OO principles, so telling me "no class should have more than x fields" won't help. Moving on...
stackexchange/codereview
My problem: There are numerous (>100) tools the development teams use which are "home" written. They are sometimes a perl script, or a "web page", or just something that does a couple of small functions. I need to find a way (as part of my "Middle Manager in charge of tools" job) to collect these into a single catalog...
stackexchange/codereview
How do I do forward referencing / declaration in C++ to avoid circular header file references? I have the #ifndef guard in the header file, yet memory tells me I need this forward referencing thing - which i've used before >< but can't remember how.
stackexchange/codereview
I wrote a wrapper for a COM object that only excepted strings as input, so in good OOP practice I wrapped the string up in a function so that it was easier to build and call. I was just wondering if anyone could think of a better way to do the following code. Public Function OpenTable(ByVal TablePath As String, Op...
stackexchange/codereview
I'm running an old little app which runs in the browser from local files, and I keep getting the, "To help protect your security, Internet Explorer has restricted this webpage from running scripts or Activex controls that could access your computer" message. Is there a registry setting or something I can tweak to allow...
stackexchange/codereview
Does it matter to developers that the current, and newer versions of .Net don't support windows 2000? It scares me to think that several of my clients still use Windows 2000 and although I may decide to stop supporting Windows 2000 one day, I don't like that Microsoft is pushing it on people's products. Could anyone s...
stackexchange/codereview
just curious to know which CPU architectures support compare and swap atomic primitives?
stackexchange/codereview
I have a few controls that inherit from ASP.NET buttons and use onserverclick. If the user clicks twice, the button fires two server side events. How can I prevent this? I tried setting this.disabled='true' after the click (in the onclick attribute) via javascript, but that blocks the first postback as well.
stackexchange/codereview
I was previously taught today how to set parameters in a SQL query in .NET in this answer (click). Using parameters with values are fine, but when I try to set a field in the database to null I'm unsuccessful. Either the method thinks I am not setting a valid parameter or not specifying a parameter. e.g. Dim dc As New ...
stackexchange/codereview
What is the minimal conventional directory structure for a Java web app? What do I need to put in a build.xml file to get ant to build it and make a WAR file? My goal is to deploy a Wicket app to Tomcat without using an IDE. I want to do it with only ant and my favourite text editor.
stackexchange/codereview
This discussion started over here but I thought it would be nice to have a definitive answer... So let's say you have MovieClip on the Stage (or a UIComponent for the Flex audience) - what do you have to do to not make it so that the user can't see the object but also so that the AVM2 doesn't even factor it in when ren...
stackexchange/codereview
Any idea on how to unit test the views in ASP.NET MVC? I am sick of encountering the yellow screen of death when I launch my MVC project just because I forget to update the views when one of the Action methods of my controller changes name.
stackexchange/codereview
I've some CSS problem in Firefox 3. I have several image buttons on my page and when I'm clicking on them I've seen to horizontal lines across the screen at top and bottom button border. I saw such issue on other web sites, so I think it's something known.
stackexchange/codereview
Given a database field named "widget_ids", containing data like "67/797/124/" or "45/", where the numbers are slash separated widget_ids... how would you make an update statement with SQL that would say: "if the widget_ids of the row with id X contains the text "somenumber/" do nothing, otherwise append "somenumber/" t...
stackexchange/codereview
I want to watch a folder tree on a network server for changes. The files all have a specific extension. There are about 200 folders in the tree and about 1200 files with the extension I am watching. I can't write a service to run on the server (off-limits!) so the solution has to be local to the client. Timeliness is n...
stackexchange/codereview
How do you organize DB layer, business logic and cross-platform API of your information management system, if uploading and processing 500000 data records in one session is a normal operation (C# .NET 3.5 + MS SQL 2005)? I’m specifically interested in production-proven paging patterns that behave well with the concurre...
stackexchange/codereview
Does anyone have any experience hosting the Windows Workflow designer surface? I've seen a couple of rather difficult to follow examples on MSDN, but not much else - certainly nothing that offers an explanation into the process of hosting WF that is clear or easy to read... Are there better resources out there for host...
stackexchange/codereview
It's our first JSF app, and I'm in the middle of integrating our graphic designer's CSS into our facelets files. He tells me that he needs the name and id attributes of the input tags to be the same as the for attribute of the label tag. His request: <label for="username">User Name:</label> <input id="username" type="t...
stackexchange/codereview
New to visual studio and programing in general. I am starting to work on a asp.net project. At home I have a computer running Windows 2008 Server with SQL 2008 and Visual 2008 running. I want to install the same thing on my laptop win2008/sql2008/vs2008 so I can take it with me on the go. What I want to know is how wou...
stackexchange/codereview
The existing site has it own "users" table in a database. I'm wondering how to integrate PHPList with the existing site so that a user can check the newsletter during registration. I installed phplist thru cpanel. Any help is greatly appreciated.
stackexchange/codereview
I have a bit of a hybrid situation on my hands. I'm writing an intranet asp.net web app. I don't want to use full blown Windows Authentication, because I don't have proper groups set up in Active Directory to be able to authenticate users simply based on what group they are in. Up until now, I had created a membership ...
stackexchange/codereview
Is there a string.Empty in JavaScript, or is it just a case of checking for ""?
stackexchange/codereview