examples

How can I add examples to rspec at runtime?

I am trying to write a spec were the number of examples i.e. 'it "should ..." do' are determined at runtime. I tried putting the 'it' method in my own method so that I could call it multiple times: def new_method(test) it "#{test} should... " do end end However, the 'it' method is not available from the current Spec::E...

Complete examples using MVC2, EF4, and Repository Pattern with true SoC

I'm having trouble finding examples of ASP.NET MVC solutions that use EF4 in their repository while adhering to SoC. Can anyone provide me with references to examples (open source, books, tutorials, articles, etc.) that demonstrate the following? ASP.NET MVC 2 Entity Frameworks 4 Repository Pattern Separation of Concerns (i.e. BL does...

GWT/Web Java offline application example

Hi, Could you link me with some examples of application wrote in GWT, or other Java Framework that works offline? I tried to ask google, but unfortunately i couldn't find anything. For example: installation of this app contains installing tomcat/jetty, and when i want to start it, server is started first, then some portable browser ...

Are there any PHP *websites* that have made their source available?

It's not hard to find example PHP code. The problem seems to be that most of it is frameworks/libraries/etc. This is great, but I'd like to see an example of an actual website. This stems from my perception that I can't build anything but "toys." My websites tend to be fairly CRUDdy, and it feels like my sites are a bit of generic MVC s...

flex pagination example help

I've found a flex paging example I'd like to get working, but can't seem to get it running. The Example files can be found here: http://blogs.adobe.com/tlf/2008/12/actionscript-pagination-exampl.html I've downloaded and imported the project into flex. However I seem to have an error that prevents the example from running. Here is the e...

Subtle software security bugs in webapps

Im doing research on the capabilities of static analysis and at the moment I'm in the process of gathering code-snippets which contain subtle vulnerabilities. By that I mean not the obvious XSS and SQLI, but more subtle ones like below: $url = htmlspecialchars($_GET["url"]); echo "<a href=$url>Click here to continue</a>"; $url = htmls...

Developing a webservice in java

I'm relatively new to web services. I dont know how this web service will work. I didn't find any useful simple example of a web service by googling. Can any one please give me some tips or links to creating a web service using java. ...

Lejos RGB color sensor

Does anyone have a code example of using the NXT RGB Color Sensor in the Lejos programming language. I have tried several different uses of setType() and setMode() but to no avail. ...

looking for technical info using cloud hosting servers for Saas

Hi if i get it right i can via rest API in amazon cloud to extend the capacity and the volume of my servers so simple logic is: if i have registered paying user in my Saas app i can via API to extent my web app ? someone can recommend on real life setups and configuration on web apps based on a cloud (Amazon?) ...

Audacity Nyquist Plugin

I am playing around with Audacity and have been trying to generate tones with harmonics. Audacity does not seem to support it directly, but you can write a plugin to do it. The plugins are written in Nyquist (a variant of lisp) and there a small tutorial here. I do not have any experience with lisp and just want to write something simili...

What does API usually represent?

I'm working on small ticket system. It's very simple and useable already, but I want it to be OOP in every possible way. So currently I'm at the point when I've started wondering, what might the API of such system look like or what it could offer. For example there is Twitter API, but twitter is a public service. The ticket system on th...

examples of DCI architecture?

I've been trying to understand DCI architecture by reading lean software architecture. I feel like I need to see some more examples to crystalize my understanding of it, but I've only been able to find ones which are variations of the money transfer between accounts case that is worked through in the book. If there are any out there on...

What would be an example of an anaphoric conditional in Lisp?

Please explain the code as well. Thanks! ...

Using Google's Visualization API and Closure to generate a BarChart.

I have a web page that uses Google's Visualization API to generate a timeline but now that I'm trying to add some jQuery stuff to it, things are falling over. So, I'm trying to do it with Closure. However I can't seem to find any examples of how to use the Visualization API under Closure. Does anyone know where I can find any examples? ...

Need a short, complicated C++ code and a longer, understandable version

In this question, I tried to give an example of two ways of doing the same thing in C++: one short but complicated "fancy" piece of code; and a longer but more readable and understandable way of doing the same thing. The question asks whether it's better to have a well-commented fancy piece of code or a self-commented (i.e. no comments) ...

how is spring better(sample code examples required)

Possible Duplicate: why use spring ?? could you please give me a very simple code example, showing how a code written in spring is very much easier as compared to a code written using interfaces and factory pattern ...

Good newbie instructions for creating minimal complete bug examples?

So, those of us who've been answering questions and dealing with bug reports for a while are all deeply familiar with the concept of a "complete, minimal example". You start with a gnarly huge pile of code that's got a weird error, and you want to ask someone about it. But you don't want to send them the whole mess, so you start cuttin...

how to make a chat room on google app engine , has some demo ? and example ?

has any app engine already do this ? thanks ...

how can i have direct link with ICOBOL (intercative cobbol) with Sql?

i want to query or update data cobol file, thru sql directly under linex. my porblem know that UI is old and i want to change it to have nice UI. ...