Tuesday, January 1, 2013

Your Daily digest for Tech Geek`s Tools, Tips, Tricks and Tutorials

Tech Geek`s Tools, Tips, Tricks and Tutorials
Pipes Output
2012 Set Record For Most Expensive Gas In US
Jan 1st 2013, 22:50

An anonymous reader writes "According to data from the American Automobile Association, the average price for a gallon of gas in the U.S. was higher in 2012 than in any year before it. Nationwide, gas averaged $3.60/gallon, up from $3.51/gallon in 2011. 'The states with the most expensive annual averages for 2012 included Hawaii ($4.31), Alaska ($4.09), California ($4.03), New York ($3.90) and Connecticut ($3.90). The states with the least-expensive annual averages included South Carolina ($3.35), Missouri ($3.38), Mississippi ($3.39), Tennessee ($3.40) and Oklahoma ($3.41). The highest daily statewide average of the year was $4.67 in Calif. on Oct. 9, while the lowest daily statewide average was $2.91 a gallon in South Carolina on July 3.' Bloomberg reports that fuel consumption is down 3.6% compared to last year, while U.S. oil production reached almost 7 million barrels a day recently, a level that hasn't been reached since 1993. AAA predicts gas prices will be cheaper in 2013."

Share on Google+

Read more of this story at Slashdot.



A Firecracker-Launching Slingshot: Start the New Year With a Bang
Jan 1st 2013, 21:45

An anonymous reader writes "Joerg Sprave is at it again. This time, in order to bring in the New Year, he's got something with a bit more bang to it: a firecracker-launching slingshot. Being German, Joerg has built a slingshot that will accommodate the largest legal firecracker in that country. '2 grams of black powder in a tight cardboard "cigar" make a pretty loud bang! In order to make these bangs more spectacular, it is desirable to shoot them as high into the air as possible. A special slingshot crossbow has been designed, chambered for the strongest legal firecrackers. The weapon is a breech loader, and an integrated storm lighter allows the shooter to light the fuse when the weapon is all ready for the shot. The weapon launches the firecracker with tremendous force. The blunt object easily crashes through a moving card board box, and — equipped with a wooden tip — even goes in all the way into a block of ballistic gelatin.' His two videos are available on YouTube: part 1, part 2." This is the same gentleman who made a slingshot that launches machetes.

Share on Google+

Read more of this story at Slashdot.



Russian Space Industry To Receive $69 Billion Through 2020
Jan 1st 2013, 20:41

An anonymous reader sends word that the Russian Space industry will be getting a big boost over the next eight years. Prime Minister Medvedev has approved $68.71 billion in space-related funding from 2013 to 2020. That's a huge increase from the $3.3 billion spent annually in 2010 and 2011. The increased funding is one of several efforts to restoring Russia's slowly fading spaceflight capabilities. "The failure of a workhorse Proton rocket after launch in August caused the multimillion-dollar loss of an Indonesian and a Russian satellite. A similar problem caused the loss of a $265 million communications satellite last year. Medvedev criticized the state of the industry in August, saying problems were costing Russia prestige and money." Medvedev said, "The program will enable our country to effectively participate in forward-looking projects, such as the International Space Station, the study of the Moon, Mars and other celestial bodies in the solar system."

Share on Google+

Read more of this story at Slashdot.



Why Do You Want To Kill My Pet? Zynga Shuts Down PetVille, 10 Others
Jan 1st 2013, 19:44

Dr Herbert West writes "Executing the cost-reduction plan CEO Mark Pincus announced in November, Zynga has shut down, pulled from the app stores, or stopped accepting new players to more than 10 games such as PetVille, Mafia Wars 2, FishVille, Vampire Wars, Treasure Isle, Indiana Jones Adventure World, Mafia Wars Shakedown, Forestville, Montopia, Mojitomo, and Word Scramble Challenge. Comments from gamers on the shutdown notices included things like 'my daughter is heartbroken' and 'Please don't remove petville. I been playing for 4 yrs. and I'M going to miss my pet Jaime.why do you want cause depression for me and others. Why do you want to kill my pet?' For players that have invested a lot of microtransactions and/or time, this comes as a heavy blow."

Share on Google+

Read more of this story at Slashdot.



Scientology On Trial In Belgium
Jan 1st 2013, 18:43

dgharmon sends this news from the Atlantic Wire: "After a years-long legal battle, federal prosecutors in Belgium now believe their investigation is complete enough to charge the Church of Scientology and its leaders as a criminal organization on charges of extortion, fraud, privacy breaches, and the illegal practice of medicine. ... Multiple reports and the group's legal history point to one key factor here: The Belgian government won't charge Scientology for being a cult — authorities are focusing on prosecuting it as a criminal organization. Which is a new twist, as most of the group's many court battles over the years have focused on establishing its legitimacy as a religion. ... The Church of Scientology houses its European headquarters in Brussels, so a ban in Belgium could be crippling to the group — and authorities there seem to know it."

Share on Google+

Read more of this story at Slashdot.



USMA: Going the Extra Kilometer For Metrication
Jan 1st 2013, 17:41

EagleHasLanded writes "The U.S. Metric Association has been advocating for metrication since 1916 – without much success. In the mid-1970s, the U.S. government passed the Metric Conversion Act, but now it seems the time for complete conversion has come and gone. Or could U.S. educators and health & safety advocates put this issue back on Congress' radar screen?"

Share on Google+

Read more of this story at Slashdot.



European Commission Support of FRAND Licenses Hurts Open Standards
Jan 1st 2013, 16:28

jrepin writes "While the UK has seen the light, the EU has actually gone backwards on open standards in recent times. The original European Interoperability Framework required royalty-free licensing, but what was doubtless a pretty intense wave of lobbying in Brussels overturned that, and EIF v2 ended up pushing FRAND, which effectively locks out open source — the whole point of the exercise. Shamefully, some parts of the European Commission are still attacking open source."

Share on Google+

Read more of this story at Slashdot.



How Google Glass Is Evolving As It Heads For Release To Developers
Jan 1st 2013, 15:21

hypnosec writes "Babak Parviz, the founder and head of Project Glass at Google, has revealed that the feature set of Google Glass and state of apps is still in flux and that there is a lot of testing going on at the moment. In an interview with IEEE Spectrum, Parviz provided insights into Project Glass, the reasons behind having such a gadget and what's there for the project in near future. Parviz said that they are trying out new ideas and ways in which the platform can be used while also trying to make the platform more robust. There is no specific feature set that Google has been talking about and 'It is still in flux.'" My favorite question / answer pair: "IEEE Spectrum: What kind of business model is associated with Google Glass? Babak Parviz: This is still being worked on, but we are quite interested in providing the hardware."

Share on Google+

Read more of this story at Slashdot.



Pirated iOS App Store Site Shuts Down
Jan 1st 2013, 14:08

SternisheFan writes with this excerpt from CNET: "Installous, a major portal for pirated paid apps from Apple's App Store, won't be around anymore. Development team Hackulous today announced the closure of Installous on their official Web site. As of today, the pirated app store no longer works, and only shows these errors: 'Outdated version. Installous will now terminate' or 'API Error. API unavailable.' For many years, Installous offered complete access to thousands of paid iOS apps for free for anyone with a jailbroken iPhone, iPad, and iPod Touch. Think of it as being able to walk into a fancy department store, steal anything you want, and never get caught."

Share on Google+

Read more of this story at Slashdot.



What Could Have Been In the Public Domain Today, But Isn't
Jan 1st 2013, 13:09

An anonymous reader writes with an article from Duke Law on what would have entered the public domain today were it not for the copyright extensions enacted in 1978. From the article: "What could have been entering the public domain in the U.S. on January 1, 2013? Under the law that existed until 1978, works from 1956. The films Godzilla, King of the Monsters!, The Best Things in Life Are Free, Forbidden Planet, The Ten Commandments, and Around the World in 80 Days; the stories 101 Dalmations and Phillip K. Dick's The Minority Report; the songs 'Que Sera, Sera' and 'Heartbreak Hotel', and more. What is entering the public domain this year? Nothing." And Rick Falkvinge shares his predictions for what the copyright monopoly will try this year. As a bit of a music fan, excessive copyright hits home often: the entire discographies of many artists I like have been out of print for at least a decade. Should copyright even be as long as in the pre-1978 law? Is the Berne Convention obsolete and in need of breaking to actually preserve cultural history?

Share on Google+

Read more of this story at Slashdot.



Framer: Modern Prototyping Tool for Desktop & Mobile
Jan 1st 2013, 11:25

Advertise here via BSA

Framer is a modern prototyping tool. It can help you to quickly build and test complex interactions and rich animations for both desktop and mobile. The basic idea is that you only need a few simple building blocks like images, animation and events to build and test complex interactions.

It is made for designers. It is simple but powerful. A good alternative to Flash, Quartz Composer or Keynote. It works great in desktop and mobile Safari or Chrome, and Offline too. It uses webkit css transforms to render on the GPU for smooth performance. Built in easy spring physics for iOS like animations.

framer

Requirements: -
Demo: http://www.framerjs.com/
License: License Free

Sponsors

Professional Web Icons for Your Websites and Applications

Open webOS Adopts Apache Cordova for Hardware Access
Jan 1st 2013, 10:03

In their December newsletter, Open webOS announced that they've ditched the webOS-specific hardware interface that was part of Enyo 1.x for the Cordova project (formerly PhoneGap). Combined with the portable Enyo 2.0 framework, applications written for webOS are now portable to other platforms (and the other way around). There were also a number of other under-the-hood improvements: "This month we completed and delivered the pluggable keyboard project, WebAppMgr separation and upgrading to Qt 4.8.3. Work continues as planned on upgrading Qt5/webkit2 (more details next month). Also, the complete rewrite of mediaServer has been completed and is now undergoing internal QA testing, look for this to hit the repos in the coming weeks."

Share on Google+

Read more of this story at Slashdot.



Windows 8 Even Less Popular Than Vista
Jan 1st 2013, 08:02

New submitter NettiWelho writes with even more bad news for Microsoft. From the article: "Windows 8 uptake has slipped behind Vista's at the same point after its release. Windows 8 online usage share is around 1.6% of all Windows PCs, which is less than the 2.2% share that Windows Vista commanded at the same two-month mark after release. Net Applications monitors operating system usage by recording OS version for around 40,000 sites it monitors for clients. The slowdown for Windows 8 adoption is a bad sign for Microsoft, who experienced great success with the release of Windows 7. Data was measured up to the 22nd of December, so there is still time by the end of the month for Windows 8 to claim a higher percentage of the user base."

Share on Google+

Read more of this story at Slashdot.



Full-Page Animations with CSS Transforms & Animations
Jan 1st 2013, 07:33

Advertise here via BSA

Modern browsers like Internet Explorer 10 support CSS 3D and 2D Transforms and CSS Animations. By tapping the power of your GPU and running asynchronously from regular JavaScript, these technologies provide a more performant and flexible alternative to traditional script-based animations for Web content. I've talked about how to build with CSS 3D Transforms as well as CSS Animations and Transitions in previous articles. In this article, I'd like to introduce a more "unconventional" use case for these technologies by describing the concept of "full-page animations" that can be used during the navigation process to add fluidity and continuity to browsing. Our target is to achieve a seamless browsing experience in which content smoothly appears into view when the user visits a page and transitions away when he clicks on a link or performs a relevant action.

These effects can be accomplished by transforming the HTML <body> element using CSS Animations. However, this use case presents some considerations that we felt were worthy of discussion, such as the effect of layout and sizing on transforming <body>, as well as how to appropriately time page navigations so that they mesh properly with our animations.

The code samples in this post use unprefixed CSS markup as supported by IE10 Release Preview; other browsers may require vendor prefixes for the CSS Animations and CSS Transforms properties used.

Transforming a Page's Entire Content

CSS Transforms are defined on the stylistic properties of an HTML DOM Element. For example, the markup for rotating an element 45 degrees along its Z axis would look like this:

#element {    transform: rotateZ(45deg);    }

Attaching a transform to the <body> element of your HTML document works exactly the same way. So performing in order to declaratively add the same effect to your document's <body> you could do something like this:

body {    transform: rotateZ(45deg);    }

Let's look at a before-and-after shot of a page when applying a transform to the body element:

For three dimensional transformations, the CSS Transforms specification defines the perspective property that can be specified on the parent of the element that we transforming. When transforming the <body> element of your content, it has to be applied to the <html> element that resides above it in the DOM hierarchy. Doing so is straightforward:

html {    perspective: 500px;    }

Combining this with a rotateY(45deg) transform on the <body> element yields the following result:

We can manipulate the transform-origin property on the body element for interesting results. Let's look at a couple of examples:

body {    transform-origin: 50% 100%;    transform: rotateX(45deg);    }

The above markup sets a rotation along X for the body element while shifting the origin of rotations to the bottom of the element using transform-origin. Effectively this rotates the document's contents "into" the screen like this:

We can also manipulate the perspective-origin property on the root element of our document to achieve an off-axis projection effect. Changing the style for <html> to:

html {    perspective: 500px;    perspective-origin: 90% 50%;    }

Our page now looks like this:

By using CSS Transforms, we can easily manipulate the visual appearance of the entirety of our page's content. Since the usual layout and sizing rules still apply, some transforms on the body element (particularly ones that use percentage values or rely on the transform-origin property) can result in different visual effects depending on the content of our page. Recall our previous rotateX(45deg) example with transform-origin set to 50% 100%.

Below you can see the results before and after the transform is applied.

Notice how the content does not actually pivot on the bottom of the window but rather at some point outside of the viewport. This is expected behavior for CSS Transforms: the <body> is laid out normally, then it is rotated along its bottom edge that is somewhere off screen. You will also notice that the actual foot print of the content has expanded (take a look at the scroll bars in the "after" picture) in order to accommodate the transformed content (the fact that we are using perspective projection makes this effect even more pronounced).

So how do we deal with arbitrarily sized content when applying transforms to our body element? Custom tailoring all content in order to ensure that the size of the body does not expand more than a certain amount may be unrealistic. Instead, we can use a simple HTML/CSS pattern that allows us to fix the size of the body element to that of the browser window and append content inside a wrapper <div>. The following markup achieves just that:

html, body {    width: 100%;    height: 100%;    min-width: 100%;    max-width: 100%;    padding: 0;    margin: 0;    overflow: hidden;    }    #Wrapper {    position: absolute;    width: 100%;    height: 100%;    overflow: scroll;    }

The illustration below shows what happens when a page is scrolled vertically and we apply a rotateY(45deg) transform to the <body> element of our document directly (left) and using the wrapper pattern (right):

The direct application of the transform results in a skewed visual result due to the off-axis projection (since we are no longer looking at the "center" of the body element). Using the wrapper pattern ensures that the <html> element's perspective-origin property (50% 50% by default) will always be correctly centered with relation to the <body> element, giving us a pleasant visual effect.

By utilizing the above pattern and setting up CSS Transforms with percentage values whenever possible, we can affect our element in consistent ways, regardless of the size of its contents.

From Transforms to Animations

Having sorted out the intricacies of applying CSS Transforms to the <body> element, CSS Animations are the next step. By following the principles described above, we can create animations that bring our Web content into view (or remove it from view) in interesting ways.

Consider this basic @keyframes rule:

@keyframes rotateInLeft {    from {    transform-origin: 0% 0%;    transform: rotateY(180deg);    }    to {    transform-origin: 0% 0%;    transform: rotateY(0deg);    }    }

When applied to an element, this animation will cause it to rotate on its left side. When applied to a <body> element that uses our wrapper pattern the visual result is more interesting. The document will actually rotate from outside of the visible area of the browser window and into full view:

Similarly, we can compose animations that fluidly remove our Web content from view. For example, if we wanted our page to disappear into the distance while rotating, we could use something like this:

@keyframes whirlOut {    to {    transform: scale(0) rotateZ(1260deg);    }    }

With the visual result being:

Since we can use the full power of CSS Animations to affect the entirety of our Web content, we have a lot of flexibility in terms of generating these page effects (and we are certainly not limited to just using CSS Transforms). But once we have composed the effects that we want to apply to our content, how do we cause them to trigger during the page navigation process?

Attaching Animations to <body>

Our goal is to use trigger animations at strategic times during the browser experience in order to give the appearance of content transitioning into view when a page loads and out of view when the user clicks on a link.

The first intuitive place to add an animation to the body element would be the onload JavaScript event. As it turns out however, adding an animation when onload fires is actually too late. This event actually triggers when the entirety of the content in our page has finished loading (including any images or other bandwidth-intensive resources). Attaching an animation to onload on a bandwidth-intensive page would

result in our content displaying "normally," followed by the animation triggering and re-bringing the content into view. Not exactly the effect that we were aiming for.

Alternatively, we could utilize the DOMContentLoaded event that triggers when the browser has finished parsing the DOM structure of our content (but potentially before resources have finished loading). The IE Test Drive DOMContentLoaded demo illustrates the difference between these two events. However, in cases of complex Web content, a modern browser may choose to perform "progressive" rendering, displaying the page before the entirety of the DOM tree has been loaded. In these situations, the visual result would be similar to the onload scenario.

The optimal place to set up an animation that transitions our page content in view is inline at the top of the element. This ensures that the animation will commence right as the content is being rendered (and that the starting position of the content will be that of the from keyframe of our selected animation). A pleasant side effect of this approach is that the animation may actually mask any progressive rendering, re-layout or resource loading that can occur with complex content.

Setting up the animations that transition our content out of view is also interesting. One could assume that we could attach an onclick handler to all elements of interest in our content (for instance all <a> tags) and just set the relevant animation properties (animation-name, animation-duration, etc.) in the callback function. However, if we do not actually delay the navigation from happening, we will not see our expected fluid transition. This is a good opportunity to utilize the animation events described in the CSS Animations specification. In particular, we can use the animationend event to detect when the animation has completed and then trigger a navigation (by setting window.location.href, for instance). Thus our onclick will trigger the "remove-from-view" animation and register a handler for animationend on that will ensure that the navigation event occurs.

Live Demo Available

We've created a demonstration and tutorial on bringing pages alive with CSS Transforms & Animations that provide depth and examples beyond what we've been able to show here. The tutorial itself utilizes full page animations during page navigation that work in Internet Explorer 10 on Windows 8 as well as recent versions of Chrome and Firefox.

To simply enjoy the page-to-page animations, step through the pages of the tutorial using the "Continue to …" links in the lower right corner of each page.

At the end of the tutorial we provide some additional guidance and sample code on how to incorporate these animations with your own Web content.

Wrapping it up

CSS Transforms and CSS Animations are two powerful feature-sets that enable richer and more immersive Web experiences. With a small amount of effort you can create Web pages (even static ones) that provide a fluid and almost app-like navigation experience.

About the Author

Charilaos "Harris" Papadopoulos is a Program Manager Intern on the Internet Explorer team. He focuses on graphics performance.

Sponsors

Professional Web Icons for Your Websites and Applications

The U.S. Careens Over the Fiscal Cliff, Reaching Only Half of a Deal
Jan 1st 2013, 05:01

New submitter Jetra wrote with word that the House of Representatives failed to vote on the "fiscal cliff" deal before midnight, technically sending the U.S. over the fiscal cliff. The White House and Senate, however, reached an agreement at the last minute to allow for some tax increases, and a House vote approving it is expected in the next day or two: "The agreement came together after negotiators cleared two final hurdles involving the estate tax and automatic spending cuts set to hit the Pentagon and other federal agencies later this week. Republicans gave ground on the spending cuts, known as the sequester, by agreeing to a two-month delay paid for in part with fresh tax revenue, a condition they had resisted. White House officials yielded to GOP wishes on how to handle estate taxes, aides said." The battle over required spending cuts has predictably been delayed for another day, making the deal far from complete.

Share on Google+

Read more of this story at Slashdot.



Egyptian Government To Adopt Free Software On Larger Scale
Jan 1st 2013, 03:02

ezabi writes "After announcing a 43 million USD license agreement with Microsoft, the Egyptian government was faced with a protest from FOSS enthusiasts staging a protest before the cabinet. Later, representatives from the community had a meeting with the minister of communications and information technology. Such a meeting led to the ministry issuing a press release (in Arabic) stating its commitment to gradually move to open source (Google Translate to English) as a strategic option for future projects. It's worth mentioning that all governmental websites used in the elections and constitution referendum were all based on open source solutions."

Share on Google+

Read more of this story at Slashdot.



Ask Slashdot: What Is Your New Years Eve Tradition?
Jan 1st 2013, 00:58

skade88 writes "What does the Slashdot community do to celebrate New Years Eve? Does your city do something cool and unique to celebrate? Do you celebrate with fireworks in front of your house, or in your favorite MMO (WoW, Minecraft, etc.)?"

Share on Google+

Read more of this story at Slashdot.



NASA Faces Rough Road In 2013
Jan 1st 2013, 00:06

MarkWhittington writes "With the National Research Council report that concluded that President Obama's plan for a mission to an asteroid has no support, either inside NASA or anywhere else, the space agency faces a decision point in 2013. The NRC suggested that the administration, Congress, NASA, and other stakeholders in space exploration come to a consensus behind a new goal. But the space agency's problems run deep, caused by a lack of direction, a lack of leadership, and a lack of funding."

Share on Google+

Read more of this story at Slashdot.



You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions