background preloader

Web

Facebook Twitter

Using the PageVisibility API. Introduction As Web developers, we tend to get excited by new technologies that enable us to create ever more engaging, interactive Web pages. 3D graphics with WebGL?

Using the PageVisibility API

Absolutely. Advanced audio capabilities with WebAudio? Sure thing. Real-time collaboration applications using the Web camera and microphone? A Web page that retrieves information from a server can slow down its update cycle when not being actively viewedA page that displays a rotating image carousel or video/audio content can pause until the user displays the page againAn application can decide to display notifications to the user only when it is hidden from view At first, this API may not seem very useful beyond user convenience, but considering the huge increase in mobile Web browsing, anything that helps save the device's battery power becomes very important. Document Visibility Properties As you might expect, the hidden attribute returns true when the document is not visible at all. Dealing with vendor prefixes Summary. 20 Node.js projects that you should know about to increase productivity.

Node.js continues to grow through a very active community.

20 Node.js projects that you should know about to increase productivity

Like all other technologies it has its own share of detractors and promoters. Today I want to point out 20 projects that work with Node.js and can help increase your productivity. Persistence. This page provides a technical description of Redis persistence, it is a suggested read for all the Redis users.

Persistence

For a wider overview of Redis persistence and the durability guarantees it provides you may want to also read Redis persistence demystified. Redis provides a different range of persistence options: The RDB persistence performs point-in-time snapshots of your dataset at specified intervals. the AOF persistence logs every write operation received by the server, that will be played again at server startup, reconstructing the original dataset. Commands are logged using the same format as the Redis protocol itself, in an append-only fashion. Redis is able to rewrite the log on background when it gets too big. The most important thing to understand is the different trade-offs between the RDB and AOF persistence.

*RDB advantages RDB is a very compact single-file point-in-time representation of your Redis data. *RDB disadvantages *AOF advantages *AOF disadvantages *Snapshotting Redis 2.0. How To Safely Store A Password. 31 Jan 2010 Use bcrypt Use bcrypt.

How To Safely Store A Password

Use bcrypt. Use bcrypt. Use bcrypt. Why Not {MD5, SHA1, SHA256, SHA512, SHA-3, etc}? These are all general purpose hash functions, designed to calculate a digest of huge amounts of data in as short a time as possible. A modern server can calculate the MD5 hash of about 330MB every second. And that’s without investing anything. If you’re willing to spend about 2,000 USD and a week or two picking up CUDA, you can put together your own little supercomputer cluster which will let you try around 700,000,000 passwords a second. Salts Will Not Help You It’s important to note that salts are useless for preventing dictionary attacks or brute force attacks.

Salt or no, if you’re using a general-purpose hash function designed for speed you’re well and truly effed. bcrypt Solves These Problems How?

NodeJS

RessourcesDev. MethodeAgile. Ruby/Rails. Javascript/Jquery. HTML/CSS. Startup. Design. Internet des Objets.