reference

Is there any good example of good usable user manual?

hi guys, i'm trying to create a user manual for based on a vb6 desktop application, it should be used mostly by non technical people on how to use the software and i also need it to show the clients what they're buying into as well. i've seen this previous discussion on best-practice but i'm looking for a solid useful user manual that f...

VS2008.NET: Getting a referenced project's dependencies to copy to main project's bin folder

Let's assume I have a C# Winforms project, MainGUI. It references another project in the same solution, ControlsLib. ControlsLib references a third party control suite, such as Infragistics or Telerik controls, and exposes a set of user controls, that are used in MainGUI. Copy Local is set to true on all the references in ControlsLib,...

What's the fastest way to get the info I need from MSDN?

In PHP, if I need info on a function I can just type http://php.net/function-name. If the function doesn't exist it performs a search of all functions. The documentation for every function is usually 1 page long and contains all relevant info needed (params, return types, sample code, comments, special cases). When I search for someth...

Scarcity of Reference-Level Documentation?

My work tends to involve using tools and libraries from elsewhere, rather than providing this stuff for external consumption. But for what we do internally, "documentation" means providing information that concisely enumerates the functionality for others to use. By habit we tend to generate something that looks like UNIX man-pages, but ...

What is a good beginner's online resource for ASP.NET MVC?

I have 3 days to learn the basics of ASP.NET MVC and create a very small PoC web application with it. What are currently the best online resources for: Learning the basics in a tutorial-like way Reference material regarding ASP.NET MVC Best practices regarding the use of ASP.NET MVC I am not looking for general info about the MVC p...

Why 'this' is a pointer and not a reference?

I was reading the answers to this question C++ pros and cons and got this doubt while reading the comments. Why the this is a pointer a not a reference ? Any particular reason for making it a pointer? ...

How to pass references by value in C++?

I'm trying to create am immutable type (class) in C++, I made it so that all methods "aka member functions" don't modify the object and return a new instance instead. I'm running across a bunch of issues, but they all revolve around the reference types in C++. One example is when passing parameters of the same class type by reference:...

When should I use the new keyword in C++?

I've been using C++ for a short while, and I've been wondering about the new keyword. Simply, should I be using it, or not? 1) With the new keyword... MyClass* myClass = new MyClass(); myClass->MyField = "Hello world!"; 2) Without the new keyword... MyClass myClass; myClass.MyField = "Hello world!"; From an implementation perspect...

Is 'buggy_logger' a reference to the 'status' string in this Ruby example?

In this example, do the nukes get launched because any changes that you make to buggy_logger get applied to the 'status' string - just like using a copy of a reference to an object -> when you make a change to the copy of the reference, the change gets applied to the underlying object -> that change is, in turn, reflected in any other re...

Table showing generic equivalents of C# 1 data types

Some time ago I came across a table that listed the generic equivalents for C# 1 data types. This would be a handy reference to have around. Can anyone point me to this? E.g., instead of Hashtable use ... ...

Programming Language Reference: String Replacement

I am seeing if it's worthwhile creating a reference showing how to do common things in multiple programming languages. Please list below the command that you would use to achieve the following in your chosen programming language: String Replacement examples: PHP: mixed str_replace ( mixed $search , mixed $replace , mixed $subject [,...

Common Java memory/reference leak patterns?

Maybe the most typical example is the JDBC closing done wrong way and not handling the possible exceptions correctly. I am very curious to see other examples you have seen - preferably web application related. So, are there any common leak patterns in Java? ...

What is the use of passing const references to primitive types?

In a project I maintain, I see a lot of code like this for simple get/set methods const int & MyClass::getFoo() { return m_foo; } void MyClass::setFoo(const int & foo) { m_foo = foo; } What is the point in doing that instead of the following? int MyClass::getFoo() { return m_foo; } // Removed 'const' and '&' void MyClass::setFoo(...

Online SQL reference for DB2

Do you know of any good online SQL Reference for DB2. I need it for someone who will be moving from Oracle to DB2 ...

Best Squid Administrators GuideBook

Recently I have been charged with implementing Squid Proxy server for my organization of approximately 250 users. I have plenty of Linux experience and I am looking to find the best administrators guidebook for my buck. What are everyone's suggestions? Is a book the best way to go or are there other good online resources that I can re...

Differentiate Between Pointer and Reference at Run Time ANSI C++

How does one differentiate between pointers and references at runtime? For example, if I wanted to free a pointer of a data type without knowing whether it were a pointer or not how would I do so? Is there any method to tell if a variable has been allocated on the stack or through malloc()? void destInt(int* var) { free(var); } int...

How to pass arguments to function referenced by variable

I have a function 'foo' and a variable '$foo' referencing it. function foo { param($value) $value + 5 } $foo = foo $foo I can call $foo without args, but how can I pass parameters? This does not work: $foo 5 $foo(5) Actually the goal is to write such code: function bar { param($callback) $callback 5 } bar(foo) ...

How do I reference an object, add a tween to it and put this in an Eventlistener in AS3?

I'm having quite some trouble to try and get an app I wrote in AS2 to AS3. The reason I need to go to AS3 is something icky, so I won't go into detail about it. I've got 90% of the application running with the new code. Now I've come to the point where I have to convert this code from AS2, function setAnimation(theObject,id) { theO...

Is it OK to return a const reference to a private member?

I need to implement read-only access to a private member container. If I return a constant reference is it possible to const_cast it and obtain a full access to the member? What's the technique to be used? Thanks. ...

Using User Controls from Other Projects in ASP

Hello! I'm trying to re-use my ASP User Controls in other projects, and have hit upon a problem. I've read ScottGu's post on http://weblogs.asp.net/scottgu/archive/2005/08/28/423888.aspx and tried to follow his patterns but run-time the child controls of my controls are not being initialised. My setup: I'm using Visual Studio 2008 I'...