examples

Good short example program to accentuate various languages' style & idioms?

I'm putting together some brief pages on programming and programming languages for a corporate wiki. We are not a software or IT company, but we have many technical employees (engineers, geoscientists...). I'd like to implement a brief example program (think no more than 5x the complexity of "Hello World", if that's a measurable metri...

Basic Security in JSF

I would like to see a simple Login Application, not as simple as this though. What i would like to achive is an understanding on how JSF works, I've developed a lot of ASP.NET where you have the Code Behind and where you can just Check if a session was created upon Login. A similar solution in JSF would be great. This is basicly what ...

How to use '-prune' option of 'find' in sh?

I don't quite understand the example given from the 'man find', can anyone give me some examples and explanations? Can I combine regular expression in it? the more detailed question is like this: write a shell script, changeall, which has an interface like "changeall [-r|-R] "string1" "string2". It will find all files with an suffix ...

Where to get Flash/Flex coding examples, a timeline example in particular?

I'm in the process of learning Flex, but I learn best by example. Where can I find open source examples of Flex applets? In particular, I'm trying to reproduce the functionality of the JavaScript based Simile timeline, so a timeline example would be sweet. ...

First version of Linux

Hi there I've heard many times that Linus Torvalds is a genius when it comes to writing good code. I also wish to write good code and I'd like to see how the first version of Linux was written. Does anyone know where I can find the first version of Linux? I'm looking for the first version (not 1.0) because I think it will be smaller a...

What apps have nifty maven poms and are good as examples of maven capabilites

I'm looking for applications that have "rich" maven pom(s) and can show lot of maven capabilities(plugins). These applications are needed as showcase examples - how fast and how many this can be done with maven and appropriate set of plugins. There are no constraint to technology or application type - it must be opensorce and easy to bu...

What are examples of non transactional datasources?

In JBoss documentation there is possibility to declare <no-tx-datasource> which states: no-tx-datasource : This element is used to specify the (org.jboss.resource.connectionmanager) NoTxConnectionManager service configuration. NoTxConnectionManager is a JCA connection manager with no transaction support. I'm curious what can be co...

Open source non-trivial SOA examples

Hello, I've been looking for open source examples of SOA applications, but most of the times I find simple tutorial hello world style examples that introduce the tricks of the respective middleware. Do you have any suggestion about any middle to big size example with multiple layers and/or governance ? Isn't it some kind of common exa...

Examples of Web Sites Using AJAX or Push Technology on Their Home Page (or other useful pages)

I'm looking for a list of links to any examples of well-designed sites you might know that use AJAX and possibly HTTP Streaming to push data to the page or make updates to content of existing HTML elements. Ideal examples would be sites that update somewhat frequently (every 10-90 seconds) rather than very frequently (every 1-5 seconds...

What's a good example of really clean and clear [R] code, for pedagogical purposes?

I'm working with a small team of analysts and statisticians on what will be a medium-sized body of R code. They're smart people, but they're not trained or experienced as programmers, per se. (I am.) They've written some R code, but for our project to be expandable, efficient, and maintainable, it needs to become well-structured, and rat...

C# - Linq to XML

Where can i get more examples on Linq to Xml? ...

Reactive Framework for .NET examples that prove its usefulness

There's been quite some hype around the new Reactive Framework in .NET 4.0. While I think I undestood its basic concept I am not completely sold that it is that useful. Can you come up with a good example (that is halfway easy to understand) that totally shows of the power and usefullness of Rx? Show something that makes life so much eas...

Good resources for experienced web developers moving to PHP?

Good morning, all. I've been doing websites now for about seven years (most of which have been in ASP.NET, but some just HTML) and I'm getting ready to make the move to PHP for my next project. Can anyone suggest some resources and/or tutorials that are more than the usual Hello World kind of thing? Specifically, any guidelines on cod...

Why does Apple's GLGravity example become slow and unresponsive after touching the screen?

To reproduce the problem: Download Apple's sample project GLGravity: http://developer.apple.com/iphone/library/samplecode/GLGravity/index.html "Build and Go" on a device. Observe how smooth it is. Then, touch anywhere on the screen. Observe how jerky and slow it becomes. Eventually, it becomes unresponsive. Why? And how would you...

Practical COW example program?

Has anyone written either a long or short program in COW that demonstrates what it can do? Sure, the language is a joke; but since it is Turing complete, maybe someone has written a high-level language that translates into COW. After writing a short, practical program that at least showed what you typed on the screen, one would think tha...

Do you know of any good UML sample?

I need some sample UML diagrams for some project of medium complexity. Do you know of anywhere where I can find some? I don't need them for learning UML, but rather to test my application that I work on and that should be able to process UML diagrams. It would suffice to have Class diagram, Package diagram and Component diagram, but th...

HTML5 Style Examples In the Wild?

Does anyone know of any good examples of usage of HTML5 elements that are well-styled out on the intertubes? Specifically, I'm curious to see <article>, <aside>, <meter>, <nav>, <header> and so on. I'm specifically not interested in video, audio, offline or drag-n-drop files. Just the cosmetic stuff. ...

JSF - project structure examples

Is there any JSF CRUD project structure examples? I surfed the net to find some good and big JSF examples, but everywhere are only small projects with simple structure. I need JSF project example with CRUD, forms and reports. ...

Style a code snippet with css

Hello everyone, Could someone give me a link, a tutorial or an already made css template for styling code snippet to add that feature to my blog ? I seen examples in numerous blogs, but, now that i am searching for one, i can't put hands on it ! I want to be able to post a code snippet with keyword coloration, line numbers etc.. Many...

Has anyone used Buzz Andersen's Simple iPhone Keychain code?

You can find it here. I'm trying to understand his sample code in order to write a simple program with that stores passwords into the keychain and retrieves them for login. Has anyone done this before? It would be most appreciated if I can see any examples you may have. ...