HTML5 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
Paul Hammant07/10/14
3966 views
0 replies

Browsing QML instead of HTML

HTML's a mess, I think. A SAX form handing off to a YACC form that can be escaped within the former. CSS has turned out to be a whole PhD subject on its own. What if we could start over? What would that look like?

Peter Pilgrim07/10/14
2949 views
1 replies

Is TDD Dead Or Alive?

This blog post is for those of you who are unaware that there is a major debate in contemporary software development happening now, today. People have been wondering about the value of Test-Driven Development (TDD) for a long while

jb j07/10/14
2241 views
0 replies

How to build a fixed menu in 3 easy steps

Fixed menus are a definitive web design trend of 2014. They look good, and they are also super useful for visitors. Today, I’m showing you how you can create a lightweight, functional and beautiful fixed menu for your website or WordPress blog.

Erich Styger07/10/14
1134 views
0 replies

Step-by-Step: Updating OSBDM/OSJTAG Debug Firmware

While new Freescale boards come with the OpenSDA debug firmware, I still students using boards with the OSBDM/OSJTAG.

Mark Needham07/10/14
1753 views
0 replies

R/plyr: ddply – Error in vector(type, length) : vector: cannot make a vector of mode ‘closure’.

In my continued playing around with plyr’s ddply function I was trying to group a data frame by one of its columns and return a count of the number of rows with specific values and ran into a strange (to me) error message.

Mark Needham07/10/14
2140 views
0 replies

R/plyr: ddply – Error in vector(type, length) : vector: cannot make a vector of mode ‘closure’.

In my continued playing around with plyr’s ddply function I was trying to group a data frame by one of its columns and return a count of the number of rows with specific values and ran into a strange (to me) error message.

Johanna Rothman07/09/14
1082 views
0 replies

Pragmatic Manager Posted: Standup or Handoff

If you are near the Boston area, this Thursday, July 10, and want to see some sparks fly—or at least engage in lively debate—come to the Agile New England meeting July 10.

Kin Lane07/09/14
1035 views
0 replies

Nothing Happens Until I Write It Down

How much of history do we retain from written accounts? If we don’t write history down, it doesn't happen—now we generate reality partially through online publishing.

Andreas Kollegger07/09/14
1159 views
0 replies

From the Neo4j Community: Best of June 2014

The Neo4j community once again posted tons graph-tastic stuff this past month from awesome articles to great GraphGists. Here are a few of our favorites from the Neo4j community in June:

Greg Duncan07/09/14
513 views
0 replies

Sign up for the "Windows Developer Program for IoT"

"Build a smart coffee mug, build a talking bear, build a robot, or build something else entirely." So I guess we'll see...

static void ExtractInlineAttachments()
  {
        MapiMessage message = MapiMessage.fromFile("Test.msg");
    MapiAttachmentCollection attachments = message.getAttachments();
    for (Object untypedAttachment : attachments)
    {
          MapiAttachment attachment = (MapiAttachment) untypedAttachment;
          if(IsAttachmentInline(attachment))
          {
                try
                {
                      SaveAttachment(attachment, UUID.randomUUID().toString());
                }
                catch (IOException | FileNotFoundException e)
                {
                      // TODO Auto-generated catch block
                          e.printStackTrace();
                    }
              }
        }
  }
  static boolean IsAttachmentInline(MapiAttachment attachment)
  {
        MapiObjectProperty objectData = attachment.getObjectData();
        if (objectData == null)
              return false;

        for (Object prop : attachment.getObjectData().getProperties().getValues())
        {
              MapiProperty property = (MapiProperty)prop;
              if ("\u0003ObjInfo".equals(property.getName()))
              {
                    byte[] data = property.getData();
                    int odtPersist1 = data[1] << 8 | data[0];
                    return (odtPersist1 & 0x40) == 0;
              }
        }
        return false;
  }
  static void SaveAttachment(MapiAttachment attachment, String fileName) throws IOException, FileNotFoundException
  {
        for (Object prop : attachment.getObjectData().getProperties().getValues())
        {
              MapiProperty property = (MapiProperty)prop;
              if ("Package".equals(property.getName()))
          {
                FileOutputStream fs;
                try
                {
                      fs = new FileOutputStream(fileName);
                      fs.write(property.getData(), 0, property.getData().length);
                }
                catch (java.io.IOException e)
                {
                      // TODO Auto-generated catch block
                          e.printStackTrace();
                    }
              }
        }
  }
Alec Noller07/09/14
5314 views
0 replies

Dev of the Week: James Betteley

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 James Betteley, London-based build and release engineer, rugby player, and cyclist.

Alec Noller07/09/14
7989 views
0 replies

The Best of DZone: July 1 - 8

If you missed anything on DZone this week, now's your chance to catch up! This week's best include dynamic CSS classes with SASS, deploying a RabbitMQ cluster on Google Compute Engine, why you should stop unit testing database code, what makes a good programmer, and more.

Lorna Mitchell07/09/14
3098 views
0 replies

View Only Headers with Curl

When working with curl, it can give lots of excellent and detailed information, but sometimes it is too much! Today I'm fiddling with the caching headers on a client's application, so I'm only interested in seeing the headers and not the body of the response.

Graeme Bodys07/09/14
2212 views
0 replies

Transparency

What I am going to say is radical – this will put you outside your comfort zone and challenge your thinking. I will share the how, the why and the benefits.

Mike Bushong07/09/14
1517 views
0 replies

Is the Enterprise Datacenter a Dying Breed?

There is no question that many of our applications will move to the cloud. Pure economics will drive that. But at the same time there will continue to be resistance for a long time to come to move certain applications and data into the cloud.

Alexander Beletsky07/09/14
990 views
0 replies

Lessons Learned Working on a Startup

One of the most significant books on startups, defines startup as temporary organization aims to find sustainable business idea. It’s not about coding, testing or anything related to development. It’s all about the search.

John Sonmez07/08/14
2485 views
5 replies

Do Software Developers Really Need Degrees?

Just because you have a college degree doesn’t mean you have learned anything. That is the main problem I have with most traditional education programs today. School has become much more about getting a degree—a piece of paper—than it has about actually learning something of value.

Abby Fichtner07/08/14
4153 views
0 replies

Why "Hacker?"

As a self-taught programmer, the most inspirational book for me in my early years, what really made me want to be a coder and never look back, was Steven Levy’s Hackers: Heroes of the Computer Revolution.

Jens Schauder07/08/14
5137 views
1 replies

Scaling Agile Beyond Your Project- What Can We Do?

But for me as a developer there seems to be a wall around our team. Behind this wall the management dragons roam. Sometimes balls of flame fly over the wall in our direction, setting our little project on fire, by dictating rules that just don’t make sense, and we can do nothing but putting out the flames, or can we?