Java

A New Source for MEAN Stack Resources

Java Lobby Announcements - Mon, 2014-11-10 07:30
One of the most useful aspects of MongoDB is the MEAN stack - a JavaScript-only web development stack that consists of MongoDB, Express, AngularJS, and Node.js. It's a great way to get a full web application working with MongoDB (try this for a look at how to get started). Preview Text:  One of the most useful aspects of MongoDB is the MEAN stack...
Categories: Java

Themes/Resource Library Contracts in JSF 2.2/Java EE 7

Java Lobby Announcements - 15 hours 35 min ago
Resource Library Contracts are one of the big ticket features in JSF 2.2. There's actually quite a bit to the feature - it allows for logical organization and packaging of the theme/look-and-feel/template for JSF pages. Beyond enabling better modularity, the feature makes it possible to switch page themes at runtime (much like PrimeFaces, RichFaces, etc did in the past). Huseyin Akdogan explains...
Categories: Java

Adding an (SHA256 signed) SSL certificate

Java Lobby Announcements - 15 hours 36 min ago
I've had to update the SSL certificate quite a few times on jsbin.com in the last 6 months, and I keep a cheatsheet of SSL steps on my machine. So it's about time I publish it somewhere that I can google too! This walkthrough explains how to add an SSL certificate to your server. This is based on using a linux based machine (in my case Ubuntu) and nginx as the server. I registered my SSL...
Categories: Java

Let’s Stream a Map in Java 8 with jOOλ

Java Lobby Announcements - Fri, 2014-10-24 08:00
 wanted to find an easy way to stream a Map in Java 8. Guess what? There isn’t!What I would’ve expected for convenience is the following method: Preview Text:  I wanted to find an easy way to stream a Map in Java 8. Guess what? There isn’t! Legacy Sponsored:  ...
Categories: Java

Java Extension Mechanism Loads All JARs

Java Lobby Announcements - Fri, 2014-10-24 08:00
The Java Extension Mechanism is described in the Java Tutorial as a "standard, scalable way to make custom APIs available to all applications running on the Java platform." As described in Understand Preview Text:  The Java Extension Mechanism is described in the Java Tutorial as a "standard, scalable way to make...
Categories: Java

Partial Commits with Git

Java Lobby Announcements - Fri, 2014-10-24 08:00
Every once in a while I’m working on a feature, only to discover that I need to extend another part of the code first. If I was disciplined, I would create another branch at that point. But I’m not. I end up with both the extended utility class and the actual feature as pending changes. With git it is simple to make two separate commits while ensuring that every commit compiles. Preview...
Categories: Java

Assemble Your Custom Apache Karaf with the Karaf-Maven-Plugin

Java Lobby Announcements - Fri, 2014-10-24 08:00
I was quite happy to find out there is a Maven Plugin with which you can assembly a full Apache Karaf and include your own features/bundles. From time to time I like to test my bundles in a real environment. Because of that the plugin is a great way to save the steps of unzipping a new Karaf, adding my feature and installing it. So the plugin basically serves my laziness. But before the...
Categories: Java

How to Avoid Hash Collisions When Using MySQL’s CRC32 Function

Java Lobby Announcements - Fri, 2014-10-24 08:00
Originally Written by Arunjith Aravindan Preview Text:  Percona Toolkit’s pt-table-checksum performs an online replication consistency check by executing checksum queries on the master, which produces different results on replicas that are inconsistent with the master – and the tool pt-table-sync synchronizes data efficiently between MySQL...
Categories: Java

Legacy Code To Testable Code #2: Extract Method

Java Lobby Announcements - Fri, 2014-10-24 08:00
This post is part of the “Legacy Code to Testable Code” series. In the series we’ll talk about making refactoring steps before writing tests for legacy code, and how they make our life easier.As with renaming, extracting a method helps us understand the code better. If you find it easy to name the method, it makes sense. Otherwise, you just enclosed code that does a lot of things. It can be...
Categories: Java

How Is Google Analytics So Damn Fast?

Java Lobby Announcements - Fri, 2014-10-24 08:00
TL; DR: Google Analytics stores a massive amount of statistical data from web sites across the globe. Retrieving reports quickly from such a large amount of data requires Google to use a custom solution that is easily scalable whenever more data needs to be stored. Preview Text:  TL; DR: Google Analytics stores a massive amount of statistical...
Categories: Java

Why to Use String

Java Lobby Announcements - Fri, 2014-10-24 07:30
Recently I was tutoring juniors during a training session. One of the task was to write a class that can dwarwle maps based on some string key. The result one of the juniors created contained the following method: Preview Text:  Recently I was tutoring juniors during a training session. One of the task was to write a class that can dwarwle maps...
Categories: Java

The DSL Jungle

Java Lobby Announcements - Fri, 2014-10-24 07:30
DSLs are a common thing in the programming world nowadays. Many frameworks and tools decide to build a DSL for their…specific things. Builds tools are the primary candidates, but testing frameworks, web frameworks and whatnot also decide to define a DSL. With these DSLs you define build steps, web routing rules, test acceptance criteria, etc. Preview Text:  ...
Categories: Java

Testers may never be happy

Java Lobby Announcements - Fri, 2014-10-24 07:30
A few months ago, the webinar “Learn Faster: Deploy what you have – Virtualize what you don’t” discussed the dissatisfaction testers had with the completeness of their testing. In a survey run by IBM of 250 senior testers, less than 10% of testers had complete confidence in the software that was released. Preview Text:  I suspect that the...
Categories: Java

Contracts for Agile

Java Lobby Announcements - Fri, 2014-10-24 07:30
Last week I did a presentation to the Agile 4 Agencies meet up group on the topic of “Agile Contracts” - although I believe “Contracts for Agile” might have been a better title. Preview Text:  Last week I did a presentation to the Agile 4 Agencies meet up group on the topic of “Agile Contracts” - although I believe “Contracts for...
Categories: Java

Prepare for Connected Enterprise using REST APIs

Java Lobby Announcements - Fri, 2014-10-24 07:30
We can quote innumerable stats to impress, but there is no need, it is apparent the world is getting more connected. Today’s connectivity will seem primitive in few years as the connectivity extends beyond smartphones, tablets and computers to concepts such as devices implanted in the human body. Preview Text:  A connected enterprise offers...
Categories: Java

Attending the Web Accessibility Day

Java Lobby Announcements - Fri, 2014-10-24 07:30
Originally Written by Shannon KellyOne Day in Maryland Companies around the globe are looking to make their web content accessible for the visually impaired. But they want to do so in the most efficient, knowledge-based way they can, so that they don’t make mistakes and waste needless funds in the process. To do that, they need the right information. Preview Text:  ...
Categories: Java

AngularJS: Different Ways of Using Array Filters

Java Lobby Announcements - Fri, 2014-10-24 07:30
AngularJS provides a filter feature which can be used to format input value or to filter an Array with the given matching input criteria. For example you can use 'date' filter to format a Date value into human readable Date representation like MM-DD-YYYY as {{dob | date}}.On the other hand there are Array filtering feature which is very useful while filtering data from an...
Categories: Java

How the Internet of Things Will Impact Your Employment

Java Lobby Announcements - Fri, 2014-10-24 07:30
It's pretty clear: IoT is the future. If you're working in IoT or plan to be soon, it sounds like you won't have any trouble finding a job - and getting paid, for that matter - but what does this future of employment look like for everybody else?  Preview Text:  It's pretty clear: IoT is the future. If you're working in IoT or plan...
Categories: Java

Parsing a Tab Delimited File Using OpenCSV

Java Lobby Announcements - Fri, 2014-10-24 07:00
I prefer OpenCSV for CSV parsing in Java.  That library also supports parsing of tab delimited files, here's how:Just a quick gist: Preview Text:  I prefer OpenCSV for CSV parsing in Java. That library also supports parsing of tab delimited files, here's how Legacy Sponsored:  ...
Categories: Java

Grouping Sets: Good to Know Feature TIP# 60

Java Lobby Announcements - Fri, 2014-10-24 07:00
Grouping sets is one of the cool feature came in SQL SERVER 2008. Lets understand here with problem and solution. Problem:-  Suppose , We want  an aggregation result in a query with different groups. Firstly we want aggregated result on first column then combination of First & second column then other column combination. So, to resolve this problem a basic traditional way is to...
Categories: Java

Pages

Subscribe to EGJUG aggregator - Java