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
Vinod Kumaar Ra...09/17/14
553 views
1 replies

Build it like a sports team

Is it easy to get a crash course in football by Pele or Maradona for a week and produce a world cup winning football team? The answer is NO. Then why do lots of people in the corporate world think of hiring scrum trainers & expert developers to train their team for a week and then expect their team to undergo a transformation at a magical scale?

Mike Bushong09/17/14
2319 views
1 replies

Playing politics and self-defeating behavior

If you take an informal survey about the characteristics of dysfunctional organizations, you will probably hear the word politics rise to the top of most peoples’ lists. But what is really behind office politics?

Jeremy Likness09/17/14
3723 views
0 replies

Revisiting AngularJS with TypeScript

TypeScript works very well with AngularJS. The definition files help with exploring the API and ensuring it is used correctly at development time.

Alec Noller09/17/14
11437 views
0 replies

Dev of the Week: Chanwit Kaewkasi

This week we're talking to Chanwit Kaewkasi, Assistant Professor at the Suranaree University of Technology’s School of Computer Engineering in Thailand, co-developer of a series of low-cost Big Data clusters, and featured author in DZone's upcoming 2014 Guide to Big Data.

Gil Zilberfeld09/17/14
4979 views
3 replies

The Code Kidnapper

We’ll get the smart developers, and they can just put their thoughts on paper. Now we’ll take the not-so-smart ones and hand them what the architect has thought of, and they will do the work. And get this, we’ll pay them less, because they just need to type!

Chris Odell09/17/14
2140 views
0 replies

Why I will Always Try And Find A Ready-Built Library

By the time you have developed something and fixed any issues with it, your version is simply not going to be as tested as a ready built component that is used by thousands of people.

Mike Cottmeyer09/17/14
1483 views
1 replies

Acceptance Criteria

Acceptance criteria are an important yet, in my experience, often overlooked or undervalued aspect of the iterative planning process.

Johanna Rothman09/17/14
1554 views
0 replies

Cost, Value & Investment: How Much Will This Project Cost? - Part 1

You need to think about cost, value, and investment, not just cost when you think about about the project portfolio. If you think about cost, you miss the potentially great projects and features.

Mateusz Haligowski09/16/14
5704 views
0 replies

A new way of extracting values in AssertJ collections assertions

The old extracting function in AssertJ utilized reflections and did not allow the arbitrary extractions. The new approach addresses the issues.

Michael Sahota09/15/14
2324 views
1 replies

Stop Agile Initiatives!

I am sick to death of Agile Initiatives because they usually fail. The core problem is that the typical approach used to initiate Agile is inconsistent with Agile goals of empowerment and engagement.

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm 
C:\java-home\jdk1.7.0_21\jre\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms40m
-Xmx1024m
Gil Zilberfeld09/12/14
5257 views
1 replies

The Hidden Cost Of Estimation

“Why would you want a rough estimate, when I can do a more precise one?” And really, if we can do something better, why do it half way? There’s a simple answer, but I’ll give it after the long detailed one.

Rob J Hyndman09/12/14
5966 views
0 replies

Generating quantile forecasts in R

A “quan­tile fore­cast” is a quan­tile of the fore­cast dis­tri­b­u­tion. Still assum­ing nor­mal­ity, we could gen­er­ate the fore­cast quan­tiles from 1% to 99% in R using...

Chen Harel09/11/14
14135 views
0 replies

Java 9: The Ultimate Feature List

All new features, expected features and speculations regarding the upcoming Java 9 release: the Jigsaw project, performance improvements and long awaited APIs

Kai Wähner09/11/14
6973 views
0 replies

Comparison of Alternatives for Stream Processing and Streaming Analytics

The article discusses what stream processing is, how it fits into a big data architecture with Hadoop and a data warehouse (DWH), when stream processing makes sense, and what technologies and products you can choose from. Comparison of open source and proprietary stream processing / streaming analytics alternatives: Apache Storm, Spark, IBM InfoSphere Streams, TIBCO StreamBase, Software AG's Apama, etc.

Chris Odell09/11/14
7215 views
2 replies

The Codesmith

We are at a point in time where people who write software are much like the craftspeople and artisans in times past. Software is not yet something that can be easily manufactured on an assembly line. So are you a codesmith?

//Adding Attachments to a New Email Message

public static void main(String[] args)
{
    // Base folder for reading and writing files
    String strBaseFolder = "D:\\Data\\Aspose\\resources\\";

    //Initialize and Load an existing MSG file by specifying the MessageFormat
    MailMessage email = MailMessage.load(strBaseFolder + "anEmail.msg", MessageFormat.getMsg());

    //Initialize a String variable to get the Email Subject
    String subject = email.getSubject();
    //Append some more information to Subject
    subject = subject + " This text is added to the existing subject";
    //Set the Email Subject
    email.setSubject(subject);

    //Initialize a String variable to get the Email's HTML Body
    String body = email.getHtmlBody();
    //Apppend some more information to the Body variable
    body = body + "<br> This text is added to the existing body";
    //Set the Email Body
    email.setHtmlBody(body);

    //Initialize MailAddressCollection object
    MailAddressCollection contacts = new MailAddressCollection();

    //Retrieve Email's TO list
    contacts = email.getTo();
    //Check if TO list has some values
    if (contacts.size() > 0)
    {
        //Remove the first email address
        contacts.remove(0);
        //Add another email address to collection
        contacts.add("to1@domain.com");
    }
    //Set the collection as Email's TO list
    email.setTo(contacts);

    //Initialize MailAddressCollection
    contacts = new MailAddressCollection();

    //Retrieve Email's CC list
    contacts = email.getCC();
    //Add another email address to collection
    contacts.add("cc2@domain.com");
    //Set the collection as Email's CC list
    email.setCC(contacts);

    //Save the Email message to disk by specifying the MessageFormat
    email.save(strBaseFolder + "message.msg", MailMessageSaveType.getOutlookMessageFormat());
}

//Loading a Message with Load Options

//To load a message with specific load options, Aspose.Email provides the MessageLoadOptions class that can be used as follow:

MesageLoadOptions options = new MesageLoadOptions();
options.PrefferedTextEncoding = Encoding.getEncoding(1252);
options.setMessageFormat(MessageFormat.getMsg());
MailMessage eml = MailMessage.Load("EMAIL_497563\\test3.msg", options);

Michael Crump09/10/14
2929 views
0 replies

How to Run HTML files in your Browser from GitHub

If you have a .html file in a GitHub repository and want to view that page directly, you would typically download or clone the repo to your local hard drive and run it from there. There is an easier way.

Alec Noller09/10/14
10011 views
0 replies

Dev of the Week: Adam Diaz

Every week at DZone, we feature a new developer/blogger 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 Adam Diaz, Hadoop Architect at the Teradata Big Data Center of Excellence and featured author in DZone's upcoming 2014 Guide to Big Data.

Alec Noller09/10/14
11983 views
0 replies

The Best of DZone: September 3 - September 10

If you missed anything on DZone this week, now's your chance to catch up! This week's best include the reasons why Vaadin is a Passat, named parameters in Java, mobile gaming with Haskell and SDL, NoSQL job trends, and more.