From Tech: Mark Zuckerberg decries reported end of DACA in heartfelt Facebook post

TwitterFacebook

President Donald Trump’s decision on the Deferred Action for Childhood Arrivals (DACA) program is nearing a critical crossroads, and Facebook CEO Mark Zuckerberg wants his stance — along with most of Silicon Valley’s — on the Obama administration policy to be clear. 

In a Facebook post published Thursday night, Zuckerberg pledged his support of DACA, called “Dreamers” the future of the country, and urged other business leaders to join in signing an open letter addressed to Trump. The letter has already been signed by fellow tech giants Amazon CEO Jeff Bezos and Apple CEO Tim Cook, along with numerous others. Read more…

More about Tech, Mark Zuckerberg, Immigration, Dreamers, and Daca

Read more

From The Next Web: Xiaomi will unveil its next bezel-less Mi Mix 2 ahead of the new iPhone


Last October, I heralded Xiaomi’s Mi Mix as the best-looking phone of the year, and I believe I was right; the company is now gearing up to unveil its successor, the Mi Mix 2, on September 11 – a day ahead of the iPhone 8 launch. The timing is interesting, because it indicates that the company is keen to woo potential iPhone buyers with a premium device that ticks off one of the most important boxes for gadget fans this year: a bezel-less front fascia. As with the previous model, the handset is being fashioned by world-renowned product designer Philippe…

This story continues at The Next Web

Or just read more coverage about: iPhone,Xiaomi

Read more

From Digital Trends: ‘No More Heroes: Travis Strikes Again’ could be seven games in one on the Switch

No More Heroes: Travis Strikes Again takes place a year after the events of the original, but it’s not exactly a sequel. Along with fighting waves of baddies, players will have to navigate through indie games like Hotline Miami.

The post ‘No More Heroes: Travis Strikes Again’ could be seven games in one on the Switch appeared first on Digital Trends.

Read more

From DZone.com Feed: 5 Tips on Concurrency

1. Never Swallow InterruptedException

Let’s check the following code snippet:

public class Task implements Runnable {
  private final BlockingQueue<String> queue = ...;

  @Override
  public void run() {
    while (!Thread.currentThread().isInterrupted()) {
      String result = getOrDefault(() -> queue.poll(1L, TimeUnit.MINUTES), "default");
      //do smth with the result
    }
  }

  <T> T getOrDefault(Callable<T> supplier, T defaultValue) {
    try {
      return supplier.call();
    } catch (Exception e) {
      logger.error("Got exception while retrieving value.", e);
      return defaultValue;
    }
  }
}

The problem with the code is that it is impossible to terminate the thread, while it is waiting for a new element in the queue because the interrupted flag is never restored: 

Read more

From DZone.com Feed: 5 Tips on Concurrency

1. Never Swallow InterruptedException

Let’s check the following code snippet:

public class Task implements Runnable {
  private final BlockingQueue<String> queue = ...;

  @Override
  public void run() {
    while (!Thread.currentThread().isInterrupted()) {
      String result = getOrDefault(() -> queue.poll(1L, TimeUnit.MINUTES), "default");
      //do smth with the result
    }
  }

  <T> T getOrDefault(Callable<T> supplier, T defaultValue) {
    try {
      return supplier.call();
    } catch (Exception e) {
      logger.error("Got exception while retrieving value.", e);
      return defaultValue;
    }
  }
}

The problem with the code is that it is impossible to terminate the thread, while it is waiting for a new element in the queue because the interrupted flag is never restored: 

Read more

From DZone.com Feed: Why Are 0-Day Retail Costs Skyrocketing?

Bug bounties are beginning to ramp up again. For certain exploits, like remote mobile exploits, prices have been pegged over $1 million for the past few months. These seem to be ramping toward $1.5 million. More notably, the price of unreleased 0-days …

Read more

From DZone.com Feed: Why Are 0-Day Retail Costs Skyrocketing?

Bug bounties are beginning to ramp up again. For certain exploits, like remote mobile exploits, prices have been pegged over $1 million for the past few months. These seem to be ramping toward $1.5 million. More notably, the price of unreleased 0-days …

Read more