examples

Where can I find a deliberately insecure open source web application?

As a developer, I've learned that I usually gain a better understanding of best/worst practices through experience. The area of web application security isn't really somewhere where my organization can afford to let developers learn through trial and error. So looking for a hands-on approach to knowledge sharing of best practices in ...

Examples of design pattern misuse

Design patterns are great in that they distill a potentially complex technique into something idiomatic. Often just the fact that it has a name helps communication and understanding. The downside is that it makes it easier to try to use them as a silver bullet, applying them to every situation without thinking about the motivation behin...

Example C Function using volatile variables

Hi, for a paper I'm looking for an real-life C function which uses volatile variables. That in itself is not hard to find, but I am looking for a function in which the value of the volatile variable must change during the course of the execution of the function, for a particular branch of the function to be reached. Something like thi...

Any SourceGear Vault Client API Examples?

I'm trying to get at my Vault repo history via a C# application. I'm having a hard time finding any decent examples that show how to do this with a recent version of the API. I found some info on the topic, but it all seems to apply to an old API that's not in use anymore: http://support.sourcegear.com/viewtopic.php?f=5&t=4529&amp...

Examples of usability disasters?

Anybody have good examples of usability disasters? Here's an example. Hector is a manager with a large team. Department admin wants to send Hector a spreadsheet with his team's salaries. She types "Hector" in the Outlook "To:" field. It autocompletes to "Hector's Team" but she doesn't notice that until after she sends it. ...

Examples of 'Things' that are not Objects in Ruby

"Everything is an object" was one of the first things I learned about Ruby, but in Peter Cooper's Beginning Ruby: From Novice to Professional book, it is mentioned that "almost everything in Ruby is an object". Can you give me some examples of things that are not objects in Ruby? ...

When foo and bar is not enough

When you are using placeholder names when programming (not necessary variable names, but labels, mockup names, etc) and foo and bar is not enough, what do you use? I guess baz is rather common as third name, and the lorem ipsum for longer texts. But then what? ...

Implementing SSL

Hi All, I have been tasked with implementing TLS/SSL onto an in-house webserver framework. I was wondering if anyone could point me to some good example code that they know of? I am particularly interested in using GSS API (Microsoft's Security Support Provider Interface (SSPI)). Failing that, Crypto++, I can't use any other type of op...

How do I use the IComparable interface?

I need a basic example of how to use the IComparable interface so that I can sort in ascending or descending order and by different fields of the object type I'm sorting. ...

Consulting Websites - need good examples of the best sites

I am working on revamping our consulting website. We have a small shop with 12 developers aimed at custom desktop and internet development with a focus on Microsoft technologies. I'm looking for some sites to use as examples - not to copy, but to see how they present services, size of company, and portfolios. I have seen many sites tha...

Best WPF open source projects

Hi, I have programmed with WPF for more than a year. When I started there weren't so many examples and guidelines to follow, now the situation is much more better. I would like to ask you some help in listing the best WPF (open) source code examples or projects that you suggest to study in order to learn more about project structure, be...

Can you make me understand dynamic, abstract event objects easily?

I've written C++ event-driven apps using MFC for GUI buttons, and I use HTML events like onmousedown to trigger some Javascript in a webpage. The idea of event-driven programming is intuitive when you are using the interface and events are hard-coded. I know how to use a function pointer in C, and I see how Windows uses them to run an ...

How to use miniclip algorithm in a TIc-Tac-Toe game(X0) php

Hi I am working on a online TIc-Tac-Toe game using the miniclip algorithm to calculate the best move.I found few examples but i really don't understand the miniclips logic.Some example would be great. Thanks! ...

Is there a good example of using a factory method / pattern for creating game objects / characters?

I want a clean way of creating game object such as NPCs, bullets and power-ups, reducing the amount of inter-dependence on specific classes. I believe this is what the factory pattern is used for? I would love to see a good implementation from a real game. I'm not an expert on design patterns, and never use them if I don't understand t...

Rosetta Stone: Great example projects

In your opinion, what is a great example application which demonstrates the best techniques for its language and problem domain, and could be used as a reference for other programmers? Please provide answers where the source is readily available for viewing (i.e. open-source projects), and provide a link. The first line of each answe...

What are the uses of lvalue subroutines in Perl?

I don't understand what could be the uses of lvalue subroutines? What is it that I can't accomplish with normal subroutines? Could you please post some examples? Thanks ...

quaternion libraries in C/C++

Any good libraries for quaternion calculations in C/C++ ? Side note: any good tutorials/examples? I've google it and been to the first few pages but maybe you have have some demos/labs from compsci or math courses you could/would share? Thanks ...

Creating a Survey using jQuery - Any examples?

I'm looking for a very basic survey/wizard example using jQuery and HTML. I'd like it to connect to a text file or XML file and be independent of SQL, PHP, ASP.NET, or any other scripting language outside of JavaScript. TIA UPDATE: I'm looking for a solution that will ask a single question at a time. Then, based on the multiple choice ...

Good examples of C applications?

Everyone knows that C is hard to program in, provides you with almost no useful abstractions, and is even dangerous. However, given enough design and discipline, it's possible to write clean, portable, modular code. What are some good examples of this? I'm looking for real world applications or other open source projects that are reasona...

Specific examples of Agile documentation?

In an answer to the question Documents for a project?, Chris Ballance replied that "User Stories" and a "burndown chart" are the two most useful types of project documentation for a developer. My question is, do you know of any good example[s], which I can see (for example on the internet, or in a book), of these kinds of documentation?...