examples

Can somebody link me to some code where there is a fantastic or a nice use of Inheritance

I strongly believe that, reading code and reading good code is key to great programming. If not one of the many. I had been facing some problems in visualizing and having a "feel" of using inheritance to better my code architecture. Can somebody give me some link to good code to emulate, where folks have used inheritance in an absolute...

Qt 4.6 Adding objects and sub-objects to QWebView window object (C++ & Javascript)

I am working with Qt's QWebView, and have been finding lots of great uses for adding to the webkit window object. One thing I would like to do is nested objects... for instance: in Javascript I can... var api = new Object; api.os = new Object; api.os.foo = function(){} api.window = new Object(); api.window.bar = function(){} obvious...

JavaCC: Please give me links to "real" examples.

Hello, everyone! I know that there are many examples of JavaCC parsers here, but they all do nothing. They just accept a string, or produce parsing errors. What I need is a few examples of real parsers, which actually do something during parsing. (Such as building a DOM tree during parsing an XML string). Please help! ;) ...

QT video examples does not work

I have QT 2010.02.01, Windows 7 In Exampels directory there are two video player examples: /multimedia/videographicsitem , /multimedia/videowidget But both of them does not work. They can show pictures (.jpg), but they cant open any .avi file (when open avi file, they just do nothing..) ... (I have all codecs installed) Is there any id...

Resources for utilizing tcp-ip, sockets, etc using .NET 2.0?

Where could I find good resources and examples for learning how to utilize TCP/IP in c# 2.0? Any suggestions on where to start? I'm pretty new at socket programming. ...

good/full Boot Spirit examples using version 2 syntax

Almost all of the examples I've gone and looked at so far from: http://boost-spirit.com/repository/applications/show_contents.php use the old syntax. I've read and re-read the actual documentation at http://www.boost.org/doc/libs/1_42_0/libs/spirit/doc/html/index.html and the examples therein. I know Joel is starting a compiler series ...

Unity 2.0: How to use Resolve with ResolverOverride?

I started doing more and more work with Unity. I notice that Resolver method takes a params argument ResolverOverride. Can someone give me an example how I can use ResovlerOverride or point me some other source where I can get more clues. ...

where can i find some examples for fluent api in ruby?

we have understood the concept of fluent api but now we want to look over some existing fluent api for better understanding. where can i find such examples. have searched alot but could not find it. ...

Example non-trivial JEE web service implementation?

My organisation is considering switching from an in-house proprietary application server (and adhoc protocols) to a JEE5 / JEE6 framework + web services for new development, and we're trying to get our heads around how we'd do that. We're experiencing something of a culture shock; we're comfortable with emacs/vi, command-line tools, she...

JUnit for Functions with Void Return Values

I've been working on a Java application where I have to use JUnit for testing. I am learning it as I go. So far I find it to be useful, especially when used in conjunction with the Eclipse JUnit plugin. After playing around a bit, I developed a consistent method for building my unit tests for functions with no return values. I wanted...

Short implementation examples of abstract interpretation

I am taking a course on abstract interpretation, but I haven't seen any examples of how the theory maps down to actual code. I am looking for short code examples, where I preferably won't have to work with a whole compiler. The analysis doesn't have to be useful, I would just like to see an example where the analysis is derived and then...

Samples of Scala and Java code where Scala code looks simpler/has fewer lines?

I need some code samples (and I also really curious about them) of Scala and Java code which show that Scala code is more simple and concise then code written in Java (of course both samples should solve the same problem). If there is only Scala sample with comment like "this is abstract factory in Scala, in Java it will look much more ...

XML problem in the basic menu example

Hi there, I am trying to create an app with some menus, an I am following the basic example available in the official android site: http://developer.android.com/guide/topics/ui/menus.html My problems appear when I define the menu in the XML. After creating the folder res/menu and creating the menu_option.xml file from eclipse.... The ...

Best tutorial for learning Wordpress plugin development?

I'm new to wordpress. Can any one suggest me a best tutorial for learning wordpress plugin development and some simple examples? I've done some searches in google and got some informations. ...

I want to run the examples of QtOpenCl, i.e. Qt in OpenCl. Installation and setup help?

The thing is I have to run the OpenCl examples, as given here:http://labs.trolltech.com/blogs/2010/04/07/using-opencl-with-qt/. The problem is that I have no clue where to start. I downloaded the source for QtOpenCl but it needs a valid OpenCl installation. I have Qt installed already. How do I install OpenCl? I don't have a GPU at hom...

an open source project that uses logging in the extreme

There are many toy examples of logging. I am looking for a large example, that is real world production code, and make extreme use of logging. thank you ...

chef-solo example

We are learning chef-solo and need a good example for better understanding.. Have searched a lot on net but the ideas are very confusing. can anyone suggest some examples.. and also how to run them.. We have installed chef-0.8.16 gem but couldnt figure out how to work with it.. We are using windows platform..Its urgent.. ...

Great examples of self-paced labs and exercises

It is probably a safe bet that many of us are what they call Tactile / Kinesthetic Learners meaning that we learn best when we are physically doing something as opposed to listening to an online tutorial or reading a book. My goal with this question is to derive a list of books or online resources that serve as superb examples of self-p...

similar_text() , php, how to show what text it is finding that is similar

I am experimenting with finding similar text between a string and an online article. I am playing with similar_text() in php that shows the percentage a string matches. But I am trying to figure out how to echo out what similar_text() is finding that is similar. Is there any way to do this? Here is a sample of what I am trying to do: ...

Open source ASP.net webforms examples

I learning ASP.net, and am looking to create a rather straightforward WebForms ASP.net application, but I have very limited examples to work with. Is there a site that has a lot of ASP.net WebForms projects that are downloadable? Books seem to focus on narrow aspects of using Webforms, like session control, or using master pages, but I'...