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
Gil Zilberfeld10/31/14
231 views
0 replies

"The New Agile" Slides

I had a great time presenting at the Agile Practitioners meet-up. Good feedback, and felt like a keynote. Here are the slides.

Johanna Rothman10/31/14
1343 views
0 replies

Is Your Culture Working the Way You Think it Is?

One day, the Big Bosses, the CEO and the VP Engineering spoke at an all-hands meeting. “You are empowered,” they said. They had a vision. They just knew what the future would hold. I managed to keep my big mouth shut.

Lorna Mitchell10/31/14
122 views
0 replies

Announcing the Git Workbook

I'm very pleasedtitle_page to announce the immediate availability of my new book Git Workbook, costing $20 from LeanPub. This is a book that you "do" rather than "read"; it's a series of chapters (30 ish so far) each covering one specific git skill.

Ayende Rahien10/30/14
4518 views
0 replies

Modeling Exercise: The Grocery Store's Checkout Model

The grocery store checkout model exercise deals with the following scenario. You have a customer that is scanning products in a self-checkout lane, and you need to process the order. The end result might be a Git repository that allows you to see the full approach that was used and how it changed over time. Ideally, you should see a lot of churn in the beginning, but then you’ll have a lot less work to do as your architecture settles down.

Mike Bushong10/30/14
3984 views
0 replies

Outcome bias and the psychology that prevents sustained success

Ultimately, anyone in the tech space is going to have to make a number of product and market decisions. But make sure you apply the same logic to your personal career decisions as well. It is easy to celebrate or lament a particular decision based on the outcome. But understand that the best you can ever do is make the best possible decision based on the information you have at the time.

Allan Kelly10/30/14
204 views
0 replies

#NoProjects / #BeyondProjects - Agile Tour & Lean Kanban UK conference

The next few weeks sees me delivering my #NoProjects/#BeyondProjects presentation at two London conference - Agile Tour London (Friday this week) and Lean Kanban UK (3 & 4 November).

public class ThreadProc implements Runnable {

	boolean isRunning = true;
	Workbook testWorkbook;
	Random r = new Random();

	public ThreadProc(Workbook workbook)
	{
		this.testWorkbook = workbook;
	}

	public int randomNext(int Low, int High)
	{
		int R = r.nextInt(High-Low) + Low;
		return R;
	}

	public void kill()
	{
		this.isRunning = false;
	}

    public void run(){

    	while(this.isRunning)
    	{
            int row = randomNext(0, 100);
            int col = randomNext(0, 10);

            String s = testWorkbook.getWorksheets().get(0).getCells().get(row, col).getStringValue();

            if (s.equals("R" + row + "C" + col)!=true)
            {
                System.out.println("This message box will show up when cells read values are incorrect.");
            }
    	}
    }
  }


//........MainActivity.java........
//.................................
import java.io.File;
import java.util.Random;

import android.app.Activity;
import android.os.Bundle;
import android.os.Environment;
import android.view.Menu;

import com.aspose.cells.CellsHelper;
import com.aspose.cells.IWarningCallback;
import com.aspose.cells.WarningInfo;
import com.aspose.cells.WarningType;
import com.aspose.cells.Workbook;

public class MainActivity extends Activity {

@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
try{
    Workbook testWorkbook = new Workbook();
    testWorkbook.getWorksheets().clear();
    testWorkbook.getWorksheets().add("Sheet1");

    for (int row = 0; row < 100; row++)
        for (int col = 0; col < 10; col++)
            testWorkbook.getWorksheets().get(0).getCells().get(row, col).setValue("R" + row + "C" + col);

    //Commenting this line will show a pop-up message
    testWorkbook.getWorksheets().get(0).getCells().setMultiThreadReading(true);

    ThreadProc tp = new ThreadProc(testWorkbook);

    Thread myThread1 = new Thread(tp);
    myThread1.start();

    Thread myThread2 = new Thread(tp);
    myThread2.start();

    Thread.currentThread().sleep(5*1000);
    tp.kill();
}
		catch (Exception e)
		{
			e.printStackTrace();
		}
	}

.........

}

John Walter10/29/14
5309 views
0 replies

Dev of the Week: Michael Hunger

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 talking to Michael Hunger, Neo4j Developer Advocate and author of our upcoming Neo4j Refcard.

Troy Miles10/29/14
1217 views
0 replies

CodePen, AngularJS, and Jasmine!

Online Web editors, like JSbin, plnkr, and CodePen, are awesome. They allow you to easily work on an idea without all of the muss and fuss of having to spin up a server. You can also share the idea with friends or the entire Internet easily.

John Walter10/29/14
6579 views
0 replies

The Best of DZone: Oct. 22 - Oct. 29

If you missed anything on DZone this week, now's your chance to catch up! This week's best include navigating the DSL Jungle, a look at Google Analytics, a tutorial for updating your legacy code, and more.

Kevin Daly10/29/14
1207 views
0 replies

Don’t Expect Female Candidates to “Geek Out” With You When You Are Interviewing Them

Why are there not more women in software development? What can we do to improve this?

Illya Pavlichenko10/28/14
293 views
1 replies

Perfection Game + SSKML Retrospective

This article describes in detailes how to conduct a Retrospective created by combining two well-known formats "Perfection Game" and "Stop/Start/Keep/More/Less". Lots of images precise facilitation instructions will help you to understand how to use it during your next Sprint Retrospective.

Rob J Hyndman10/28/14
2079 views
0 replies

HTS with Regressors

The hts pack­age for R allows for fore­cast­ing hier­ar­chi­cal and grouped time series data. The idea is to gen­er­ate fore­casts for all series at all lev­els of aggre­ga­tion with­out impos­ing the aggre­ga­tion con­straints, and then to rec­on­cile the fore­casts so they sat­isfy the aggre­ga­tion con­straints.

Ayende Rahien10/28/14
3050 views
2 replies

Career Planning: Where do old devs go to?

What doesn’t make sense is the ratio that I’m seeing. Where are the people who have been doing software development for decades?



    
    Tags:


    
    Tags:
private List<Integer> getNeighbours(int num,int xsize,int ysize){
	List<Integer> neighbours = new ArrayList<Integer>();
	int max=xsize*ysize;
	int quo=num%xsize;
			
	int rowEnd = num+quo==num?num:(num+(xsize-quo));//works fine with most of the cases.		
	int rowBegin = rowEnd-xsize+1;
	int prevRowEnd = rowEnd-xsize<=0?rowEnd:rowEnd-xsize;
	int prevRowBegin = prevRowEnd-xsize+1;
	int nextRowEnd = rowEnd+xsize<=max?rowEnd+xsize:max;
	int nextRowBegin = nextRowEnd-xsize+1;		
			
	if(num-xsize-1>=prevRowBegin && num-xsize-1<prevRowEnd)    //North_West
		neighbours.add(num-xsize-1);
	if(num-xsize>0)             //North
		neighbours.add(num-xsize);			
	if(num-xsize+1>prevRowBegin && num-xsize+1<=prevRowEnd)             //North_East
		neighbours.add(num-xsize+1);
	if(num-1>=rowBegin)            //West
		neighbours.add(num-1);
	if(num+1<=rowEnd)               //East	
		neighbours.add(num+1);
	if(num+xsize-1>=nextRowBegin && num+xsize-1<nextRowEnd)        //South_West
		neighbours.add(num+xsize-1);
	if(num+xsize<=max)            //South
		neighbours.add(num+xsize);
	if(num+xsize+1>nextRowBegin && num+xsize+1<=nextRowEnd)     //South_East
		neighbours.add(num+xsize+1);
				
	return neighbours;
}
Arthur Charpentier10/27/14
2301 views
0 replies

Removing Uncited References in a Tex File (with R)

Usually, once you have revised the paper, some references were added, others were dropped. But you need to spend some time to check that all references are actually mentioned in the paper. I wanted to work on that manually this week-end, but @3wen suggested to write a simple R function to scan the tex f file (as well as the aux file actually) to remove uncited references.

Antonio Santiago10/26/14
2903 views
0 replies

7 reasons to use Yeoman's angular-fullstack generator

For my next project and, after looking for candidates and reading some hundreds of lines of documentation, I finally choose to work with the so called MEAN stack: mongodb, express, angular and node.

David Gelperin10/26/14
5267 views
1 replies

Prudent Agile

Today's Agile is reckless. Consider a prudent alternative.