SDN Focus 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
Mike Bushong06/17/14
3453 views
0 replies

IT resellers: Disruptive or Disrupted?

When good enough becomes better than enough, the key purchasing criteria shift from performance and features to price and convenience. This is a huge part of why there is so much energy around merchant silicon and white box.

Mike Bushong06/17/14
1129 views
0 replies

It Infrastructure: -able vs. -ed

The point here is that the balance for your organization ought to reflect your actual practices. Whether you consider past practices or anticipated practices is an interesting thought exercise, but you should be considering something.

Dennis Doomen06/16/14
1075 views
0 replies

The Staring Game AKA The Art of Social Intelligence

So here I am in New York, all alone and looking for something fun to do during a rainy day preceding QCon New York. The Empire State Building was covered in clouds so what can you do?

#!/usr/bin/env ruby
# Author : Emad Elsaid (https://github.com/blazeeboy)
require 'open-uri' # we'll need to download image with that
require 'ruby_reddit_api' # gem install ruby_reddit_api

# method will take imgur url and 
# filename to save image to it
def download_imgur( url, filename )
  image = open( "#{url}.jpg" ).read
  File.write("#{filename}.jpg", image)
end

# make me a reddit client please
r = Reddit::Api.new

# browse AWW subreddit
# and download images if their url
# is referencing an imgur link
posts = r.browse("aww")
posts.each.with_index(1) do |r, i|
  puts "Downloading #{i}/#{posts.size}"
  download_imgur r.url, r.id if r.url.include? 'imgur'
end
Andy Hawthorne06/16/14
3842 views
0 replies

Coding Can Make You Fat

Writing code for a living can make you fat. That’s because coders work long hours behind a computer and don’t have much time for exercise. Here’s what you can do about it.

Benjamin Ball06/16/14
4376 views
0 replies

DZone Research Cloud News Update (June 16)

This research update includes Docker support for Stackato and Google Cloud, lower prices for Clever Cloud, improved performance for cloudControl from hardware improvements, Chef 10 and data bags for Engine Yard, open source HTTP API toolchain from Heroku, Jelastic V2.2 with Ruby support, and more.

Bob Hartman06/16/14
2792 views
0 replies

Org Structure, Software Architecture, and Cross-functional Teams

Your organizational structure drives a particular software architecture. And your software architecture drives a particular organizational structure. People who work closely together and communicate frequently will create software that reflects this and vice versa.

Lukas Krecan06/16/14
646 views
0 replies

Converting ListenableFutures to CompletableFutures and back

How to convert Spring 4 ListenableFuture to Java 8 CompletableFuture and back

Biju Kunjummen06/16/14
4253 views
0 replies

Thymeleaf: fragments and angularjs router partial views

One more of the many cool features of thymeleaf is the ability to render fragments of templates - I have found this to be an especially useful feature to use with AngularJs.

Mike Bushong06/16/14
2446 views
0 replies

10 SDN Startups Value at Over $100M

There are now 10 software defined networking startups with valuations of over $100 million. With this in mind, it’s clear the industry is set for some definite change.

Jean-baptiste Rieu06/16/14
4901 views
2 replies

Unit Testing Checklist: Keep Your Tests Useful and Avoid Big Mistakes

Why write unit tests? They validate current and future implementations. They measure code quality. They force you to write testable, loosely coupled code. They’re cheaper than manual regression testing. They build confidence in your code. Use this checklist to be sure your tests are really useful and to the point.

/ / MuSQL
$Database = new PDO ("mysql: host = $ host; dbname = $Databasename", $username, $password); 
/ / PostgreSQL
$Database = new PDO ("pgsql: host = $ host; dbname = $Databasename", $username, $password);
/ / MS SQL
$Database = new PDO ("mssql: host = $ host; dbname = $Databasename", $username, $password); 
/ / SQLite
$Database = new PDO ("sqlite: my / database / path / database.db");
This is a small introduction to PDO extension for beginners Read the full article.
int fibonaci(int n){
    
    int i;float tmp;
    
    //x^2 - x - 1 =0
    float x1 = ( 1 + sqrt(5) ) / 2;
    float x2 = (1 - sqrt(5) ) / 2;  
    
    for(i=0;i<n;i++){
               
        tmp = (pow(x1,i) - pow(x2,i)) / sqrt(5);
        printf("%d ",(int)floor(tmp)); //pembulatan kebawah         
    }
    
    printf("\n");
}
Mike Cottmeyer06/13/14
5626 views
3 replies

We Should Be Held Accountable

When I speak to people (including Agile coaches) from other companies, I tend to see and hear a lot of interesting perspectives. Many buy into the idea of Agile being this cultural shift with everyone sitting around a campfire singing Kumbaya and feeling all happy.

Lorna Mitchell06/13/14
3009 views
0 replies

What Got You Involved in Open Source?

I did a very unscientific twtpoll recently regarding what brought each of us into open source. Plenty of people took the time to vote or retweet, so I thought I'd loop back around and let you know how it looked overall when the poll closed.

Whitney Baker06/13/14
4634 views
0 replies

Agile Is The New Black

"It seems that agile ideas such as pair programming, lack of code ownership are neither new nor revolutionary. Had we only forgotten about them? At what point did we decide to isolate developers in cubicles or tie their salary to the lines of code produced?"

Mike Bushong06/13/14
3121 views
0 replies

The Five Dysfunctions of a Network

“The Five Dysfunctions of a Team” by Patrick Lencioni outlines 5 critical failures of teams, key areas for any leader to address. While a network is not a team, it may have just as many dysfunctions that impact its ability to provide the service it is created for.

Venkatt Guhesan06/13/14
4855 views
0 replies

Getting started with vertx, an alternative to node.js

The VertX solution is built upon (and requires) a JDK/JRE under the skin. But then because Java supports other languages under its skin, you can leverage the benefits of languages such as JavaScript, CoffeeScript, Ruby, Python, Groovy or Java.

Phil Whelan06/13/14
863 views
0 replies

The Status Quo is Killing Innovation

I listened to the recording of Michael Coté's keynote on the second day of DevOpsDays Austin and I felt like a few of my questions have been answered with respect to DevOps and PaaS. Bottom line: while change is happening, it seems to be moving at slower pace than expected.

Raymond Camden06/13/14
4570 views
0 replies

Browser slowdown? SVN failing? Read this.

For a few months now, I've experienced an odd issue with Chrome. I'd go to a URL and get nothing but a white screen while something tried to load.