We all know that Quicksort is one of the fastest algorithms for sorting. It's not often, however, that we get a chance to see exactly how fast Quicksort really is. The following applets chart the progress of several common sorting algorithms while sorting an array of data using in-place algorithms. The result is a very cool visual demo of different sorting algorithm speeds. Source code is included.
One more nice touch in the Java 6 offensive to the desktop is giving Java applications the ability to add icons to the system tray in a pretty consistent way across platforms.
Java 6 tries hard to make Java applications easier to integrate in the desktop environment of various platforms. One of such welcome attempts is the new java.awt.Desktop class adapted from JDIC (JDesktop Integration Components).
If you’ve ever wondered what methods a groovy class has available for you to call, all you need to do is ask the metaClass...
Agile project management, using methods such as Scrum and eXtreme Programming, alone is not enough...
I just read Thread Signaling from Jacob Jenkov. But it has one fatal flaw: it uses a literal java.lang.String for coordinating between threads. Why is this wrong?
One of the things that had me bothered for a while were visual separators. Whenever I got a design, there were always some silly pipes or > signs that were added to visually separate elements in a horizontal list. I'll try to explain why I think they are so bothersome, and what options we (are supposed to) have to implement them as good as possible.
This annoying error started occurring recently in conjunction with a Flash 9 security update that changed the policy file behavior; this is how to fix it.
Sponsors
More tags
Technology Apple Hardware Linux Programming Security unix-linux ajax javascript php java tools .net trends frameworks books research gui web design ruby open source reviews web 2.0 eclipse other languages perl python humor announcement News mobile Microsoft Windows usability database standards top 10 c-and-cpp server Food & Travel web services web pictures blogs yogurt writing download how to backup diy laptop games guide reference microformats flash tips lifehacks blogging cool howto recipe demo tutorial Cards trick crafts fedora tutorials things to learn craigslist sysadmin xml opinion visual basic cake Domokun install css-html methodology knitting socks fc5 whey salt curds feta cheese feta the cheese pgs minor chords minor chord playing piano by ear piano lessons songs and chords seventh chords thirteenth chords progression knitted socks 101
Care must be taken when placing conditions on the results of the right-hand table of a LEFT JOIN because it could easily become a normal JOIN since MySQL is using a NULL row for every column in the right-hand table when no records exist.
This article explains how to create beans that are scoped to HTTP sessions. It also includes a brief discussion as to why you might want to do that and why you might not.
This article is the first of a series of articles aimed at teaching developers how to create OSGi bundles, including dependencies included with the bundles. OSGi is a framework for Java in which units of resources called bundles can be installed. This article explains what OSGi is, why we need it and how to get started.
User Stories are a not mandatory, but very recommended part of Scrum and eXtreme Programming methods. Most of people acquainted with agile software development feel comfortable with the requirements written in the form of "As a [user role] I want to [goal], so that [reason]". Less people are acquainted with epics and themes usage.
This text is no. 10 in a series on Java concurrency. This text describes how threads can send signals to each other, and wait for each other's signals, using wait(), notify(), and notifyAll(). The text also describes the problems of busy wait, missed signals and spurious wakups, and prescribes solutions to these problems.
This article by JR Boyens details using Terracotta to propagate configuration management on the fly across a network, such that a client can pull up its configuration data live.
Many freelancers struggle with seeing the true value of their own time and respecting it for what it is worth. In order to have a truly successful career we all need to understand that our time is what allows us to make a living, and the more efficiently we use it, the more profitable our work will be.
Are you satisfied with your job? How can hackers become more satisfied with what they do? The article breaks down the main indicators of job satisfaction, and looks at how to measure satisfaction in each of those areas.
An incredible amount of amazing colorful artwork and tutorials to inspire any designer.
One of the most complicated aspects of generics in the Java™ language is wildcards, and in particular, the treatment and confusing error messages surrounding wildcard capture. In this installment of Java theory and practice, veteran Java developer Brian Goetz deciphers some of the weirder-looking error messages emitted by javac and offers some tricks and workarounds that can simplify using generics.
A resource is a file situated somewhere in the class path. It can be a file in a package folder, in the classes folder or in a jar file. Resources are usually needed at runtime and they can be properties files, images and so on. The ClassLoader and Class classes provide methods to find the desired resources but a little bit of attention has to be payed to the quirks of this API.
You've heard about Pulse, but maybe thought you didn't have time to pull it down and take a peek. This screenshot-laden blog entry should help you understand what you're looking at.
Sixth in my series on writing a compiler in Ruby: "How about some deferred evaluation and anonymous functions? Lambdas, or anonymous functions, can be passed around like values and called at your convenience (or not at all). Generally, they can access variables from the surrounding scope that gets "bound" to the function as an environment that allows it to pass state. That's a closure. What we're going to do this time is not going to bring full closure support, but it's the start, and we'll get to full closures down the road."
This text discusses the differences between checked and unchecked exceptions in Java, and argues that unchecked exceptions are often a cleaner alternative. The text finishes with references to Anders Hejlsberg (creator of C#) and James Goslings (creator of Java)'s interviews on the subject at artima.com
Nice Mac Style flash menu built using ActionScript 3 with source code provided and several implementation tips in the comments.
This step-by-step tutorial shows you how to build a shopping cart using the new Spring Web Flow 2.0 framework and Spring 2.5.4. It includes three downloadable versions of the sample shopping cart app so you can see how to get Spring MVC set up, how to get SWF set up, and then finally how to expand a basic flow into a more involved flow.
Without a doubt, positioning, or the layout, is the hardest part of CSS. Not only because it ever so often varies between browsers, but also because CSS has a lot of ways to position an element, all with various (dis) advantages. This series of articles will thrive to explain the possibilities you have in positioning. It doesn’t only cover positioning, but also properties that define layout such as display and float, and a preview of the new CSS3 layout modules. This part will introduce the positioning and display property. Part two, which will be published next week, will go more in-depth with the display attribute and delve into the float property. The last part, published the week thereafter will be a preview to the new CSS3 layout modules.
Jacob Sedelin continues the mad experiments. The well-known founder of Javascript-ports Mario and Wolfenstein 3D was come to mind by idea to keep a javascript-code in a PNG-picture, thereby using possibilities of a compression of this format for code compression. The author has laid out small library which by means of a method getImageData() object Canvas reads out bytecode from a picture and translates it in clear for function eval() the form.
come test your strength with a programming job interview challenge
Frustrated with time required to build swing UI application. Looking how to make my work easier, more productive and fun by following DRY.
In Java 6 a better way of interacting with the command prompt was introduced, the java.io.Console class. Together with the utility class java.util.Scanner introduced in Java 5 this new API can be used to develop more advanced Java console applications.
12345678910111213 ... 114 »










