instruction
stringlengths
0
30k
|regex|visual-c++|utilities|
Guidelines for writing a framework
|framework|
I'm faced with writing a framework to simplify working with a large and complex object library ([ArcObjects][1]). What guidelines would you suggest for creating a framework of this kind? Are static methods preferred? How do you handle things like logging? How do you future proof your framework code from changes that a ...
I'm faced with writing a framework to simplify working with a large and complex object library ([ArcObjects][1]). What guidelines would you suggest for creating a framework of this kind? Are static methods preferred? How do you handle things like logging? How do you future proof your framework code from changes that a ...
|frameworks|
What is a good barebones CMS or framework?
|content-management-system|framework|
I'm about to start a project for a customer who wants CMS-like functionality. They want users to be able to log in, modify a profile, and a basic forum. They also wish to be able to submit things to a front page. Is there a framework or barebones CMS that I could expand on or tailor to my needs? I don't need anythin...
|framework|content-management-system|
I'm about to start a project for a customer who wants CMS-like functionality. They want users to be able to log in, modify a profile, and a basic forum. They also wish to be able to submit things to a front page. Is there a framework or barebones CMS that I could expand on or tailor to my needs? I don't need anythin...
**This answer is incomplete and flawed! It only works from TortoisSVN to Fogbugz, but not the other way around. I still need to know how to get it to work backwards from Fogbugz (like it's designed to) so that I can see the Revision number a bug is addressed in from Fogbugz while looking at a bug.** ---------- ...
|performance|object-oriented|comparison|interpreted|maintainability|procedural|
|performance|oop|maintainability|interpreted|procedural|
Using 'in' to match an attribute of Python objects in an array
|python|array|objects|iteration|
I don't remember whether I was dreaming or not but I seem to recall there being a function which allowed something like, <pre><code>foo in iter_attr(array of python objects, attribute name)</code></pre> I've looked over the docs but this kind of thing doesn't fall under any obvious listed headers
|python|object-oriented|arrays|iteration|
|python|arrays|iteration|
How Does One Sum Dimmensions of an Array Specified at Runt-Time?
|array|index|dynamic|c|c++|
I am working on a function to establish the entropy of a distribution. It uses a copula, if any are familiar with that. I need to sum up the values in the array based on which dimensions are "cared about." Example: Consider the following array... Dimension 0 (across) _ _ _ _ _ _ _ _ _ _ _ _ _ |_...
How Does One Sum Dimmensions of an Array Specified at Runtime?
How Does One Sum Dimmensions of an Array Specified at Runt-Time?
I am working on a function to establish the entropy of a distribution. It uses a copula, if any are familiar with that. I need to sum up the values in the array based on which dimensions are "cared about." Example: Consider the following array... Dimension 0 (across) _ _ _ _ _ _ _ _ _ _ _ _ _ |_...
Because of the way the [Box-Modell][1] is defined and implemented I don't think there is a css-only solution to this problem. (Apart from what [Matthew][2] described: using percentage for the padding as well, e.g. width: 94%; padding: 0 3%;) You could however build some Javascript-Code to calculate the width dynmica...
Don't know if this is an option, but it would work very similar to Zend's pdf library, but you don't need to load a bunch of extra code (the zend framework). It just extends FPDF. [http://www.setasign.de/products/pdf-php-solutions/fpdi/][1] Here you can basically do the same thing. Load the PDF, write over top of...
It might be something really simple, believe it or not I coded exactly the same thing today, i think the issue might be that the content disposition doesnt tell the browser its an attachment and therefore able to be saved. <pre><code> Response.AddHeader("Content-Disposition", "attachment;filename=myfile.doc"); </cod...
I read the [book][1] suggested by Thomas and it's really worth reading, although not very up-to-date. [1]: http://www.amazon.com/Eclipse-Rich-Client-Platform-Applications/dp/0321334612/ref=pd_bbs_1?ie=UTF8&s=books&qid=1218461741&sr=8-1
I have used an httpmodule for url rewriting from [www.urlrewriting.net][1] with great success (albeit I believe a much earlier, simpler version) If you have very few actual rewriting rules then url mappings built in to .NET 2.0 are probably an easier option, there are a few write ups of these on the web, the [4guysf...
Although I don't have personal experience, a few friends of mine did Eclipse RCP development, and they used the book "[Eclipse Rich Client Platform: Designing, Coding, and Packaging Java(TM) Applications][1]". They seemed to like it a lot, and I looked it at myself, and it seemed useful. If I was going to do RCP develo...
Although I don't have personal experience, a few friends of mine did Eclipse RCP development, and they used the book "[Eclipse Rich Client Platform: Designing, Coding, and Packaging Java(TM) Applications][1]". They seemed to like it a lot, and I looked it at myself, and it seemed useful. If I was going to do RCP develo...
Have you thought about [Java Web Start][1]? [Here][2] is a tutorial specifically for deploying an SWT application with Java Web Start. [1]: http://java.sun.com/javase/technologies/desktop/javawebstart/index.jsp [2]: http://www.ibm.com/developerworks/opensource/library/os-jws/
According to the .Net Framwork, the [MouseDown Event Handler on a TextBox][1] is supported. What happens when you try to run the code? [1]: http://www.csharpfriends.com/quickstart/aspplus/samples/classbrowser/cs/classbrowser.aspx?assembly=System.Windows.Forms,%20Version=1.0.5000.0,%20Culture=neutral,%20PublicKey...
What I usually do to debug databindings, is add a converter where I can set a breakpoint in VS.NET.. so the Binding would be something like this: <pre><code>{Binding ElementName=PART_Track, Path=Height, Mode=OneWay, Converter={StaticResources DebugConverter}} </code></pre> Then the converter can be an empty i...
<a href = "http://tryruby.hobix.com/">Try Ruby (In Your Browser)</a>
I'd shoot for XHTML Transitional 1.0. There are still a few nuances out there that don't like XHTML strict, and most editors I've seen now will give you the proper nudges to make sure that things are done right.
Anything that renders your page is will do so regardless of which popular standard you use. XHTML is stricter and probably "better" but I can't see what advantages you will get with one standard over another.
Personally, I prefer XHTML 1.0 Transitional. XHTML is XML based, so it allows easier parsing and you can also use the XML Components of most IDEs to programatically query and insert stuff. Transitional is not as strict as strict, which makes it relatively easy to work with, compared to strict which can often be a...
Dillie-O is right on with his answer of XHTML 1.0 Transitional but I would suggest shooting for XHTML 1.0 Strict and only falling back on Transitional if there's some piece of functionality you absolutely need that Strict is not allowing.
I make heavy use of this tool: [http://www.dswsoft.com/sqlbalance.php][1], Unfortunately; its windows only... but works like a charm to move databases around, data or no data, merge or compare. /mp [1]: http://www.dswsoft.com/sqlbalance.php
Have you tried the ADO driver for SQLite? There is a great quick start guide (thanks to another thread here) that you can get here: <http://www.mikeduncan.com/sqlite-on-dotnet-in-3-mins>
A simple trunk branch contains the most current code, then cut a branch whenever we go live. This seems to work pretty effectively. You can easily go to the previous branch whenever the current branch that you cut for the live system fails. Also, it is easy to fix bugs on the branch that is currently live, and since...
Dump your schema into a file and add it to source control. Then a simple diff will show you what changed.
HTML version choice
|html|xml|xhtml|
When developing a new web based application which version of html should you aim for?
When developing a new web based application which version of html should you aim for? EDIT: cool I was just attempting to get a feel from others I tend to use XHTML 1.0 Strict in my own work and Transitional when others are involved in the content creation. I marked the first XHTML 1.0 Transitional post as the...
You could try signal averaging, i.e. for each point, average the value with the surrounding 3 or more points. If the noise blips are huge, then even this may not help. I realise that this was language agnostic, but guessing that you are using LabView, there are lots of pre-packaged signal processing VIs that you can...
|frameworks|content-management-system|
Microsoft .Net framework 3.5 SP1 Setup Fails
|.net|framework|installation|
On my Vista machine I cannot install the .Net framework 3.5 SP1. Setup ends few moments after ending the download of the required files, stating in the log that: [08/26/08,09:46:11] Microsoft .NET Framework 2.0SP1 (CBS): [2] Error: Installation failed for component Microsoft .NET Framework 2.0SP1 (CBS). MSI ret...
|.net|frameworks|installation|
How Popular is the Seam Framework
|java|framework|jboss|seam|
I'm using JBoss Seam Framework, but it's seems to me isn't very popular among java developers. I want to know how many java programmers here are using it, and in what kind of projects. Is as good as django, or RoR?
|java|frameworks|jboss|seam|
Determining if an assembly is part of the .net framework
|.net|framework|assembly|reflection|
How can I tell from the assemblyName, or Assembly class (or others like it), whether an assembly is part of the .net framework (ie System.windows.Forms)? So far I've considered the PublicKeyToken, and CodeBase properties, but these are not always the same for the whole framework.
|.net|framework|reflection|assembly|
How can I tell from the assemblyName, or Assembly class (or others like it), whether an assembly is part of the .net framework (ie System.windows.Forms)? So far I've considered the PublicKeyToken, and CodeBase properties, but these are not always the same for the whole framework. ---------- **Edit:** The r...
|.net|frameworks|reflection|assembly|
You could do this with jQuery but it may make additional maintenance a nightmare. I would recommend against doing this / screen scraping because if the source ever changes so does your work around.
Another option, related to Kevin's, is use __FILE__, but instead replace the php file name from within it: <?php $docRoot = str_replace($_SERVER['SCRIPT_NAME'], '', __FILE__); require_once($docRoot . '/lib/include.php'); ?> I've been using this for a while. The only problem is somet...
HTML meta keyword/description element, useful or not?
|html|seo|
Does filling out HTML meta description/keyword tags matter for SEO?
You might be able to fake it using javascript. You could either use AJAX to load the page, then insert the HTML, or load "url.asp" in a hidden iframe and copy the HTML from there. One downside (or maybe this is what you want) is that the pages aren't completely independent, so CSS rules from the outer page will affe...
I would suggest you start by downloading the SDK: <https://www.paypal.com/IntegrationCenter/ic_sdk-resource.html> The SDK includes the following: - Client libraries that call PayPal APIs - API documentation for SDK components - Sample code for Website Payments Pro and various administrative APIs - T...
I would suggest you start by downloading the SDK: <https://www.paypal.com/IntegrationCenter/ic_sdk-resource.html> The SDK includes the following: - Client libraries that call PayPal APIs - API documentation for SDK components - Sample code for Website Payments Pro and various administrative APIs - T...
Can I depend on the values of GetHashCode() to be consistant?
|hash|c#|
Is the return value of GetHashCode() guaranteed to be consistent assuming the same string value is being used? (C#/ASP.NET) I uploaded my code to a server today and to my surprise I had to reindex some data because my server (win2008 64-bit) was returning different values compared to my desktop computer.
Can I depend on the values of GetHashCode() to be consistent?
|c#|hash|
Like all good answers to architecture and programming questions, the answer is "it depends". It depends on how unique your data access and object design needs are. It may also depend on how you plan on supporting your application in the long term. Finally, it greatly depends on the skill level of your developers. ...
Visual Studio 2005 crashes on start-up
|visual-studio|crash|intellisense|
In my work environment, Visual Studio currently crashes every time I start our main project unless I delete the .suo (solution options) and .ncb (C++ Intellisense symbols) files. Obviously, I've found a workaround. Is there a more permanent solution than this?
I think it'll take a huge buy-in from a site that millions of people use; for example, [MySpace is soon supporting OpenID][1], so now the number of users that OpenID supports has just jumped by a huge amount. If more of the high activity sites on the net follow this lead, there you go! [1]: http://developer.mysp...
From [MSDN][1]: > The OnCreated event is raised as soon > as a file is created. If a file is > being copied or transferred into a > watched directory, the OnCreated event > will be raised immediately, followed > by one or more OnChanged events. Your FileSystemWatcher could be modified so that it doesn't d...
I think we need to see OpenID offered as a login method more consumer oriented websites. There are a lot of big consumer sites that can be used as OpenID providers, but the only place I recall seeing OpenID available as a login before Stackoverflow is to comment on Blogger. Being a provider is great and all, but it's...
No, it's certainly not a good practice. 2XX status codes mean (among other things) that the **request is valid**. Which is just the contrary to raising a HttpRequestValidationException. I don't know how to make IE behave correctly, sadly. A slightly better way than to send a 200 would be to redirect it to an error p...
Does your load balancer supports sticky sessions? With this on, the balancer will route the same IP to the same server over and over within a certain time window. This way, all requests (AJAX or otherwise) from one client would always hit the same server in the cluster/farm.
I've already got something like MyXAML - my screens are loaded from xml files already. It suffers the same problem as MyXAML which is that you still have to position the controls with pixel positions whereas I want something like html with the automatic flow and tables and such. I think TableLayoutPanel might be wha...
If it's a hardware load balancer, you shouldn't have an issue, because all that is known there is the request URL, in which the server would compile the requested page and serve it. the only issue i can think of that you might have is with session and view state.
Sum Dimensions of an Array Specified at Runtime?
How Does One Sum Dimmensions of an Array Specified at Runt-Time?
How Does One Sum Dimmensions of an Array Specified at Run-Time?
|c++|c|arrays|index|microsoft-dynamics|
I am working on a function to establish the entropy of a distribution. It uses a copula, if any are familiar with that. I need to sum up the values in the array based on which dimensions are "cared about." Example: Consider the following example... Dimension 0 (across) _ _ _ _ _ _ _ _ _ _ _ _ _ ...
Using object property as default for method property
|php|oo|parameters|methods|methoddefaults|
I'm trying to do this (which produces an unexpected T_VARIABLE error): public function createShipment($startZip, $endZip, $weight = $this->getDefaultWeight()){} I don't want to put a magic number in there for weight, since the object I am using has a "defaultWeight" parameter that all new shipments get if you...
|php|object-oriented|methods|parameters|method-defaults|
|php|oop|parameters|methods|method-defaults|
pass by reference or pass by value?
|language-agnostic|oo|oop|byvalue|byreference|parameters|