background preloader

Demo

Demo

Balaio Tecnológico Image Processing with Eclipse and Designerator The Designerator Image Processing Framework is part of the Designerator Project. You find source code and downloads at code.google.com/p/designerator/. You also will find a copy of this tutorial at the designerator tutorials page, where the code is hopefully better formated. The intent of this project is to provide an easy and fun way into Image processing for the developer and an easy and fast way for the user to edit his images on the fly, without the hassle of using a heavy weight image editor like Photoshop. Go to Help - Install new Software - and add the Designerator Update Site to install the Image Processing Framework and restart Eclipse. Go to File - New - Plugin Project to start the PDE plugin wizard. In Template page choose Designerator Image Filter. The Filter Plugin Template is pretty straight forward. The Empty Template is the most simple and a good option to start. org.eclipse.uiorg.eclipse.core.runtimeorg.designerator.commonorg.designerator.media.image! Options are: The Code

STL Containers library Standard Containers A container is a holder object that stores a collection of other objects (its elements). They are implemented as class templates, which allows a great flexibility in the types supported as elements. The container manages the storage space for its elements and provides member functions to access them, either directly or through iterators (reference objects with similar properties to pointers). Containers replicate structures very commonly used in programming: dynamic arrays (vector), queues (queue), stacks (stack), heaps (priority_queue), linked lists (list), trees (set), associative arrays (map)... Many containers have several member functions in common, and share functionalities. stack, queue and priority_queue are implemented as container adaptors. Container class templates Sequence containers: array Array class (class template ) vector Vector (class template ) deque Double ended queue (class template ) forward_list Forward list (class template ) list Container adaptors:

Become a Programmer, Motherfucker If you don't know how to code, then you can learn even if you think you can't. Thousands of people have learned programming from these fine books: Learn Python The Hard Way Learn Ruby The Hard Way Learn Code The Hard Way I'm also working on a whole series of programming education books at learncodethehardway.org. Learn C The Hard Way Learn SQL The Hard Way Graphics Programming Language Agnostic NerdDinner Walkthrough Assembly Language Bash Clojure Clojure Programming ColdFusion CFML In 100 Minutes Delphi / Pascal Django Djangobook.com Erlang Learn You Some Erlang For Great Good Flex Getting started with Adobe Flex (PDF) Forth Git Grails Getting Start with Grails Haskell Java JavaScript JavaScript (Node.js specific) Latex The Not So Short Introduction to LATEX (perfect for beginners) Linux Advanced Linux Programming Lisp Lua Programming In Lua (for v5 but still largely relevant)Lua Programming Gems (not entirely free, but has a lot of free chapters and accompanying code) Maven Mercurial Nemerle Nemerle NoSQL Oberon Objective-C

The awesomeness of Eclipse Development Process (part 2) Chris has asked for "concrete example" showing the real story behind my previous post. My example will be Tycho IP review. (Note: I'm an outsider to the whole process but I'm dealing with a lot of Maven/Eclipse/Tycho issues in Fedora). Here is the bug with a lot of info in it. And now let's show the amount of changes that happened to Tycho codebase after this bug was open. Even the first few comments are showing that with the start of the review licensing has been fixed in a number of places. Some of the examples are falling in more than one group but they are mentioned in one place only, decide for yourself whether they apply for others too. P.S. P.S. 2 If someone tries to say that these problems are only in certain projects I would ask him/her in advance to give us the URL of his project so others can point similar problems. We all do these mistakes and that's where we need help of entities like the Eclipse Foundation. Let he who is without sin, cast the first stone

teejeejee: Playing with C++0x -- lambdas C++0x has a workload of new features[2]... Today I'm having a look at lambdas. Lambdas are available in g++-4.5, for now only available in experimental. What are lambdas? Closures are a very powerful tool that are being retrofitted in many languages (for instance Java). Enough for theory, let's have a look at this new beast. How do they look like? [](int i) { return i + 1; }; This is the increment lambda. How to read this? Using a lambda To use it add arguments, for instance: [](int i) { return i + 1; }(0); would compute the value 1. Storing a lambda The type of a lambda is automatically deduced. auto inc = [](int i) { return i + 1; }; std::cout << inc(0) << std::endl; Notice that calling a named lambda is not different from calling a function. auto mult = [](int x, double y) -> double { return x * y; }; Capturing environment You can use lambdas to capture outter environment. void f() { int x = 5; [](int w) { return w + x; }(0); } void f() { int x = 5; [=](int w) { return w + x; }(0); } Yes, mutable.

Free Programming Resources 10 common EMF mistakes « Nirmal's Blog 1. Treating EMF generated code as only an initial code base EMF is a good startup kit for introducing MDSD (Model-Driven Software Development) in your project. Anyone who has been introduced to EMF and had their first code generated using EMF will for sure be impressed by the short turn around time needed to have an initial version of your model based application up and running. For many, the thrill ends as soon as you need to change the behaviour of generated code and have to dig into it and understand it. It is complex, but only complex as any other similar sized framework. The customizations mostly start with the generated editor. 2. In EMF you deal a lot with model objects. Use EMF Commands! 3. EMF notification is one the most powerful features of the framework. When you want to react to a model change, don’t assume that you are the only one going to originate that change. 4. Before writing your own utility functions, keep an eye on EcoreUtils class. 5. 6. 7. 8. 9. 10. Like this:

Related: