Could the New Version of Google Glass Be Intended for Your Workplace?

By Aaron Miles Although it has not officially been announced, a recent filing with the Federal Communications Commission has basically confirmed that Google is working on a new version of Google Glass, the innovative/annoying piece of wearable tech that you put on like a pair of glasses.

Source: Social Media Today


Get the All-Theme Pack Now Before It Becomes Recurring (Plus: $150 Off Instantly)

By Brian Gardner

A change is coming to our biggest and best-selling product.

The StudioPress Pro Plus Pack — which gives you immediate, on-demand access to every active theme in the StudioPress library — is about to add a recurring component.

Note that I said about to add. Nothing is changing immediately.

But the change is coming soon (likely at the end of January 2016), which is why we’re letting you know about a special offer happening this week only.

We want you to have every opportunity to lock in the current Pro Plus offer.

Here’s the offer …

For a single investment in Pro Plus today, you get unlimited access to:

  • All current StudioPress themes (there are more than 40 as of today)

  • All future StudioPress themes (several are already in development)

  • All design, security, and functionality updates

  • All current and future third-party themes we add to Pro Plus (there are five currently)

  • Support for all themes
 (we support StudioPress themes, while the third-party developers support their themes)

You get all of this for the lifetime of your account. You never make another payment.

Until this special offer ends on Thursday, December 31, 2015 at 5:00 p.m. Pacific Time — you get $150 off as well.

It’s the largest discount we’ve ever given for Pro Plus.

That’s more than 30 percent off of a deal that already saved you more than $1,000 compared to purchasing everything separately.

Click here to learn more about Pro Plus

(and get $150 off)

And Pro Plus keeps getting more valuable as more themes get added.

What will the recurring element look like?

It will be pretty simple.

Right now, you make one payment and receive everything as long as you maintain your StudioPress account (so, basically, as long as you want it).

Once the recurring component is added, new Pro Plus customers will make one payment to activate their accounts and then make smaller annual payments to maintain access.

Obviously, recurring customers will get to keep any themes they have downloaded and are using, but they will need to make the recurring payment each year to maintain their access to:

  • All existing themes
  • All future themes

  • All updates

  • Support

Again: this change is not happening now. It’s happening at the end of January 2016.

But we wanted to give you a heads up way in advance in case you want to lock in a Pro Plus account before the recurring component comes.

Plus get $150 off when you do. 😉

Click here to learn more about Pro Plus

(and get $150 off)

Grab your Pro Plus account today. The value will never be better. Offer ends at 5:00 p.m. Pacific Time on New Year’s Eve (12/31/15).

About the author

Brian Gardner

Starbucks addict. Sarah McLachlan fan. Maker of Rain.

Founder of StudioPress. CPO and Partner at Rainmaker Digital.

No Sidebar / Twitter / Instagram

The post Get the All-Theme Pack Now Before It Becomes Recurring (Plus: $150 Off Instantly) appeared first on Copyblogger.

Source: Copy Blogger


Prevent click action for div if the border of the div is clicked

By athul777

I’m trying to build a replica of the Simon game with HTML, CSS and Javascript.
The design I have is nowhere near the final state, but I have the basic layout in place:
Picture of what I have so far

Each of the colored buttons (Green, Red, Yellow and Blue) have respective click events and I’m testing them out with console.log statements.

Here is the relevant section from the code:

$(document).ready(function() {
    $('.center-buttons').click(function() {
        console.log("Inner Click!");
    $('#top-left').click(function() {
        console.log('left click.');
    $('#top-right').click(function() {
        console.log('right click.');
    $('#bottom-left').click(function() {
        console.log('bleft click.');
    $('#bottom-right').click(function() {
        console.log('bright click.');
.main-area {
    height: 700px;
    width: 700px;
    border-radius: 50%;
    background-color: ;
    margin: 0px auto;
    padding: 20px;

.wrapper {
    position: relative;
    top: -5px;

.center-buttons {
    height: 370px;
    width: 370px;
    border: 15px solid #444;
    border-radius: 50%;
    background-color: black;
    margin: 0px auto;
    position: relative;
    top: -550px;

#top-row {
    display: flex;

#bottom-row {
    display: flex;

.main-button {
    height: 310px;
    width: 310px;
    border: 20px solid #444;

    background-color: #00994d;
    border-radius: 100% 0 0 0;
    right: 50%;
    margin: 0px 5px 5px 0px;

    background-color: #990000;
    left: 50%;
    border-radius: 0 100% 0 0;
    margin: 0px 0px 5px 5px;

#bottom-left {
    background-color: yellow;
    left: 50%;
    border-radius: 0 0 0 100%;
    margin: 5px 5px 0px 0px;

#bottom-right {
    background-color: #004d99;
    left: 50%;
    border-radius: 0 0 100% 0;
    margin: 5px 0px 0px 5px;
<div class = 'main-area'>
    <div class = 'wrapper'>
        <div id = 'top-row'>
            <div id = 'top-left' class = 'main-button'></div>
            <div id = 'top-right' class = 'main-button'></div>
        <div id = 'bottom-row'>
            <div id = 'bottom-left' class = 'main-button'></div>
            <div id = 'bottom-right' class = 'main-button'></div>

    <div class = 'center-buttons'></div>

In the CSS, each colored button has a thick gray border.

The main question: When the borders of any of the buttons are clicked, is there a way to prevent the click event for the respective button from happening.


Source: Stack Overflow


How to integrate Spring Boot and Resteay

By crisli

Although there are a lot of code example on the internet of integrating Spring Boot/Spring and Resteasy, but most of them are out of data or even don’t work.

I am look at the latest Resteasy document, try to create a instance of SpringBeanProcessorServletAware in my config bean.

public ServletListenerRegistrationBean<ResteasyBootstrap> resteasyBootstrapRegistratio() {
    ServletListenerRegistrationBean<ResteasyBootstrap> registration = new ServletListenerRegistrationBean<>();
    registration.setListener(new ResteasyBootstrap());
    return registration;

public ServletRegistrationBean resteasyServletRegistratio() {
    ServletRegistrationBean registration = new ServletRegistrationBean();
    registration.setServlet(new HttpServletDispatcher());
    return registration;

    public SpringBeanProcessorServletAware springBeanProcessorServletAware() {

        SpringBeanProcessorServletAware springBeanProcessor = new SpringBeanProcessorServletAware();

        return springBeanProcessor;

But it will throw Nullpoint exception. It seems like the servletContext is required to make SpringBeanProcessorServletAware work.

Then I try to inject servletContext. But the bean SpringBeanProcessorServletAware is being created before ServletContextInitializer finished.

How to make some bean created after ServletContextInitializer is finished?
Am I wrong in do the integration between Spring Boot and Resteasy.

Source: Stack Overflow


What Do the Federal Trade Commission's New Guidelines on Native Advertising Mean for Marketers?

By Aaron Miles The Federal Trade Commission recently released two statements on the practice of native advertising. The statements lay out exactly what the FTC considers native advertising to be, and what it would consider to be deceptive use of the relatively new advertising format.

Source: Social Media Today


Join the Copyblogger Team for Our First Content Challenge

By Pamela Wilson

Starting a week from today, the Copyblogger team is doing something we’ve never done before … and we want you to join us.

We’re hosting our first three-week Copyblogger Content Challenge. These brand-new challenges are designed to give you in-depth education around key content marketing topics.

The goal of our challenges is simple:

We help you master each topic — and you put that information directly to use to grow your business.

Challenge #1: Create your cornerstone content

For the January 2016 challenge, we’re teaching you how to create powerful, audience-building cornerstone content for your website.

The three recent articles below will help you understand what cornerstone content is and why it’s important to have it in place on your site.

How much does this in-depth cornerstone content education cost? Nothing. :-)

Join us for the Copyblogger Content Challenge

Why is cornerstone content important?

Website owners use cornerstone content to answer the most important questions their newest prospects have.

Cornerstone content pages are informative, instructive, and they help your prospects understand the crucial information they need to interact with your business.

Once you have your cornerstone content in place on your website, you’ll begin benefitting from better search engine rankings for the terms you target. And cornerstone content builds your authority, too.

Here’s what you get when you join us for the Copyblogger Content Challenge:

  • In-depth instruction on planning, writing, and creating cornerstone content pages
  • Support and encouragement from the Copyblogger team: Sonia Simone, Pamela Wilson, Stefanie Flaxman, and Demian Farnworth
  • Community support from your fellow challenge members in our temporary “pop-up” forum
  • A live educational webinar about cornerstone content — exclusive to our challenge participants

As we mentioned above, there’s absolutely no cost to join us for this challenge. We only ask that you commit to devoting a little time each day to working through the materials.

Our promise is to keep things fun and easy, so you make fast progress and enjoy the process.

We’d love to help you set up your cornerstone content and sail into 2016 with a powerful, content-driven website!

Join us for the Copyblogger Content Challenge

Remember, there’s no charge. Register to get started! We’re looking forward to having you in January’s Copyblogger Content Challenge.

About the author

Pamela Wilson

Pamela Wilson is Executive Vice President of Educational Content at Rainmaker Digital. Follow her on Twitter, and find more from her at

The post Join the Copyblogger Team for Our First Content Challenge appeared first on Copyblogger.

Source: Copy Blogger


Pass the AlertDialog Element in Intent(Android)

By Tushar Thurawa

I am Having problem after googling everywhere could not find how to store the Alert Dialog Element or Popup Element in a variable.

For Example,
In my Popup Window I am having values like Principal, Incharge and Teacher from json through php.

Not i would like to move the Selected Item in Intent like passing (Principal) in Intent.

I am trying hard for this. Please Help !

AlertDialog.Builder builderSingle = new AlertDialog.Builder(context);
        builderSingle.setTitle("Select One Recipent:-");

        final ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(context,
        for (i = 0; i < myData.length; i++) {
            selecteditem = myData[i]; /// Should be the selected item but its not i know

        builderSingle.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
            public void onClick(DialogInterface dialog, int which) {

        builderSingle.setAdapter(arrayAdapter, new DialogInterface.OnClickListener() {

            public void onClick(DialogInterface dialog, int which) {
                String strName = arrayAdapter.getItem(which);
                AlertDialog.Builder builderInner = new AlertDialog.Builder(context);
                 Intent intent = new Intent(context,send_communication_to.class);
                 intent.putExtra("Authoritytype", selecteditem);

Source: Stack Overflow


Writing bookshelf models in es6

By Sayem

Is there any way to write a bookshelf model using es6 classes? I can see the bookshelf source itself has been written in es6. But all the examples and sources that I have come across are written in es5. I saw an elaborate github issue on this that states that it’s possible but it mostly discusses few errors regarding writing the models in classes. How do I write and use a bookshelf model with es6 classes?

Source: Stack Overflow