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
Christopher Taylor07/18/14
223 views
0 replies

The customer experience bar is higher than you realize

Customer experience is going through rapid change. At the Forrester East Coast Customer Experience Forum in New York, the hot topic—and even the title of the conference—was “Why Good Enough Is Not Good Enough.”

Adi Gaskell07/18/14
216 views
0 replies

Ericsson aims to Get your City Networked

One of the more interesting trends of recent times has been the growth in so called smarter cities. It’s been a topic I’ve covered a few times on the blog, as there have been a number of projects that have sought insights from the crowd as to what a smart city should be like.

Adi Gaskell07/17/14
558 views
0 replies

The two faces of executive social media usage

I wrote a while back about some of the sillier aspects of work life, and in particular the continual refusal to adopt things that no end of academic and professional evidence show are worthwhile. Things like flexible working, getting enough sleep and so on.

Highq Collaborate07/17/14
296 views
0 replies

HighQ Forum, London 2014 – How Allen & Overy Collaborate

Caroline Ferguson, Digital Manager at Allen & Overy spoke at the HighQ Forum, London 2014, giving an inspiring case study about her involvement with HighQ Collaborate at the firm and how it has helped to transform business processes, boost transactional efficiency, engage with clients and promote internal collaboration.

Adi Gaskell07/17/14
338 views
0 replies

Are you a pushover or too pushy at work?

It’s quite well known that we are often the worst judges of our own character, which is one of the prime reasons why social performance reviews are so very useful, as they give you the opportunity to collect feedback from a wide range of sources.

Shany Dembak07/17/14
216 views
0 replies

4 Free Content Marketing Resources You Should Know and Love

Content marketing is simple, but it can take a lot of time and effort without the right tools and resources. If you have the right content creation and maintenance tools, though, and a little bit of help along the way, it’s a lot easier than you might think.

Kosta Stojanovski07/17/14
234 views
0 replies

Eclipse's BIRT: Update from 2.6.2 (OSGI) to 4.3.1 (POJO)

This article presents the updating BIRT used as runtime version on a Java applicaton from 2.6.2 as OSGI platform to 4.3.1 bound as library like POJO.

Adi Gaskell07/16/14
461 views
0 replies

When a crisis brings out the Machiavellian in us

I’ve written a few times about the role of a crisis in pulling people together within an organization and prompting a fresh course of action.

Christopher Taylor07/16/14
529 views
0 replies

You can’t logic someone out of something they weren’t logic’d into

One of my favorite lines from sales training (that I also know to be true) is that buyers find logical reasons to support emotional decisions. We humans are funny that way.

Adi Gaskell07/16/14
566 views
0 replies

Competitive intelligence via the crowd

Last week some friends and I were having a chat about business. One of them had been approached by a rival company with the news that they were up for sale, and he wasn’t sure what to think about it. On the surface, they seemed like a good company, but after we’d done a bit of digging around, the prognosis didn’t appear quite so rosy (iffy looking balance sheet).

Highq Collaborate07/16/14
350 views
0 replies

Enterprise collaboration news: June 2014 round up

A roundup of social business news from HighQ

Adi Gaskell07/16/14
329 views
0 replies

uMotif bringing the quantified self to the NHS

The app marketplaces are awash with tools to allow us to quantify various health related aspects of our lives. Whether it’s monitoring our sleep, tracking our fitness regimes or keeping tabs on our diet, there have never been more apps available to help us do so.

//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

Kenneth Peeples07/15/14
3195 views
0 replies

Red Hat JBoss A-MQ and the IoT

See this simple example of how to leverage Red Hat JBoss A-MQ in the Internet of Things (IoT) through the use of Message Queue Telemetry Transport (MQTT) in Android.

Ian Mitchell07/15/14
1755 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.

Jive Community07/15/14
690 views
0 replies

How to write a Community Manager job description

So you've got yourself an online community and need someone to take care of it... Considering the recent wave of Web 2.0 technologies and the advancement of community and forum-type platforms, you think it would be easy to find someone who can head up a community, right?

Adi Gaskell07/15/14
506 views
0 replies

Can the perfect workplace be crowdsourced?

There are many groups currently exploring the modern workplace and how it can be improved to better provide what both employees and employers are looking for. A bunch of Romanian entrepreneurs are taking one of the more interesting approaches towards achieving this however.

Daniela Castrataro07/15/14
242 views
0 replies

Get off to a Good Start – Components of a Good Crowdfunding Campaign 4

After a short break we can continue with another in our series Components of a Good Crowdfunding Campaign. This time we focus on the importance of a getting a good start.

Adi Gaskell07/15/14
260 views
0 replies

It’s not just humans that organizations should get collaborating

It’s fairly well established, or at least becoming more so, that our best works often build on the input of others. Whether that’s collaborating with people internally or tapping into knowledge from external sources via open innovation, it is growing increasingly common for knowledge work to be done collaboratively.

Michael Brenner07/15/14
264 views
0 replies

Content Marketing Objectives And KPIs

Now that I am back to the front line of the challenges we face as marketing professionals, I am going to start answering some of the biggest questions I get asked about marketing in general and content marketing specifically.