komedi filmi izle


Archive for February, 2012

Add a Link to Source to Copied Text

Wednesday, February 29th, 2012

On many on-line news sited noticed that if you copy and paste any text from the site a reference link appears at the bottom, indicating the source. That functionality could be implemented pretty easily using JavaScript. Add a Copyright Notice to Copied Text article describes you how to do it.

All that is needed is to write a function that registers to copy action, grabs the copied selection text, adds on a copyright notice and then send those two to the clipboard. Just add this code between your page’s head tag (works also inside body section).

<script type="text/javascript">
function addLink() {
	var body_element = document.getElementsByTagName('body')[0];
	var selection;
	selection = window.getSelection();
	var pagelink = "<br /><br /> Read more at: <a href='"+
            document.location.href+"'>"+document.location.href+
            "</a><br />"; // change this as you need
	var copytext = selection + pagelink;
	var newdiv = document.createElement('div');
	newdiv.style.position='absolute';
	newdiv.style.left='-99999px';
	body_element.appendChild(newdiv);
	newdiv.innerHTML = copytext;
	selection.selectAllChildren(newdiv);
	window.setTimeout(function() {
		body_element.removeChild(newdiv);
	},0);
}
document.oncopy = addLink;
</script>

This seems to work well on Firefox and according to original article also with most other browsers. Sorry IE people, this one won’t work for you.

This is already in use in ePanorama.net documents section. Go to any document and try cut+paste from any document there.

HTML5 Canvas Experiments

Tuesday, February 28th, 2012

Let’s take a peek at some of the latest, cutting edge HTML5 Canvas examples out there. 21 Ridiculously Impressive HTML5 Canvas Experiments article has a collection of some ridiculously impressive HTML5 canvas-based experiments that will make you say, “Wow!”

particles

Check also HTML5, JavaScript and Canvas – Conway’s Game of Life.

DRM to HTML5?

Sunday, February 26th, 2012

With tech companies abandoning the proprietary Flash and Silverlight media players for HTML5, it was inevitable somebody would try to inject DRM into the virgin spec. Who’s adding DRM to HTML5? Microsoft, Google and Netflix article tells that Microsoft, Google and Netflix are that “somebody”, having submitted a proposed modification to HTML5 to the World Wide Web Consortium (W3C) for “encrypted media extensions”.

This “Unethical” HTML video copy protection proposal draws criticism from W3C reps. Encrypted Media Extensions draft defines a framework for enabling the playback of protected media content in the Web browser. The proposal is controversial and has raised concern among some parties that are participating in the standards process.

It is reported Slashdot article reports that in a discussion on the W3C HTML mailing list, critics questioned whether the proposed framework would really provide the level of security demanded by content providers. The aim of the proposal is not to mandate a complete DRM platform, but to provide the necessary components for a generic key-based content decryption system. It is designed to work with pluggable modules that implement the actual decryption mechanisms.

DRM will be required by content providers even though usually DRM just does not work well. DRM is a way to prevent data from flowing freely, but usually fails in that. Very many people enjoy watching content produced by Hollywood than are up in arms over standardizing DRM for every platform. Google’s Ian Hickson, the WHATWG HTML specification editor, called the Encrypted Media proposal “unethical” and said that it wouldn’t even fulfill the necessary technical requirements.

drm-no

Who’s adding DRM to HTML5? Microsoft, Google and Netflix article tries to answer why those companies are behind this HTML5 DRM proposal. Majority of content on YouTube is built for Flash. HTML5 will probably supplant Flash. Google can’t afford to upset the corporate makers of film, TV and music on YouTube by making it impossible to let them control the distribution of their content. Netflix was an early Silverlight adopter and must now recognise the future is HTML5 thanks to Microsoft’s acceptance of the Jobsian HTML5 vision. Microsoft’s Bateman has tried to bulletproof the encrypted media extensions proposal by saying: “No ‘DRM’ is added to the HTML5 specification, and only simple clear key decryption is required as a common baseline.” it’s typical for IT vendors to adopt standards and then extend them in their own software.

Single atom transistor

Sunday, February 26th, 2012

Physicists Create a Working Transistor From a Single Atom and Transistor Made Using a Single Atom May Help Beat Moore’s Law articles tells that Australian and American scientists have taken a first early step toward creating a working transistor using a single phosphorus atom. The atom was etched into a silicon bed with “gates” to control electrical flow and metallic contacts to apply voltage, researchers reported in the journal Nature Nanotechnology. It is the first such device to be precisely positioned using a repeatable technology. “To me, this is the physical limit of Moore’s Law,” Klimeck said in a statement. “We can’t make it smaller than this.”

This was not the first single atom transistor. About two years ago, a team of researchers from the Helsinki University of Technology, the University of New South Wales, and the University of Melbourne in Australia announced the creation of a single-atom transistor designed around a single phosphorus atom in silicon.

Repeatable technology opens up the possibility that the method can be automated and single-atom transistors could be manufactured, according to the group at the University of New South Wales. Single-atom transistor built with precise control article tells that the lab members used a scanning tunneling microscope to manipulate atoms at the surface of a silicon crystal. Then with a lithographic process, they laid phosphorous atoms onto the silicon substrate.

For more details read the original A single-atom transistor article from Nature Natotechnology magazine.

Single-Atom Transistor Is End of Moore’s Law; May Be Beginning of Quantum Computing article tells that some scientists believe that single-atom transistor could lead the way to building a quantum computer that works by controlling the electrons and thereby the quantum information, or qubits. Some other scientists, however, have doubts that such a device can ever be built.

I think this invention will lead to many more discoveries.

LED suit snowboarder

Friday, February 24th, 2012

Nowness is an interesting looking footage called Jacob Sutton’s L.E.D. Surfer. It shows a pro snowboarder in an LED light suit, gliding through snow in the dead of night. At first sight, I thought this was just a normal snowboarding short with the color inverted, but it really is a man boarding through the night covered with light.

Very nice looking higher resolution version of video can be viewed Nowness web page.

Man surfs slopes at night in LED suit and Jacob Sutton’s L.E.D. Surfer articles gives you some details of the technology used to make the video. The sole source of lighting in the video was the snowboarder’s LED suit (custom made LED jacket pants setup made by John Spatcher). According to video description fashion photographer Jacob Sutton spent three nights on a skidoo with his trusty Red Epic camera (pretty amazing camera specifications including 14 megapixel high speed video shooting) at temperatures of -25C to snap pro snowboarder William Hughes carving effortlessly through the deep snow for this . The entire project was commissioned by Nowness – an online platform that documents stories in the luxury world of art, culture, design, fashion, food, film, and more.

What’s inside a smart meter?

Wednesday, February 22nd, 2012

You can usually find the folks at iFixit tearing down electronics with an eye toward expanding your knowledge of how to repair your electronic devices and keep them out of landfills by extending electronics’ life span.

What’s inside a smart meter? iFixit tears it down article tells that the technicians at iFixit got their hands on an Elster Rex2 Watt-hour meter and they had opportunity to evaluate the health and safety issues that seem to surround the utilities’ installation of smart meters. This smart meter has nonvolatile memory, advanced security with encryption, the ability to make remote upgrades, and support for 900-MHz and 2.4-GHz ZigBee communication.

The Smart Grid depends on smart meters with sophisticated communication capabilities to monitor energy usage and allow residential and business consumers alike to make informed choices about how much energy to use and when to consume it.

Tetris In 140 Bytes

Tuesday, February 21st, 2012

Is it possible to write a JavaScript program in no more than a tweet’s length? A website called 140byt.es says it is. The site has an implementation of “almost” Tetris to prove it. Its title is “Binary Tetris“, and it only has two types of block and there’s no rotate, but it works. The blocks fall down the screen and you steer them into place. You can try it out by playing the demo.

Of course the real fun is in figuring out how this Tetris In 140 Bytes works. The code includes the main logic to move blocks, detect collision, assign new blocks, remove full lines and render the layout are included (keyboard controls and the final rendering are excluded).


function(a,b,c,d,e){return d+=c,
e=a|b<<d,d<0|a&b<<d&&(a=e=
parseInt((a|b<<c).toString(d=32)
.replace(/v/,""),d),b=new Date%2?1:3),
[a,b,d,e]}

140byt.es is a tweet-sized, fork-to-play, community-curated collection of JavaScript that gives you help on figuring out how this kind of tiny JavaScript code can be made. There you will find some interesting tips on how to save space while writing JavaScript.

If your bored how about writing your own 140 character challenge?

How Google & Apple Dominate Mobile

Monday, February 20th, 2012

The mobile platform wars are in full swing. Android and Apple dominate the landscape. Network Effects: How Google & Apple Dominate Mobile article tells that a report from VisionMobile says that there will be no clear winner in the battle for supremacy over the mobile market. Android controls the numbers, Apple controls the profits and everybody else is fighting for scraps and third place in the ecosystem. The article has good figures that describe the mobile markets.

Super Bowl Dubstep

Friday, February 17th, 2012

Stadium Dubstep article tells that someone handed over the keys to Century Link Field in Seattle and allow these folks to have fun with the lights in order to get them synced to M83’s Midnight City. The result is amazing. Watch the Midnight Lights – Super Bowl Dubstep video to see the result yourself.

How Hi-Tech Retailers Are Screwing You

Thursday, February 16th, 2012

There are a million little ways retailers can screw you on what you buy. But maybe nowhere is this more common than in the world of high-tech gadgets. 5 Ways Hi-Tech Retailers Are Secretly Screwing You article gives examples how high tech opens up whole new realms of screwing the customer. Examples of this can be found on printer inks, premium HDMI cables, warranties and “optimization”. Many electronics and electronics shops have a notoriously narrow profit margin, so all of the shady stuff is just helping them trying to stay afloat. On-line retailers have pushed down the consumer electronics products margins a lot from what the used to be.

Anonymous_Architetto_--_azienda_Vendite

Read also 8 Retail Ripoff Tactics and Top 10 Retail Ripoffs Exposed! Learn sneaky snake sales tricks and avoid being BIT!


film izle - komedi filmi izle - film izle - film izle - film izle