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
Tinu Awopetu07/27/09
32449 views
3 replies

NetBeans IDE 6.7.1 with JavaFX Now Available for Download!

The NetBeans Team is pleased to announce the release of NetBeans IDE 6.7.1, which supports the latest JavaFX SDK. Download NetBeans 6.7.1 (A JavaFX-only download bundle is also available.) NetBeans IDE 6.7.1 is an update to NetBeans IDE 6.7 and includes the...

Rick Ross02/14/08
12581 views
16 replies

Welcome to DZone's new IndicZone community for Indian IT Pros

Let me welcome all of you to the new DZone community for one of the most important and fastest growing groups in the worldwide IT scene: Indian developers and IT professionals. No matter where you look, if something interesting is happening on the IT and...

Christopher Taylor04/16/14
205 views
0 replies

Create marketing that is trusted, remarkable, unmistakable and essential

We’re months past the winter holidays and sellers have a great chance to think about what we’ve learned, now that the dust has settled. Each holiday shopping season is an intense, focused study in what motivates customers to buy and brings many opportunities for improvement.

Adi Gaskell04/16/14
85 views
0 replies

Inside out innovation at Telus

Open innovation is an increasingly well known concept, as organizations seek to get more out of the talent at their disposal, whether that talent is officially theirs or not. Obviously the most well known kind of open innovation is the outside in variety, whereby organizations seek to bring in knowledge and ideas from outside and apply it to problems or challenges they’re facing. Crowdsourcing is the embodiment of this.

Jive Community04/16/14
106 views
0 replies

Can You Be Both Social and Secure?

As you may have seen in my post From Google to Gaga: The Top 9 Takeaways from SXSW 2014, the biggest breakthrough in tech this year wasn’t a new startup. It was the subject of privacy.

Adi Gaskell04/16/14
210 views
0 replies

What makes a Facebook image go viral?

Whilst there are considerable doubts over the reliability of guides on creating viral content, there are no shortage of attempts to predict both how content spreads, and thus the kind of content that will do so. A new study published recently by Stanford academics has set out to explore the viral nature of photos.

Peter Verhas04/16/14
1811 views
1 replies

We hate/love lambda

I write nice and readable code but I continually experience that others write ugly, unreadable and wrong code. And I expect lambda will make it worse.

Mike Bushong04/16/14
1430 views
0 replies

Leadership essentials: Get on the green, then go for the hole

The sport of golf is a mathematician's dream. Why?

//Sample Code for Adding and Retrieving Attachments from Calendar Items

Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("GMT"));
calendar.set(2012, Calendar.NOVEMBER, 1, 0, 0, 0);
Date startDate = calendar.getTime();
calendar.set(2012, Calendar.DECEMBER, 1);
Date endDate = calendar.getTime();

MailAddressCollection attendees = new MailAddressCollection();
attendees.add(new MailAddress("attendee_address@domain.com", "Attendee"));
WeeklyRecurrencePattern expected = new WeeklyRecurrencePattern(3);

Appointment app = new Appointment("Appointment Location", "Appointment Summary", "Appointment Description",
									startDate, endDate,
									new MailAddress("organizer_address@domain.com", "Organizer"), attendees, expected);

//Attach a file from disc to this appointment
File file = new File("OutputXLS.xls");
FileInputStream fis = new FileInputStream(file);

Attachment att = new Attachment(fis, file.getName());
app.getAttachments().add(att);
fis.close();
String savedFile = "appWithAttachments.ics";
app.save(savedFile, AppointmentSaveFormat.Ics);

Appointment app2 = Appointment.load(savedFile);
System.out.println("Total Attachments: "  + app2.getAttachments().size());
for (int i=0; i< app2.getAttachments().size();i++)
{
	att = app2.getAttachments().get(i);
	System.out.println(att.getName());

        //Save the attachment to disc
        att.save(att.getName());
}
 
private void btnRun_Click(object sender, EventArgs e)
        {
            //create PPT document
            Presentation presentation = new Presentation();

            //load PPT file from disk
            presentation.LoadFromFile(@"..\..\..\..\..\..\Data\sample2.pptx");

            //save PPT document to images
            for (int i = 0; i < presentation.Slides.Count; i++)
            {
                String fileName = String.Format("result-img-{0}.png", i);
                Image image = presentation.Slides[i].SaveAsImage();
                image.Save(fileName, System.Drawing.Imaging.ImageFormat.Png);
                System.Diagnostics.Process.Start(fileName);
            }

        }
Hearsay Social04/15/14
613 views
0 replies

Three social business takeaways from the SIFMA Compliance and Legal Society Annual Seminar

Last week the compliance and legal community gathered in sunny Orlando for the SIFMA Compliance and Legal Society’s 46th Annual Seminar. At the seminar, compliance and legal professionals come together to discuss the significant challenges faced by the financial services community and to explore ways to address ongoing regulatory changes.

Adi Gaskell04/15/14
181 views
0 replies

The potential of crowdsourcing to improve healthcare

Last week I looked at a number of sites that are aiming to directly involve patients in the improvement of healthcare services. What arguably began with WellSpringboard winning the PCORI prize has since blossomed into a niche industry, with a couple of sites emerging to offer patients more of a say in how to improve their healthcare.

Hearsay Social04/15/14
463 views
0 replies

Quality content rules the Facebook News Feed

With over 1 billion users worldwide, Facebook is a key social platform for financial services professionals to reach out and connect with customers. Every day, agents and advisors use their Facebook Business Pages to share content, post updates on their business, and provide useful insights into what is happening in the market.

Adi Gaskell04/15/14
171 views
0 replies

Is coherence the key to good leadership?

The success of our organizations at hiring the bets managers has been a constant source of consternation on the blog for sometime now. Only last month I wrote about the frankly shocking data returned by the recent Gallup survey suggesting that over 80% of managers are not up to the job.

Ricci Gian Maria04/15/14
2188 views
0 replies

The advantage of Scrum in evaluating "new stuff"

In a rapid evolving industry, like software development, using Scrum is a really good solution to constantly verify new technologies in your team, with little risks, but with real world feedback at the same time.

Johanna Rothman04/15/14
1594 views
0 replies

Design Your Agile Project, Part 3

What do you do for geographically distributed teams, if you want to move to agile? First question: does the team want to move to agile? Or, does the management want to move to agile? I am serious.

Paul Andrews04/14/14
148 views
0 replies

5 Simple Adjustments That Will Sky Rocket Your Productivity

We all want to accomplish more with less work. Complexity, although great for innovations and critical thinking, can also be harmful for everyday exercises.

@ Better_working04/14/14
698 views
0 replies

Aligning People, Comms and Technology for Effective Digital Workplace Transformation

Much has been said recently about the importance of the CIO and CMO relationship. Whether the focus is on a shifting balance of power or on the need for closer cooperation, it’s clear these two functions are key to the digital transformation of an organisation’s ability to identify and respond to customer demand.

Adi Gaskell04/14/14
240 views
0 replies

Bringing out the compassion in your social business

I’ve written a few times recently about the value of conscientiousness to a social business, and how caring for your peers encourages collaborative behaviours. A new study into workplace compassion highlights the value it can bring, both to employees and the organizations they work for.

Jive Community04/14/14
221 views
0 replies

Shining a Light on JiveX 7

Many have you been asking When will the Jive Community upgrade to version 7? Well, I'm happy to announce that day has come.