IoT Zone is brought to you in partnership with:
DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
  • submit to reddit
Alec Noller07/28/14
0 replies

Introducing DZone's 2014 Guide to Internet of Things

DZone's 2014 Guide to Internet of Things was produced to help you understand the growing variety of technologies, tools, and companies behind IoT, along with the challenges it faces and the vast potential it holds.

Andrew Fuqua07/25/14
0 replies

Compressed Backlog Refinement

This post is not about where the ideas come from or even about how to convert what already exists into user stories. The focus here is about how to conduct that initial refinement meeting, then what might be different in subsequent refinement sessions.

Robert Diana07/25/14
0 replies

Geek Reading July 24, 2014

These items are a combination of tech business news, development news and programming tools and techniques.

Matt Butcher07/25/14
0 replies

9 Things I Like About Go

Here, in no particular order, are the top 9 reasons I like working with Go: The Toolchain, Clean Code, Go Routines, Channels, Metaphysical Parsimony, and 4 more...

Gil Zilberfeld07/25/14
0 replies

Agile Practitioners 2015: Call For Papers

Agile Practitioners 2015 is starting its way, and the first step is the Call For Papers! The Agile Practitioners conference started 4 years ago, and is an actual effort by the community. I’m proud to be part of the organizing committee, after presenting at the last 3 gatherings.

Johanna Rothman07/24/14
0 replies

How Pairing & Swarming Work & Why They Will Improve Your Products

If you’ve been paying attention to agile at all, you’ve heard these terms: pairing and swarming. But what do they mean? What’s the difference?

Alec Noller07/24/14
0 replies

The Best of DZone: July 17 - 23

If you missed anything on DZone this week, now's your chance to catch up! This week's best include a Spring MVC 3 view controller example, a look at the new mobile database, Realm, the Java origins of AngularJS, 5 quick points about threads in Java EE, and more.

Adi Gaskell07/24/14
0 replies

The impact of interruptions at work

Interruptions seem a central part of modern working life. Whether it’s open plan offices or the influx of digital tools into the workplace, a distraction never seems far away

Rob J Hyndman07/24/14
0 replies

Plotting the characteristic roots for ARIMA models

When modelling data with ARIMA models, it is sometimes useful to plot the inverse characteristic roots. The following functions will compute and plot the inverse roots for any fitted ARIMA model (including seasonal models).

Mike Bushong07/24/14
0 replies

Scaling Big Data fabrics

Certainly, Big Data applications are distributed largely because the size of the data on which computations are executed warrants more than a typical application can handle. But scaling the network that provides connectivity between Big Data nodes is not just about creating massive interconnects.

Steve Hanov07/24/14
0 replies

You can cheat so your web site seems faster than it is

Previously, I was precalculating the completion which maximized the probability of the word, using some basterdized half-remembered version of bayes law. But I think there is a better approach, by running simulations on existing data.

Alec Noller07/23/14
0 replies

Dev of the Week: Pierre-Hugues Charbonneau

Every week here and in our newsletter, we feature a new developer/blogger from the DZone community. This week we're talking to Pierre-Hugues Charbonneau, Senior IT Consultant and System Architect at CGI Inc., and author of DZone's 200th Refcard: Java Performance Optimization.

//[C# Code Sample]

Dictionary<string, Symbology> collection = new Dictionary<string, Symbology>();
collection.Add("ONE123", Symbology.Code39Standard);
collection.Add("Process Collection", Symbology.DataMatrix);
collection.Add("Dictionary Collection", Symbology.QR);
collection.Add("X06712AT", Symbology.Code128);
collection.Add("979026000043", Symbology.EAN13);
collection.Add("Aztec BarCode", Symbology.Aztec);

List<Bitmap> images = new List<Bitmap>();

foreach (KeyValuePair<string, Symbology> pair in collection)
using (BarCodeBuilder builder = new BarCodeBuilder())
    builder.CodeText = pair.Key;
    builder.SymbologyType = pair.Value;

int maxWidth = int.MinValue;
int sumHeight = 0;
foreach (Bitmap bmp in images)
    sumHeight += bmp.Height;
    if (maxWidth < bmp.Width)
        maxWidth = bmp.Width;

const int offset = 10;
Bitmap resultBitmap = new Bitmap(maxWidth + offset * 2, sumHeight + offset * images.Count);
using (Graphics g = Graphics.FromImage(resultBitmap))

    int yPosition = offset;
    for (int i = 0; i < images.Count; ++i)
        Bitmap currentBitmap = images[i];
        g.DrawImage(currentBitmap, offset, yPosition);
        yPosition += currentBitmap.Height + offset;

resultBitmap.Save("barcode.png", ImageFormat.Png);

//[VB.NET Code Sample]

Dim collection As New Dictionary(Of String, Symbology)()
collection.Add("ONE123", Symbology.Code39Standard)
collection.Add("Process Collection", Symbology.DataMatrix)
collection.Add("Dictionary Collection", Symbology.QR)
collection.Add("X06712AT", Symbology.Code128)
collection.Add("979026000043", Symbology.EAN13)
collection.Add("Aztec BarCode", Symbology.Aztec)

Dim images As New List(Of Bitmap)()

For Each pair As KeyValuePair(Of String, Symbology) In collection
    Using builder As New BarCodeBuilder()
	builder.CodeText = pair.Key
	builder.SymbologyType = pair.Value
    End Using

Dim maxWidth As Integer = Integer.MinValue
Dim sumHeight As Integer = 0
For Each bmp As Bitmap In images
    sumHeight += bmp.Height
    If maxWidth < bmp.Width Then
	maxWidth = bmp.Width
    End If

Const  offset As Integer = 10
Dim resultBitmap As New Bitmap(maxWidth + offset * 2, sumHeight + offset * images.Count)
Using g As Graphics = Graphics.FromImage(resultBitmap)

    Dim yPosition As Integer = offset
    For i As Integer = 0 To images.Count - 1
  	Dim currentBitmap As Bitmap = images(i)
	g.DrawImage(currentBitmap, offset, yPosition)
	yPosition += currentBitmap.Height + offset
End Using

resultBitmap.Save("barcode.png", ImageFormat.Png)

Borislav Iordanov07/23/14
0 replies

Why is the Fundamental Theorem of Software Engineering Fundamental?

So you can see where I'm heading with the question posed at the title of this post. It is the reference resolution that is fundamental an indirection is simply what we do to (re)define what that resolution process ultimately looks like.

Ayende Rahien07/23/14
0 replies

Avoid where in a reduce clause

We got a customer question about a map/reduce index that produced the wrong results. The problem was a problem between the conceptual model and the actual model of how Map/Reduce actually works.

Hamid Shojaee07/23/14
1 replies

Scrum and Quantum Physics

Since Scrum is an iterative process, you can have great success by focusing on things that you can say with a fair degree of confidence, while still allowing for some uncertainty in all planning and estimates.

Mike Bushong07/23/14
0 replies

Scenario planning for first-line managers

Almost every New Product Introduction process includes some placeholder slots to talk about risk. Everyone knows enough to put mitigation plans in these slots. But those mitigation plans are drafted and then ignored by the vast majority of managers.

Kin Lane07/23/14
0 replies

GitHub Commit Storytelling: Now or Later

When you are making GitHub commits you have to provide a story that explains the changes you are committing to a repository. Many of us just post 'blah blah’, ‘what I said last time", or any other garbage that just gets us through the moment. You know you’ve all done it at some point.

-- Relative time with interval
-- Select all users that were updated in the last 24 hours.
WHERE users.updated > DATE_SUB(NOW(), INTERVAL 24 HOUR);
-- Select all users that were updated in the last 7 days.
WHERE users.updated > DATE_SUB(NOW(), INTERVAL 7 DAY);
Mike Bushong07/22/14
0 replies

Network abstractions need equivalent of packet walkthrough

Whenever a new networking platform is evaluated, one of the early sales calls includes a packet walkthrough. But why?