How to remove pre-roll ads on Youtube?

Adblock time to time can’t handle this simple task to hide pre rolls on YouTube, so, you can use this simple trick.
Just update your hosts file using these lines:

127.0.0.1 ads.youtube.com
127.0.0.1 s0.2mdn.net
127.0.0.1 s1.2mdn.net
127.0.0.1 googleads.g.doubleclick.net
127.0.0.1 pubads.g.doubleclick.net
127.0.0.1 ad.doubleclick.net
127.0.0.1 static.doubleclick.net

Done!

Next level of craziness — host file with 15K+ lines, check this out.

Javascript: Simple cookie managing

Just a code snippet to manage cookies in a simple way:

function cookie(name,value,expire) {
	var D = document,d,r,c,n,f;
	if (void 0 != value) {
		d = new Date;
		d.setDate(d.getDate()+expire);
		D.cookie = name + "=" + escape(value) + ((null==expire) ? "" : ";expires=" + d.toGMTString());
	} else {
		r = [], c = D.cookie.split(";");
		for (n = 0; n < c.length; n++) (f = c[n].match(RegExp("^\\s*"+name+"=\\s*(.*?)\\s*$"))) && r.push(f[1]);
		return r[0]?r[0]:!1;
	}
}

You can set, read or delete cookie:

cookie(name,val);
cookie(name);
cookie(name,'',-1);

GitHub gist available here.

KPHP: KittenPHP Released

kphp

This is VK/KittenPHP-DB-Engine project, consisting of efficient PHP-to-C++ translator called “KPHP” or “KittenPHP”, and several auxiliary high-performance “engines” (specialized non-relational databases), needed for its deployment.

It has been developed since 2009 mostly by Vkontakte Ltd, operator of social network VK.COM, and thoroughfully tested in high-performance enviroments, until a version useful for the general public was obtained. Fulfilling several previously given public promises, this version is now released for public use under GPL/LGPL terms.

Source code is licensed mostly under GPL version 2 or later.

Benchmarks (KPHP vs Facebook HipHop VM vs PHP):

kphp-testsTests sources available here.

Russian-language documentation is available at Github.
English documentation not available yet, sorry.

Apple Car: Control with a word, or a touch, or a twist.

Apple CarPlay

CarPlay features Siri voice control and is specially designed for driving scenarios. It also works with your car’s controls — knobs, buttons, or touchscreen. And the apps you want to use in the car have been reimagined, so you can use them while your eyes and hands stay where they belong.

The power and simplicity of Apple Maps come to your dashboard — complete with turn‑by‑turn directions, traffic conditions, and estimated travel time. CarPlay can also predict where you most likely want to go using addresses from your email, text messages, contacts, and calendars.

Volvo Shows CarPlay Integration for XC90 SUV

apple.com/ios/carplay

New Home — Long Island City, New York

ny08

Introducing 4545 Center Boulevard, on the LIC waterfront.
Luxury interiors. Panoramic views. Acres of landscaped waterfront, and the energy of Center Boulevard. Residents at 4545 will enjoy over 50,000 square feet of amenities.
Imagine New York—then imagine something more.

Awesome views from our new apartments in Queens… (more…)

Markdown has arrived on WordPress.com!

markdown-in-text-editor

Markdown has arrived on WordPress.com! Some of you may respond with “Finally!” Others might be asking, “what’s that?” Markdown is a quick way to add formatted text without writing out any HTML.

via Matt Wiebe blog.

Pixelmator 3.0 FX

Pixelmator 3.0 FX

The Pixelmator Team today announced Pixelmator 3.0 FX, the most advanced version of Pixelmator to date, featuring Layer Styles, Liquify Tools, and support for new features in OS X Mavericks, delivering blazing fast performance with its new, state-of-the-art image editing engine. Pixelmator 3.0 FX is available today as a free upgrade from the Mac App Store.

Pixelmator 3.0 FX introduces Layer Styles. Now creating advanced and polished compositions is so much simpler, faster, and more enjoyable. Quickly apply shadows and inner shadows, beautiful gradients, create outlines, or reflections. Or apply a combination of effects with any of the great-looking Layer Styles presets. The best part is that all of this is done non-destructively.

via Pixelmator Blog

Google: Project Shield

Project Shield is an initiative to use Google’s infrastructure to protect free expression online. The service currently combines Google’s DDoS mitigation technologies and Page Speed Service (PSS), which allow websites to serve their content through Google to be better protected from DDoS attacks.

Project Shield is currently invite-only, and seeking additional “trusted testers”. Organizations with sites serving media, elections and human rights related content are invited to apply using the form here.

How to Piss Off Every New Yorker in 36 Seconds

via BuzzFeedVideo Youtube channel.

Parallax.js

Parralax.js – Simple, lightweight parallax engine that reacts to the orientation of a smart device.

parallax.js

Besides mouse/cursor support, it works on mobile and tablet (where gyroscope or motion detection hardware is available) too.
It comes with multiple options for customizing the effect where they can be set inline using “data attributes” or in JavaScript.

Parallax.js reacts to the orientation of your smart device, offsetting layers depending on their depth within a scene… Oh, you don’t have a smart device? No worries, if no gyroscope or motion detection hardware is available, parallax.js uses the position of your cursor instead. Radical.