references

Can you force either a scalar or array ref to be an array in Perl?

I have a perl variable $results that gets returned from a service. The value is supposed to be an array, and $results should be an array reference. However, when the array has only one item in it, $results will be set to that value, and not a referenced array that contains that one item. I want to do a foreach loop on the expected arr...

Best references for secure coding practices in ASP.NET and classic ASP.

What are some of the best reference material for secure coding in the ASP.NET and classic ASP environments? I'm sure there are a ton of books out there but which ones are the best for this? If anyone has pointers to online resources also, that would be appreciated. ...

Indispensable Books

If you were to be stuck on a desert island (in a sea of cubicles) with 5 CS/Engineering/Programming references - what would they be? Code Complete by Steve McConnell? Design Patterns by the gang of four? The venerable K&R? What are your favorites, and which do you find yourself coming back to most often? No there is not a thread alrea...

Pointer Manipulation Help

Hi everyone, I am trying to build a function in C/c++ to sort an array and replace each value with its "score" or rank. It takes in a double pointer array to an array of ints, and sorts the double pointers based on the dereferenced value of the integers. I have tried quite a few times to make it work, but cant get it down. Once again,...

canonical problems list

Does anyone known of a a good reference for canonical CS problems? I'm thinking of things like "the sorting problem", "the bin packing problem", "the travailing salesman problem" and what not. edit: websites preferred ...

Is Java pass by reference?

I always thought Java was pass by reference, however I've seen a couple of blog posts (e.g. this blog) that claim it's not. I don't think I understand the distinction they're making. Could someone explain it please? ...

PHP, Arrays, and References

Why does the following code not work as I was expecting? <?php $data = array( array('Area1', null, null), array(null, 'Section1', null), array(null, null, 'Location1'), array('Area2', null, null), array(null, 'Section2', null), array(null, null, 'Location2') ); $root = array(); foreach ($data as $row) { if ($...

Reference material for LabVIEW

I'm supposed to learn how to use LabVIEW for my new job, and I'm wondering if anybody can recommend some good books or reference/tutorial web sites. I'm a senior developer with lots of Java/C#/C++ experience. I realize that this question is perhaps more vague than is intended on stack overflow, so how about this? Please answer with one...

Where can I find (old) scientific articles (and books)?

Often when reading books I find references to old studies, essays and articles that I would like to take a closer look at. Now, the problem is, how do I find them? Popular and semi-popular books can often be found on Amazon or other book stores, but what about that out-of-print book from 1945, or the classic study on ... published in an...

I understand threading in theory but not in practice in .net

I have a basic cs-major understanding of multi-threading but have never had to do anything beyond simple timers in an application. Does anyone know of a good resource that will give me a tour how to work with multi-threaded applications, explaining the basics and maybe posing some of the more difficult stuff? ...

Difference between pointer variable and reference variable in C++

I know references are syntactic sugar, so easier code to read and write :) But what are the differences? Summary from answers and links below: A pointer can be re-assigned any number of times while a reference can not be reassigned after initialization. A pointer can point to NULL while reference can never point to NULL You can't ta...

What is the best tool to find which DLL another VB6 DLL is referenced to?

This is an antique problem with VB6 DLL and COM objects but I still face it day to day. What is the best tool to see which DLL file or version another DLL is referencing to? Of course, this is from the OS point of view - compiled DLLs not from within VB6 IDE. It's DLL hell. ...

App referencing Microsoft.SqlServer.Smo requires additional assemblies to be included on Target Machine?

I have a small app which references the Microsoft.SqlServer.Smo assembly (so I can display to the user a list of servers & databases to which they can connect). My application originally referenced Microsoft.SqlServer.Smo and Microsoft.SqlServer.ConnectionInfo. Things worked as expected on my dev box. When I installed the application o...

Remove unused references (!= "using")

How can I find and delete unused references in my projects? I know you can easily remove the using statements in vs 2008, but this doesn't remove the actual reference in your projects. The referenced dll will still be copied in your bin/setup package. ...

C# - Excluding unit tests from the release version of your project

How do you usually go about separating your codebase and associated unit tests? I know people who create a separate project for unit tests, which I personally find confusing and difficult to maintain. On the other hand, if you mix up code and its tests in a single project, you end up with binaries related to your unit test framework (be ...

What is the real difference between Pointers and References?

AKA - What's this obsession with pointers? Having only really used modern, object oriented languages like ActionScript, Java and C#, I don't really understand the importance of pointers and what you use them for. What am I missing out on here? ...

Is there a difference between `==` and `is` in python?

My Google-fu has failed me. In Python, are these: n = 5 # Test one. if n == 5: print 'Yay!' # Test two. if n is 5: print 'Yay!' two tests for equality equivalent (ha!)? Does this hold true for objects where you would be comparing instances (a list say)? Okay, so this kind of answers my question: l = list() l.append(1) if l...

where can I find a description of *all* MIPS instructions,

Does anyone know of a web site where I can find a list of 32-bit MIPS instructions/opcodes, with the following features: Clearly distinguishes between real opcodes and assembly-language macros Describes the instruction behavior including differences depending on privilege level. Indicates in which instruction set revision the instructi...

How to order headers in .NET C++ projects

I'm trying to build a new .NET C++ project from scratch. I am planning to mix managed and unmanaged code in this project. this forum thread IDataObject : ambiguous symbol error answers a problem I've seen multiple times. Post #4 states "Move all 'using namespace XXXX' from .h to .cpp" this looks like a good idea but now in my header f...

What do you do about references when unloading a project in Visual Studio?

When you unload a project in Visual Studio, any referencing projects get warning triangles on their reference to the unloaded project. I've written myself a macro to do clever stuff (detect add/remove of project and transform any references from-to file/project dependency), but I can't believe that I'm not missing something much simpler....