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
Adi Gaskell03/29/14
584 views
0 replies

Can tools measure influence?

With the rise of blogging and social networking, there is a growing desire for brands to find and engage with influential people in their marketplace. As this desire has grown, so too have the number of tools aiming to provide organizations with a handy list of who those people are, and often just how influential they are.

Michael Brenner03/29/14
260 views
0 replies

Can Video Help To Humanize Your Brand?

I have spoken before about the importance of visual content. And the need to bring and emotion into our content marketing efforts.

Adi Gaskell03/29/14
357 views
0 replies

Does social recruiting harm equal opportunities?

Achieving equality has been an ongoing issue for organizations for the best part of half a decade now. With our organizations increasingly achieving competitive advantage courtesy of the talented people at their disposal, this is increasingly important. Of course, it’s not as simple as all that.

Adi Gaskell03/28/14
330 views
0 replies

Computer says: you’re fired

The British comedy show Little Britain had a running gag featuring a lady (played by David Walliams) working in a bank. She would plug every customer inquiry into her computer, before typically returning the curt response “the computer says no”.

Jive Community03/28/14
737 views
0 replies

Insanely great Reporting and Analytics

Effectively reporting on community metrics is a continued challenge for many Jive customers. We’ve taken new approach of using big data analytics tools that we normally use for IT data, have seen some amazing results.

Adi Gaskell03/28/14
492 views
0 replies

Is intellect the key to trust?

Earlier this month I wrote a couple of pieces about employee engagement, with one in particular highlighting the crucial role trust plays in the whole thing. It focused on a study exploring the way trust forms in the workplace, and in particular the psychological contract that exists between employer and employee.

Jive Community03/28/14
306 views
0 replies

Social Personification of an Entity

Nameless, faceless people are always suspect. Those idiots at the DMV (for those reading who are not US-based, that's the Department of Motor Vehicles), for example. Nameless, faceless people are often idiots who are blamed for bad things.

Adi Gaskell03/28/14
292 views
0 replies

When innovation equals follow the leader

I’ve written a few pieces recently about the value of openness when it comes to innovation. Both on an individual level and an organizational one, there is much to support the notion that sharing your ideas is of great benefit to you, both in making those ideas more valuable, and in reducing the costs of building on the ideas of others.

George Dinwiddie03/28/14
6989 views
1 replies

Definition of Ready

Many time, in the middle of developing a user story, the programmer discovers a question about how it’s intended to work. Or the tester, when looking at the functionality that’s been developed, questions if it’s really supposed to work that way.

#!/usr/bin/env ruby
# Author : Emad Elsaid (https://github.com/blazeeboy)
require 'gosu'
include Gosu
DIMENSION, SPLITS, COLOR = 200, 50, Color::GREEN
# credits to: http://en.wikipedia.org/wiki/Maze_generation_algorithm
class GameWindow < Window
  def initialize
    super DIMENSION, DIMENSION, false, 1000
    self.caption = "Maze"
  end
  def draw
    complexity, density = 0.75, 0.75
    shape = [(SPLITS / 2) * 2 , (SPLITS / 2) * 2 ] # Only odd shapes
    # Adjust complexity and density relative to maze size
    complexity = (complexity * (5 * (shape[0] + shape[1])))
    density    = (density * (shape[0] / 2 * shape[1] / 2))
    z = Array.new(shape[0]){ Array.new(shape[1], 0) } # Build actual maze
    # Fill borders
    z[0] = z[-1].fill 1
    z.each { |l| l[0] = l[-1] = 1 }
    for i in 0...density # Make isles
        x, y = rand(shape[1] / 2) * 2, rand(shape[0] / 2) * 2
        z[y][x] = 1
        for j in 0...complexity
            neighbours = []
            neighbours << [y, x - 2] if x > 1
            neighbours << [y, x + 2] if x < shape[1] - 2
            neighbours << [y - 2, x] if y > 1
            neighbours << [y + 2, x] if y < shape[0] - 2
            unless neighbours.empty?
                y_,x_ = neighbours[rand(neighbours.size - 1)]
                if z[y_][x_] == 0
                    z[y_ + (y - y_) / 2][x_ + (x - x_) / 2] = z[y_][x_] = 1
                    x, y = x_, y_
                end
            end
        end
    end
    size = DIMENSION/SPLITS
  	z.each_with_index do |row, x|
        row.each_with_index do |value, y|
            draw_quad x*size, y*size, COLOR,
                      x*size+size, y*size, COLOR,
                      x*size+size, y*size+size, COLOR,
                      x*size, y*size+size, COLOR if value==1
        end
    end
  end
end
GameWindow.new.show
Jive Community03/27/14
451 views
0 replies

Learn How Jive Celebrated Employee Appreciation Day

Do you know why March 7th was significant? Friday, March 7th was Employee Appreciation Day! Generally held the first Friday of March, this unofficial holiday first hit the books in 1995 as a chance for all employers in all industries to focus their attention on employee recognition.

Adi Gaskell03/27/14
473 views
0 replies

Can open innovation help to assign value to talent?

We live in a so called talent driven age, where our organizations laud their employees as being a key differential in the marketplace. Yet whilst it has long been possible to assign value to other assets, it has been slightly less easy to do so with the rather less tangible knowledge and skills within the minds of our employees.

Rogier Noort03/27/14
615 views
0 replies

Influencing People Around Us, Spreading #SocBiz

Anybody familiar with this blog knows I have a passion for Social Business. In fact, it’s almost an (un)healthy obsession.

Adi Gaskell03/27/14
342 views
0 replies

Diversity and creativity

Diversity is widely believed to be a good thing in business. Most of the benefits of diversity however come from the diversity of thought that offers organizations fresh insights and perspectives. This is in contrast to the kind of diversity that many organizations focus on, which is typically of the identity based variety.

Jive Community03/27/14
339 views
0 replies

Producteev by Jive Keeps Making Work Better

We love changing how work gets done - straight-up transforming communication and collaboration is at the heart of everything we do. We also know our users are passionate about finding a better way to work overall.

#!/usr/bin/env ruby
# Author : Emad Elsaid (https://github.com/blazeeboy)
require 'gosu'
include Gosu

$dimension = 200
$line_limit = 70

class GameWindow < Window

  def initialize
    super $dimension, $dimension, false
    self.caption = "Drawing board"
  	@points = []
  end

  def update
    @points << [ mouse_x, mouse_y ]
    @points.shift if @points.size > $line_limit
  end

  def draw
  	return if @points.empty?
	@points.inject(@points[0]) do |last, point|
		draw_line	last[0],last[1], Color::GREEN,
					point[0],point[1], Color::GREEN
		point
	end
  end
  
end
GameWindow.new.show
Paul Andrews03/26/14
416 views
0 replies

5 quick copy fixes to improve rankings and conversion

If you’ve just finished creating a product you’ve poured your soul into, the next thing you’ll need to focus on is the copy for the landing page.

Thomas Mauch03/26/14
2435 views
0 replies

Key Collections powered by Java 8 Lambdas

All the functionality offered in a declarative and orthogonal way makes the key collections as versatile as a Swiss army knife. The only drawback was the clumsy syntax needed to specify key mappings or constraints. This limitation is now gone thanks to Java 8 Lambdas.

Scott Westfall03/26/14
20925 views
2 replies

Whatever Happened to Reuse?

If we’re doing things correctly, almost everything we write should make the next release or next project easier. Effective reuse taps into the passion developers feel for great code, leading to greater creativity and productivity. Besides, how many Foobulators does one company need, anyway?

Dave Fecak03/26/14
3656 views
0 replies

Why Hire Older Engineers

As someone who has been around programmers (and ran a Java Users Group) for about 15 years, I often guide senior technologists in marketing their skills. I generally advise my clients on employing some senior level engineers who are strong coders but will also serve a secondary purpose of attracting other less experienced hires.