Allora – Use promises on any JavaScript object

README.md

Promisify everything in less tha ~50 lines
It can be used to use promises on any javascript object.

Examples

Basic

Or simply:

const myWindow = allora(window)
myWindow.onload.then(() => alert(‘I am ready!’))

Example in Node:

const allora = require(‘allora’)
const myGlobal = allora(global)
Promise.race([
myGlobal.setImmediate(),
myGlobal.setTimeout(200),
myGlobal.setTimeout(400)
]).then(() => done())

Example in browser:

const myWindow = allora(window)
const p1 = myWindow.setTimeout(500)
const p2 = myWindow.setTimeout(5000)
const p3 = myWindow.requestAnimationFrame()

p1.then(() => alert(‘I am ready’))
p2.then(() => alert(‘I am late’))
p3.then(() => alert(‘frame’))

Promise.all([p1, p2, p3]).then(() => alert(‘We are all done!’))

“allora” meaning

“allora” is the Italian


Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/ij-iQKXIGy8/allora

Original article

Amazon Video for Android Now Lets You Save Movies and Shows to SD Cards

Android: One useful feature of Amazon Video is that you can download shows and movies so that you can watch them offline
, but those videos can quickly fill the internal storage on your tablet or phone. Now, Amazon will let you save videos to SD cards so that you don’t max out your device’s internal storage.Read more…


Original URL: http://feeds.gawker.com/~r/lifehacker/full/~3/Q0HrUBZceD4/amazon-video-for-android-now-lets-you-save-movies-and-s-1783861347

Original article

Pearl RearVision adds a backup camera to any old car

 As of 2018, all new passenger vehicles will be required by NHTSA to have rear visibility technology. This only applies to shiny new cars rolling off the assembly line, but that doesn’t mean vehicles made before the mandate are doomed to run over forgotten bikes and recycle bins. There are plenty of aftermarket rearview cameras available, including one from the guys who brought you… Read More


Original URL: http://feedproxy.google.com/~r/Techcrunch/~3/bNMaXmXg3bU/

Original article

What ever happened to Wordstar?

Whatever Happened to Wordstar?
by John C. Dvorak
One of the most interesting stories in the history of computing surrounds the dominant word processor of the late 1970’s and early 1980’s — Wordstar.
The brains behind it included industry pioneer Seymour Rubenstein, who much later developed a spreadsheet product called Surpass which became Quattro Pro. Rubenstein had worked for IMSAI under his then mentor Bill Millard where he ran into superstar assembly language coder, Rob Barnaby. After his stint with IMSAI and after working on a banking system for Credit Suisse Rubenstein decided to start a company. He began studying the Datapro reports on dedicated word processors and decided he wanted to do a software company. He called it Micropro International. The first two products were a word processor and a sorting program which he got Barnaby to code. In just a few months, while coding two products simultaneously, Barnaby produced


Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/DNJ9izloN_s/

Original article

Opera browser sold to a Chinese consortium for $600M

The original deal, announced in February, reportedly failed to gain regulatory approval. While expressing disappointment that it was scrapped, Opera CEO Lars Boilesen says “we believe that the new deal is very good for Opera employees and Opera shareholders.” The acqisition was approved by Opera’s board, and the company now has 18 months to find a new name, according to Techcrunch.The company actually makes more of its $616 million in revenue from Opera TV and the other consumer division products that it’s keeping in the deal. “For Opera shareholders we are selling approximately a quarter of the company for $600m, which is an attractive price for this part of our business,” Boilesen says.Opera is the fifth most popular desktop browser with a meager 1.9 percent share, but it does hold a very respectable 10 percent of the mobile market. The company has been especially innovative in mobile, having introduced built-in


Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/l_HeatfBA_8/

Original article

Chinese $1.2B deal for Opera crumples

The planned sale of Opera Software to a group of Chinese companies for $1.2 billion has foundered, the Norwegian browser maker announced today.Instead, an alternate deal has been struck to sell the Opera desktop and mobile browsers, and other small pieces, to a Chinese private equity firm for $600 million.The original transaction folded after it failed to win regulatory approval from the U.S. and People’s Republic of China (PRC) by a July 15 deadline. Opera did not specify whether approval was lacking from both countries, or just one. “The Offeror and Opera have used their best efforts to obtain the regulatory approvals required for the consummation of the Offer, but the condition…was not satisfied,” Opera said in a Monday statement.To read this article in full or to leave a comment, please click here


Original URL: http://www.computerworld.com/article/3096755/it-industry/chinese-12b-deal-for-opera-crumples.html#tk.rss_all

Original article

Drupal Core – Highly Critical – Injection – SA-CORE-2016-003

Advisory ID: DRUPAL-SA-2016-002
Project: Drupal core
Version: 8.x
Date: 2016-July-18
Security risk: 20/25 ( Highly Critical) AC:Basic/A:None/CI:All/II:All/E:Proof/TD:Default
Vulnerability: Injection
Description

Drupal 8 uses the third-party PHP library Guzzle for making server-side HTTP requests. An attacker can provide a proxy server that Guzzle will use. The details of this are explained at https://httpoxy.org/.

CVE identifier(s) issued
CVE-2016-5385
Versions affected
Drupal core 8.x versions prior to 8.1.7
Solution
Install the latest version:
If you use Drupal 8.x, upgrade to Drupal core 8.1.7
If you use Drupal 7.x, Drupal core is not affected. However you should consider using the mitigation steps at https://httpoxy.org/ since you might have modules or other software on your server affected by this issue. For example, sites using Apache can add the following code to .htaccess:
RequestHeader unset Proxy

We also suggest mitigating it as described here: https://httpoxy.org/
Also see the Drupal core project page.
What if I am running Drupal core 8.0.x?
Drupal core 8.0.x is no longer supported. Update to 8.1.7 to get


Original URL: https://www.drupal.org/SA-CORE-2016-003

Original article

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑

%d bloggers like this: