Agile 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
Matthew Turland07/17/14
2521 views
0 replies

Speaking Resources

I was fortunate enough to recently be accepted to the inaugural php[world] conference. Shortly thereafter, a friend of mine within the community inquired about submitting to and speaking at conferences. I thought I’d post the resources I shared with them here for others interested in the same topic.

Mike Bushong07/17/14
2039 views
0 replies

Bare metal switching, pricing, and the impacts on resellers

Most people in the IT space understand the trend towards bare metal everything (servers, switches, etc.). The movement to commodity hardware drives down costs in infrastructure where price is disproportionately determined by the cost of hardware.

Alec Noller07/16/14
2670 views
0 replies

Devs of the Week: Jeffrey Kim & Trevor Gasdaska

Every week here and in our newsletter, we feature a new developer/blogger from the DZone community to catch up and find out what he or she is working on now and what's coming next. This week we're getting a different sort of perspective from DZone's development interns, Jeffery Kim and Trevor Gadaska!

//The sample code below shows how to use the steps above to run OCR on part of an image. 

//[C#]

const string resourceFileName = @"Aspose.OCR.Resources.zip";

try
{
    //Create an instance of OcrEngine and assign 
    //image, language and image settings
    OcrEngine ocrEngine = new OcrEngine();
    ocrEngine.Image = ImageStream.FromFile("Sample.bmp");

    ocrEngine.Languages.AddLanguage(Language.Load("english"));
    ocrEngine.Config.UseDefaultDictionaries = true;

    //Define the block in which to recognize text
    int startX = 0, startY = 0, width = 120, height = 100;

    //Clear recognition blocks
    ocrEngine.Config.ClearRecognitionBlocks();

    //Add 3 rectangle blocks to user defined recognition blocks
    ocrEngine.Config.AddRecognitionBlock(RecognitionBlock.CreateTextBlock(startX, startY, width, height));

    //Set the resource file name and extract OCR text
    using (ocrEngine.Resource = new FileStream(resourceFileName, FileMode.Open))
    {
        try
        {
            if (ocrEngine.Process())
            {
                //Retrieve user defined blocks that determines the paye layout
                var blocks = ocrEngine.Config.RecognitionBlocks;
                //Loop over the list of blocks
                foreach (var block in blocks)
                {
                    //Display if block is set to be recognized
                    Console.WriteLine(block.ToRecognize);
                    //Check if block has recognition data
                    if (block.RecognitionData == null)
                    {
                        Console.WriteLine("Null{0}", Environment.NewLine);
                        continue;
                    }
                    //Display dimension & size of rectangle that defines the recognition block
                    Console.WriteLine("Block: {0}", block.Rectangle);
                    //Display the recognition results
                    Console.WriteLine("Text: {0}{1}", block.RecognitionData.Text, Environment.NewLine);
                }
            }
        }
        catch (Exception ex)
        {
            Console.WriteLine("Exception: " + ex.Message);
        }
    }
    ocrEngine = null;
}
catch (Exception ex)
{
    Console.WriteLine("Exception: " + ex.Message);
} 
 

//[VB.NET]
 
Const resourceFileName As String = "Aspose.OCR.Resources.zip"

Try
	'Create an instance of OcrEngine and assign 
	'image, language and image settings
	Dim ocrEngine As New OcrEngine()
	ocrEngine.Image = ImageStream.FromFile("Sample.bmp")

	ocrEngine.Languages.AddLanguage(Language.Load("english"))
	ocrEngine.Config.UseDefaultDictionaries = True

	'Define the block in which to recognize text
	Dim startX As Integer = 0, startY As Integer = 0, width As Integer = 120, height As Integer = 100

	'Clear recognition blocks
	ocrEngine.Config.ClearRecognitionBlocks()

	'Add 3 rectangle blocks to user defined recognition blocks
	ocrEngine.Config.AddRecognitionBlock(RecognitionBlock.CreateTextBlock(startX, startY, width, height))

	'Set the resource file name and extract OCR text
	ocrEngine.Resource = New FileStream(resourceFileName, FileMode.Open)
	Using ocrEngine.Resource
		Try
			If ocrEngine.Process() Then
				'Retrieve user defined blocks that determines the paye layout
				Dim blocks = ocrEngine.Config.RecognitionBlocks
				'Loop over the list of blocks
				For Each block In blocks
					'Display if block is set to be recognized
					Console.WriteLine(block.ToRecognize)
					'Check if block has recognition data
					If block.RecognitionData Is Nothing Then
						Console.WriteLine("Null{0}", Environment.NewLine)
						Continue For
					End If
					'Display dimension & size of rectangle that defines the recognition block
					Console.WriteLine("Block: {0}", block.Rectangle)
					'Display the recognition results
					Console.WriteLine("Text: {0}{1}", block.RecognitionData.Text, Environment.NewLine)
				Next block
			End If
		Catch ex As Exception
			Console.WriteLine("Exception: " & ex.Message)
		End Try
	End Using
	ocrEngine = Nothing
Catch ex As Exception
	Console.WriteLine("Exception: " & ex.Message)
End Try

Gabriel Dimech07/16/14
3979 views
0 replies

Retrieving JMX information programmatically

In order to retrieve JMX information from a Java application, the target application must be configured to expose JMX information. The following Java code allows for polling the JMX agent and retrieving memory, CPU usage and also shows how to remotely invoke the garbage collector:

Andrey Prikaznov07/16/14
3864 views
0 replies

WebGL With Three.js - Lesson 6

In today’s lesson we will look at the load process of ready three-dimensional objects. We will consider how to load three-dimensional models using a variety of loaders.

Andrey Prikaznov07/16/14
2339 views
0 replies

WebGL With Three.js - Lesson 6

In today’s lesson we will look at the load process of ready three-dimensional objects. We will consider how to load three-dimensional models using a variety of loaders.

Mike Bushong07/16/14
2145 views
0 replies

You Are A Topic At Your Employees' Dinner Tables

The transition from individual contributor to management is probably a bit selfish for almost everyone. In that moment when your responsibilities and title change, you will naturally focus your attention on you.

Lorna Mitchell07/16/14
3218 views
0 replies

Quickly add Amazon Cloudfront as a CDN

We needed to look at ways of trying to bring down the pressure on the servers, and decided to use a CDN (Content Delivery Network) for our image files. It was surprisingly painless to implement once I got into it so here it is in case it's helpful.

Mike Cottmeyer07/16/14
1514 views
0 replies

Validation and the Standing Desk

Validation is an engineering activity. In many ways it’s very much how engineers tell a product, “you’re awesome!” Unfortunately, many people don’t really understand what engineering validation really is.

Ariya Hidayat07/16/14
1602 views
0 replies

Build Agent: Template vs Provisioning

Except for various corner cases, build agents nowadays often run in a virtualized environment. With today’s technologies, a template-based build agent is not difficult to handle.

Maarten Ectors07/16/14
1612 views
0 replies

How to Survive Digital Darwinism a.k.a. Company Failure Acceleration?

Why can’t companies adapt to change? The ideal sector to see disruptive innovation at work is the technology sector. Many billions are spend on bringing products to market that fail.

Angela Ashenden07/16/14
2657 views
0 replies

What's Next for Process Mining?

I [participated] in a panel towards the end of the one-day event focused on the prospects for Process Mining as a discipline and as a technology market; but I was also keen to hear the practitioner stories which made up a large proportion of the event’s schedule.

Mark Morrell07/15/14
919 views
0 replies

Turn company jargon into a knowledge gold mine

Why not turn all that company jargon into a knowledge goldmine and create a wiki that can contain them for every employee to view, add or edit to?

Allen Coin07/15/14
3695 views
0 replies

Data Visualization: A Day in the Life of an NYC Taxi

This visualization displays the data for one random NYC yellow taxi on a single day in 2013. See where it operated, how much money it made, and how busy it was over 24 hours.

Cedric Beust07/15/14
2719 views
0 replies

A Rubik's cube implementation in Three.js

In 2003, I took the time to put together a page that explains how to solve the Rubik’s cube with a set of formulas that are easy to memorize. I finally took the time to update my page and I reimplemented the entire cube animation in Javascript with Three.js.

A. Jesse Jiryu Davis07/15/14
2183 views
0 replies

Let Us Now Praise ResourceWarnings

A couple years ago when I began using Python 3, its new ResourceWarnings infuriated me and I ranted against them. And now, a ResourceWarning has saved my tuchus.

Ian Mitchell07/15/14
1747 views
0 replies

Is agile transformation at risk?

This week I launched agilepatterns.org to help meet the challenge of enterprise scaling. In this posting I set out the rationale for doing so in terms of recent high-profile IT failures, and the need for genuine sponsorship for deep organizational change.

Max Katz07/15/14
2025 views
0 replies

Appery.io Complete Feature Overview [Webinar recording]

This video shows all the major Appery.io features and some smaller features.

Mike Bushong07/14/14
1298 views
0 replies

Leveraging optical transport to create multi-site datacenter services

As connectivity becomes more and more a commodity service and requirements become more demanding, how that connectivity is provided has to evolve.