22 to 0.3 seconds!
I found a simple solution to a very common problem. While profiling I found that remove in this little method took a lot of the time.
public void MovePropertyFirst(IProperty property)
{
properties.Remove(property);
properties.Insert(0, property);
}
The reason [...]
Performance nightmare
March 5th, 2010 by Björn Carlsson — .Net, Tips & Tricks
Tags: performance, programming
OpenGL ES Tutorial for Android – Part V – More on Meshes
February 15th, 2010 by Per-Erik Bergman — Android, Embedded
I have a feeling that some of you have tried my tutorials and then thought “This is a 3D tutorial, but why is everything in 2D?”. So in this tutorial we will make some real 3D meshes. This is also necessary for the following tutorials.
When I started I had problems with finding out how [...]
Tags: opengl es, programming, tutorial
Building OSGi Bundles with Scala and Gradle
February 9th, 2010 by Michael Kober — Java
There already some good blog posts about how to build OSGi bundles in Scala, among others “An OSGi Bundle… built in Scala” of Neil Bartlett and “OSGi, Maven and Scala” of Gavin Bong using pax-construct. Here is another alternative using Gradle. Gradle is an open-source build system providing the expressiveness of a Groovy based DSL [...]
Tags: build systems, programming, scala
Continuos Integration for XCode projects
January 31st, 2010 by Christian Hedin — Agile, Testing
Continuos Integration is the practice of integrating changes from many people as often as possible. Instead of merging changes once a month and spending time handling merge errors you try integrate every day, perhaps even every hour. Each integration is built and tested on a server. If there are build errors or test failures, you [...]
Tags: automated testing, hudson, objective-c, tools, tutorial, xcode
Maven, FindBugs and Dashboard Reports
January 29th, 2010 by Davor Crnomat — Java, Testing, Tips & Tricks
There are a few simple steps to get nice graphic presentations of FindBugs results using Maven.
First, to enable FindBugs reporting in Maven, just add report section to your pom files, something like example below, but of course, you can do your own configuration.
Sneaky throw
January 29th, 2010 by Jan Kronquist — Java
The latest issue of our magazine Jayview is out with brand new look and feel. My contribution was a cool piece of code that gets rid of those annoying exceptions. However, during layouting the link to the source disappeared. Credit should of course go to Reinier Zwitserloot and his mail on Java Posse.
public class [...]
Tags: exception, jayview, tricks
iPad, the Future, and the Luxury of Starting Over
January 28th, 2010 by Fredrik Olsson — Cocoa, Events
A luxury that you seldom have in the world of software development is the luxury of starting over. I am not talking about throwing away everything and start from scratch. But just taking what you have, and all the experiences learned. Apply some major refactoring to make what works really shine, and without care of [...]
Tags: apple, cocoa touch, frameworks, innovation, ipad, iphone
The easy way to test Android applications
January 28th, 2010 by Renas Reda — Android, Testing
I’m going to guess that most of you know what instrumentation is. In the event that you don’t, instrumentation is a feature in which specific monitoring of the interactions between an application and the system is made possible. Instrumentation also makes it possible to write test cases that interact with the application. The problem with [...]
Tags: automated testing, frameworks, junit, open source, tools
Boosting Android performance using JNI
January 25th, 2010 by Mattias Rosberg — Android, Embedded, Java
JNI or Java Native Interface is the interface between the Java code running in a JVM and the native code running outside the JVM. It works both ways, that is you can use JNI to call native code from your Java programs and to call Java code from your native code. The native code normally [...]
Tags: programming, tutorial
Getting around static typing in Scala
January 23rd, 2010 by Jan Kronquist — Java
I really like static typing, but sometimes it can get in your way. For instance if you have a collection of objects and you want to perform an operation on the objects of a certain subclass you can run into problems.
Tags: collections, programming, scala
Maven, the new Elephant on the Block
January 23rd, 2010 by Anders Janmyr — Uncategorized
Some of you may remember the article, by Bruce Tate, Don’t Make Me Eat the Elephant Again.
It was an article about EJB, and Bruce was begging Sun not to make the same mistakes with EJB3 as they had done with EJB, and EJB2. They didn’t, Spring came along as better alternative and forced EJB3 to [...]
Tags: build systems, buildr, maven, maven2, rake, tools
One artifact with multiple configurations in Maven
January 21st, 2010 by Henrik Larne — Java, Tips & Tricks
Problem
When working on www.beertoplist.com I ran into a Maven problem, that is fairly common: Having a project that should be configured differently for different environments. That is for instance you want one configuration for development, one for test and one for production. I wanted a solution that allowed me to make changes to all kind [...]
Tags: maven, open source, programming, tools
