Monday, March 25, 2013

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

Tech Geek`s Tools, Tips, Tricks and Tutorials
Pipes Output
The ATF Not Concerned About 3D Printed Guns... Yet
Mar 25th 2013, 23:51

derekmead writes "3D-printing gun parts has taken off, thanks to the likes of Cody Wilson and Defense Distributed. While the technology adds a rather interesting wrinkle to the gun control debate, the ATF currently is pretty hands-off, ... 'We are aware of all the 3D printing of firearms and have been tracking it for quite a while,' Earl Woodham, spokesperson for the ATF field office in Charlotte, said. 'Our firearms technology people have looked at it, and we have not yet seen a consistently reliable firearm made with 3D printing.' A reporter called the ATF's Washington headquarters to get a better idea of what it took to make a gun 'consistently reliable,' and program manager George Semonick said the guns should be 'made to last years or generations.' In other words, because 3D-printed guns aren't yet as durable as their metal counterparts, the ATF doesn't yet consider them as much of a concern."

Share on Google+

Read more of this story at Slashdot.



Draft Computer Fraud and Abuse Act Update Expands Powers and Penalties
Mar 25th 2013, 23:10

Despite calls to limit the Computer Fraud and Abuse Act, it looks like Congress is planning to drastically expand the law and penalties. walterbyrd writes with a few of the major changes listed in the draft bill (22 pages): "Adds computer crimes as a form of racketeering. Expands the ways in which you could be guilty of the CFAA — including making you just as guilty if you plan to 'violate' the CFAA than if you actually did so. Ratchets up many of the punishments. Makes a very, very minor adjustment to limit 'exceeding authorized access.' Expands the definition of 'exceeding authorized access' in a very dangerous way. Makes it easier for the federal government to seize and forfeit anything." TechCrunch also reports rumors that the plan is to push the bill through quickly for approval with a number of other "cybersecurity" bills in mid-April.

Share on Google+

Read more of this story at Slashdot.



Ask Slashdot: Why Buy a Raspberry Pi When I Have a Perfectly Good Cellphone?
Mar 25th 2013, 22:27

scorp1us writes "I've been looking into getting a Raspberry Pi, but I end up needing a case, a display, and some way to power it, and wanting some degree of portability. It seems to me that even the most outdated cellphone has far superior features (screen, touch screen, Wifi, 3g/4g camera(s), battery etc) in a much better form factor. The only thing that is missing are the digital/analog in/out pins. So why not flip it around and make a USB or bluetooth peripheral board with just the pins? I've been looking for this and can't find any, but does anyone know of any in the corners of the internet? I don't care what phone platform."

Share on Google+

Read more of this story at Slashdot.



Digg Hints Its Replacement For Google Reader Will Include Social Media Content
Mar 25th 2013, 21:44

RougeFemme writes "To capitalize on Google Reader's shutdown, Digg is building an RSS reader from scratch. But this Reader replacement will go beyond RSS to include social media content, like Facebook, Tumblr, Hacker News, Reddit, LinkedIn, etc. From their blog post: 'Google did a lot of things right with its Reader, but based on what we’re hearing from users, there is room for meaningful improvement. We want to build a product that’s clean and flexible, that bends easily and intuitively to the needs of different users. We want to experiment with and add value to the sources of information that are increasingly important, but difficult to surface and organize in most reader applications — like Twitter, Facebook, Tumblr, Reddit, LinkedIn, or Hacker News. We likely won’t get everything we want into v1, but we believe it’s worth exploring."

Share on Google+

Read more of this story at Slashdot.



PayPal To Replace VMware With OpenStack
Mar 25th 2013, 20:57

Julie188 writes "This should make VMware nervous. PayPal and eBay are yanking VMware software from some 80,000 servers and replacing it with OpenStack. Initially, PayPal is replacing VMware on about 10,000 computer servers. Those servers will go live this summer."

Share on Google+

Read more of this story at Slashdot.



Yahoo Buys UK Teen's Smartphone News App
Mar 25th 2013, 20:12

judgecorp writes "Seventeen year old Nick D'Aloisio has sold his smartphone app Summly to Yahoo for an undisclosed sum. The app — created when he was 15 — aggregates news stories by topic and condenses them for time-strapped readers. D'Aloisio and his team will go to work at Yahoo when the deal closes. From the article: 'Summly was founded by 17-year old Nick D’Aloisio when he was just 15 from his home in London. The service works by sorting news stories by topic and condensing them into bite-sized chunks for time-conscious readers. The Summly application will be closed down and integrated with Yahoo’s existing range of mobile applications. D’Aloisio and the Summly team will be joining Yahoo as part of the transaction, which is subject to customary closing conditions and is expected to close in the second quarter of 2013.'"

Share on Google+

Read more of this story at Slashdot.



Direct-to-Vinyl Recording Makes a Comeback (Video)
Mar 25th 2013, 19:30

For many decades, gramophone records (the black vinyl discs in Grandma's attic) were made by cutting grooves directly into an acetate disc, then making a mold from that "master" and "pressing records." Nowadays, of course, we use digital recording software on our computers or even on our mobile phones. Vinyl? Strictly for fogies and maybe a few audiophiles who think analog recordings have a depth and warmth that CDs and MP3s lack. Naturally, SXSW is a haven for these folks, and among them Tim Lord found Wesley Wolfe and two German compatriots from vinylrecording.com, busily demonstrating their vinyl recording system, which is sort of the gramophone record equivalent of print on demand. Lots of background music in the video makes the voices a bit hard to hear; some might prefer the transcription -- although those who do will lose out on watching the vinyl recording machine in action. Either way. Or both. Up to you.

Share on Google+

Read more of this story at Slashdot.



Book Review: A Practical Guide To Linux Commands, Editors, and Shell Programming
Mar 25th 2013, 18:45

Rambo Tribble writes "This new, third edition of Sobell's book brings enhancements that add to the text's value as both a learning tool and a reference. This has always been a foundation book for those wanting a professional level of familiarity with Linux. The addition of chapters to introduce the Python language and MySQL database serves to offer the reader practical insights into additional Linux-related technologies." Read below for the rest of Rambo's review.

Share on Google+

Read more of this story at Slashdot.



Scientists Study Getting an Unwanted Tune Out of Your Head
Mar 25th 2013, 18:02

Hugh Pickens writes writes "Richard Gray reports that scientists have found a way to help anyone plagued by those annoying tunes that lodge themselves inside our heads and repeat on an endless loop — when snippets of a catchy song inexplicably play like a broken record in your brain. The solution can be to solve some tricky anagrams to force the intrusive music out of your working memory allowing the music to be replaced with other more amenable thoughts. 'The key is to find something that will give the right level of challenge,' says Dr Ira Hyman, a music psychologist at Western Washington University who conducted the research. 'If you are cognitively engaged, it limits the ability of intrusive songs to enter your head.' Hyman says that the problem, called involuntary memory retrieval, is that something we can do automatically like driving or walking means you are not using all of your cognitive resource, so there is plenty of space left for that internal jukebox to start playing. Dr Vicky Williamson, a music psychologist at Goldsmiths, University of London, says that the most likely songs to get stuck are those that are easy to hum along to or sing and found that that Lady Gaga was the most common artist to get stuck in people's heads, with four of her catchy pop songs being the most likely to become earworms – Alejandro, Bad Romance, Just Dance and Paparazzi. Other surveys have reported Abba songs such as Waterloo, Changes by David Bowie or the Beatles' Hey Jude."

Share on Google+

Read more of this story at Slashdot.



World's Most Powerful Private Supercomputer Will Hunt Oil and Gas
Mar 25th 2013, 17:22

Nerval's Lobster writes "French oil conglomerate Total has inaugurated the world's ninth-most-powerful supercomputer, Panega. Its purpose: seek out new reservoirs of oil and gas. The supercomputer's total output is 2.3 petaflops, which should place it about ninth on today's TOP500 list, last updated in November. The announcement came as Dell and others prepare to inaugurate a new supercomputer, Stampede, in Texas on March 27. What's noteworthy about Pangea, however, is that it will be the most powerful supercomputer owned and used by private industry; the vast majority of such systems are in use by government agencies and academic institutions. Right now, the most powerful private supercomputer for commercial use is the Hermit supercomputer in Stuttgart; ranked 27th in the world, the 831.4 Tflop machine is a public-private partnership between the University of Stuttgart and hww GmbH. Panega, which will cost 60 million Euro ($77.8 million) over four years, will assist decision-making in the exploration of complex geological areas and to increase the efficiency of hydrocarbon production in compliance with the safety standards and with respect for the environment, Total said. Pangea will be will be stored at Total's research center in the southwestern French city of Pau."

Share on Google+

Read more of this story at Slashdot.



Landsat's First Images Show Rocky Mountains In Stunning Detail
Mar 25th 2013, 16:47

Zothecula writes "We haven't heard anything from NASA's Landsat Data Continuity Mission (LDCM) spacecraft since its launch in February, but the satellite is now ready to start sending its first images back home. The first batch of photos are part of a three-month testing period, and show the meeting of the Great Plains with the Front Ranges of the Rocky Mountains in Wyoming and Colorado. Viewed from space, it's already a pretty spectacular scene, but the images from the LDCM managed to enhance it even further."

Share on Google+

Read more of this story at Slashdot.



Dell Confirms and Details Rival Bids From Blackstone and Icahn
Mar 25th 2013, 16:14

DavidGilbert99 writes "Dell has confirmed it has received 'two alternative acquisition proposals' from billionaire investor Carl Icahn and the world's largest equity firm Blackstone. These bids rival the $24.4 billion offer made by co-founder Michael Dell and equity firm Silver Lake last month, who want to take the company private. Dell also confirmed details of the two offers, with both exceeding Michael Dell's original offer of $13.65 per share, with Blackstone offering $14.25 and Icahn offering $15 per share."

Share on Google+

Read more of this story at Slashdot.



Video Game Industry Starting To Feel Heat On Gun Massacres
Mar 25th 2013, 15:43

An anonymous reader writes "While much of the scrutiny following the lone gunman-perpetrated massacres at Aurora, CO and Newtown, CT has fallen on the National Rifle Association and its lobbying efforts against gun control, the shooters in both of the aforementioned incidents seemed to have been encouraged by violence in movies and video games. The New York Daily News' Mike Lupica reported last week that investigators of the Newtown case found a huge spreadsheet in the Lanza home where 20-year old Adam Lanza had methodically charted hundreds of past gun massacres, including the number of people killed and the make and model of weapons used. A Connecticut policeman told Lupica 'it sounded like a doctoral thesis, that was the quality of the research', and added, '[Mass killers such as Lanza] don't believe this was just a spreadsheet. They believe it was a score sheet. This was the work of a video gamer'. In response, the Entertainment Software Association and other lobbyists representing the video game industry have ramped up their Washington lobbying efforts. While still tiny in dollar terms next to the NRA's warchest, this effort seemed to help derail a proposal to fund a Justice Department study of the effects of video games on gun violence, offered as an amendment on the gun control bill by a Republican senator. A spokesman summarized the ESA's position: 'Extensive research has already been conducted and found no connection between media and real-life violence.'"

Share on Google+

Read more of this story at Slashdot.



FAA Pushed To Review Ban On Electronics
Mar 25th 2013, 15:08

First time accepted submitter sfm writes "Ever tangle with a grumpy flight attendant over turning off your Kindle Fire before takeoff? This may change if the FAA reviews their policy for these devices. The FAA is under extreme pressure to either change the rules or give a good reason to keep them in place. From the article: 'According to people who work with an industry working group that the Federal Aviation Administration set up last year to study the use of portable electronics on planes, the agency hopes to announce by the end of this year that it will relax the rules for reading devices during takeoff and landing. The change would not include cellphones.'"

Share on Google+

Read more of this story at Slashdot.



Ask Slashdot: Setting Up a Computer Lab In a Developing Country
Mar 25th 2013, 14:25

First time accepted submitter levanjm writes "Hi all, I am looking for some advice. I am a mathematician at a small liberal arts school who has dabbled in Linux for a number of years. I have had the chance to teach a few courses and summer camps about Linux to college and high school students. Recently I made a trip to Guatemala and visited a school in Labor de Falla. While there I was talking with people associated with the school about how great it would be to be able to set up a computer lab for the kids. To make a long story short, I approached my school about finding a way to make this happen and to get my students involved in volunteering. I have received notification that my school has given me an in house grant to try to get this project rolling. They have also donated six computers to get things started. While I have been making plans in case the funding came through, I wanted to open this up to as many eyes as possible because I am sure there are plenty of concerns I have not considered. What are your thoughts on how to best implement the lab setting? I am a firm believer in the Open Source philosophy so proprietary software is not on my radar. The PC's donated are a little old (4 or so years old), but would run Edubuntu without any issues. I originally thought about how awesome a Raspberry Pi lab would be to set up. I am also wondering if there are any Kickstarter type of foundations that might be used to help solicit donations to purchase additional equipment and help cover costs of getting the equipment to the school. It would be amazing to get enough funding to give computers to the teachers in addition to a lab. I am sure there are other issues I have not even considered yet, so any thoughts you have to share would be wonderful."

Share on Google+

Read more of this story at Slashdot.



Graphene Aerogel Takes World's Lightest Material Crown
Mar 25th 2013, 14:00

cylonlover writes "Not even a year after it claimed the title of the world's lightest material, aerographite has been knocked off its crown by a new aerogel made from graphene. Created by a research team from China's Zhejiang University in the Department of Polymer Science and Engineering lab headed by Professor Gao Chao, the ultra-light aerogel has a density of just 0.16 mg/cm3, which is lower than that of helium and just twice that of hydrogen."

Share on Google+

Read more of this story at Slashdot.



Design Patterns: C-Swipe: An Ergonomic Solution To Navigation Fragmentation On Android
Mar 25th 2013, 13:40


  

There are 3,997 different Android devices. Your navigation should work with all of them. C-Swipe can help: It is an alternative navigation pattern for tablets and mobile devices that is novel, ergonomic and localized.

This article provides a detailed walk-through of the design and code and provides a downloadable mini-app so that you can try out C-Swipe to see whether it's right for your app.

Size, Complexity Increasing

The number of touch devices is increasing, with new devices and features being introduced daily. If we look at recent Windows OS developments, one clear trend is that touch devices are getting larger. Already, the lineup includes 12-, 15- and 21-inch touchscreens and touch-friendly applications are becoming more complex and full-featured, now including standard Microsoft Office apps optimized for touch. And if the latest 12.85-inch Chromebook Pixel with its 2560 × 1700 touchscreen display is any indication, Google is likewise serious about integrating touch into larger hardware for serious computing.

It's only a matter of time before Android OS is forced to catch up; however, scaling the current Android 4.x action bar scheme may not be realistic or ergonomically desirable for all applications or device types.

I'm proposing C-Swipe as an alternative navigation pattern, based on the natural ergonomics of the human hand. C-Swipe can be used to bring up a contextual menu anywhere on the touchscreen by swiping the thumb in a natural semicircular arc along the surface. This gesture is roughly in a shape of the letter C when executed with the right hand — hence, the name of the pattern (the gesture is called a "reverse C" when executed with the left hand).

Content Is King

Imagine the entire surface of a mobile or tablet touch device being devoted to content. To use the functionality or navigation, the user would swipe the screen with their thumb in a natural semicircle gesture anywhere on the device. They could make this touch gesture while holding the device comfortably and securely with two hands, while the device is flat on the table, while reading in bed, or in any position and orientation they choose. That's because all they need to do is swipe the screen with their thumb.

The swipe of the thumb causes a semicircular contextual menu to display. When the menu comes up, the most commonly used function is on top, near the final position of the thumb. Icons and text for the menu are positioned where they will not be blocked by the thumb. The user taps the item they want, and once the action is performed or the screen is tapped anywhere outside the menu, the menu would disappear.

Easy To See, Yet Hard To Reach

Flipboard is an elegant app that has gained legions of loyal fans through its gorgeous UI and effective use of content as navigation. Yet, on Flipboard's detail pages, some options — "Back," "Favorite" and "Like" — are located in the top action bar:

Flipboard app for Android 4.
Fig. 1: The Flipboard app for Android 4 places action buttons in the top action bar. Larger view.

The top action bar is a popular location for navigation and functionality in Android 4 and is recommended in Android 4's design guidelines. The top bar facilitates the discovery of functions: it presents them for easy viewing at the top of the device, where they would never be covered by the user's hands.

Yet placing the actions at the top of the screen is a double-edged sword: reaching the top bar on many devices is difficult. Even on small mobile devices, reaching the top bar requires awkward juggling. Larger devices, such as the popular Galaxy Note, require full use of the second hand to tap the buttons, making both multitasking and relaxed casual use more difficult.

The action bar also takes up important space at the top of the screen. The visible functions serve as an effective learning aid while the user is learning the app. Unfortunately, as soon as the user learns the functions, the bar's visibility becomes a distraction, taking up precious space in the most visually active place on the screen.

Navigation Anywhere

What if there was a way to devote 100% of the screen to content, while allowing the user to effortlessly call up a functional menu from anywhere on the device, wherever their hand is, and provide direct access to all options without any awkward gestures or juggling? That is exactly what C-Swipe does:

Swipe-and-release gesture in Flipboard app.
Fig. 2: In this redesign of the Flipboard app, the user makes a swipe-and-release gesture to bring up the locally accessible contextual navigation. Larger view.

A semicircular swipe with a thumb anywhere on the screen brings up a hidden menu containing the same items as located in the top action bar. Once the menu is open, tapping the desired item with the same thumb is easy.

Two Menu Designs

A C-Swipe gesture can be made in two different but important ways: as a swipe and release or as a swipe only. In each case, the menu would look different. Pick the one that is right for your app. The swipe-and-release design puts the icons inside the menu tiles, as seen in figure 2 above.

The user would swipe the surface with a semi-circular gesture and then release their thumb from the surface of the device. The release is crucial here because otherwise the thumb would cover most of the menu items, making usage awkward.

The second type is swipe only, shown in figure 3 below. The system recognizes the same swipe gesture, but this time the menu is painted while the thumb is still pressed to the surface of the device. Because the thumb is covering the menu options (by design), the items must appear outside of the menu to be visible.

Swipe-only implementation of C-Swipe.
Fig. 3: The swipe-only implementation of C-Swipe puts the icons outside of the menu. Larger view.

Which interaction should you choose?

With swipe only, the thumb maintains contact with the device, activating the menu immediately. This makes navigation efficient: there is literally no wasted motion. However, many testers have preferred the Spartan design that positions icons inside the menu. Try both and decide for yourself, using the enclosed downloadable mini-app. The app features a mixture of the two modes: it uses the swipe-and-release gesture, but positions the icons outside of the menu bar so that you can see how it looks.

Note: Keep in mind that the swipe motion to call up the menu in the demo mini-app requires you to draw a fairly small semi-circle, probably smaller than you'd expect. I wanted this basic demo to work on all devices, small and large, in a wide variety of touchscreen form factors and resolutions (we are hoping to cover all 3,997). Another reason is the anatomy of the human hand: it is much less awkward for a person with large hands to make a small semi-circle gesture with their thumb than for a person with small hands to make a large gesture.

Complete Action Bar Replacement

C-Swipe is basically a complete replacement of the current action bar menu in Android, so you can use it anywhere you might currently use the action bar. As I describe in my upcoming book, Android Design Patterns: Interaction Solutions for Developers, particularly good candidates for the C-Swipe pattern today are experiences that call for a lights-out mode, with hidden Swiss Army knife-style navigation, such as for reading and browsing a magazine.

Another important point is that C-Swipe is almost infinitely extensible: It can be used to add more menu functions than can be seen on the screen, plus two or three levels of menus on top of the existing first-level menu scheme. To access overflow menu functions, the semi-circle inside the circular menu can be enabled as a separate button. As shown in figure 4 below, tapping that button spins the circle around, bringing up the overflow functions; tapping it again returns the menu to the original view. This allows the user to comfortably access 8 to 12 top-level functions.

Accessing the C-Swipe overflow menu.
Fig. 4: Accessing the C-Swipe overflow menu by tapping the central button. Larger view.

To add submenus, consider exploring both swipe-and-release and swipe only:

Two ways to access the C-Swipe submenu.
Fig. 5: Two ways to access the C-Swipe submenu. Larger view.

The top row shows swipe-and-release; tapping the "favorite" function in the open C-Swipe menu brings up a circular selection of stars. The user has to release their thumb from the screen to see the functions available in the submenu, and then tap the option they desire.

Swipe-and-hold (shown in the bottom row) works similarly; the user swipes and keeps their thumb on the screen. Upon sliding their thumb to the desired function (for example, "favorite"), the user would release their thumb from the screen. Then, the main menu would be replaced with the submenu.

The point is that the C-Swipe theme has many variations, and the submenu does not need to be semi-circular. It could be a long list of text and/or icons or a dedicated lightbox, as long as it comes up near where the main C-Swipe menu was invoked.

Why Use C-Swipe?

C-swipe has a number of important benefits:

  • Facilitates immersive experiences
    This highly immersive pattern keeps functionality hidden until needed. It opens up 100% of the screen on any of Android's 3,997 device types to immersive experiences such as shopping, reading, movie viewing and virtual reality.
  • Minimizes arm strain
    C-Swipe is particularly suitable for large touch devices, such as the upcoming 15-, 17- and 21-inch touch tablets. Reaching the top or bottom action bars in Android 4's existing navigation scheme would require large arm gestures, quickly leading to arm fatigue. By contrast, the C-Swipe menu appears wherever the hand is positioned on the screen and does not require large arm movements.
  • Obeys Fitts' Law
    Fitts' Law stipulates that the speed and ease of tapping a button correlates to the size of the target and the distance to it. Thus, tapping a small button on a large tablet is painfully slow and awkward. C-Swipe is unique because it creates navigation anywhere on the screen, and the menu always shows up exactly where the hand is positioned, so the movement needed to select an item is minimal. As a result, movements are more precise and natural.
  • Triggered uniquely
    C-Swipe uses a gesture that (as of the time of writing) is not used for anything else. Thus, it is not likely to be triggered accidentally, and closing it is as easy as tapping anywhere on the screen outside of the menu.

Note that the gesture is a "reverse C" when executed with the left hand. The enclosed source code and mini-app will work with either hand doing the gesture.

Other Applications

C-Swipe does not need to be activated near the edge. When the user tilts a large touchscreen in order to use it comfortably while standing, the C-Swipe navigation can be opened anywhere by making a semicircular swipe with the thumb. Usually, the user would first need to touch the screen with one of the other fingers, such as the index finger, to support the compact gesture.

C-Swipe is unique because it comes with its own "natural" animated transition. The menu simply spins out in a semicircular path, following the movement of the thumb as closely as possible.

Caution

C-Swipe is not easily discoverable. But its discoverability can be aided with an animated watermark or another gentle tutorial pattern. Stating something like, "Swipe with your thumb anywhere on the screen," or animating a watermark several times in different places on the screen can help users discover the gesture:

Introducing C-Swipe with an animated watermark pattern.
Fig. 6: Introducing C-Swipe with an animated watermark pattern. Larger view.

Upon being discovered, the watermark can be permanently removed. C-Swipe is quickly learned, because it is familiar and convenient for the hand and thumb.

Some people believe that the drawback of a C swipe is that it is ergonomically complex and does not translate into anything "real" (like a scroll or a pan). Other designers prefer the larger gestures of Windows' modern UI, where the entire arm transverses the screen from left to right and top to bottom. Still other designers prefer an alternative for large displays: a special multitouch gesture — for example, a five-finger tap or five-finger pinch.

I disagree.

While each of these alternatives to C-Swipe holds a great deal of promise, I find C-Swipe to be the most natural, authentic and economical of touch movements. It is also natural, almost like the user is scratching or grabbing to "dig" into the content on the screen. The swipe can be performed effortlessly with one hand, with the device in almost any position, during almost any typical activity on a mobile device. Much testing with a broad range of people is needed to confirm this.

However, one thing is clear: regardless of the gesture, being able to call up a contextual menu locally on demand is the right model for all kinds of touch devices — so my biggest caution would be not to ignore this important trend.

Source Code Explained

As you can imagine, this function is fairly complex, so this is just a cursory overview, highlighting the main points as you explore the enclosed source code (ZIP).

In order to build the app, you have to first record the custom C-Swipe gesture using the GestureBuilder delivered with the Android SDK. You can read about this detailed procedure in "Creating a Simple Gesture App With Android" by Micha Kops.

Then, in your CSwipeActivity class, you will need to load the custom C-Swipe gesture from the library:

  // Load gestures library          mGestureLib = GestureLibraries.fromRawResource(this, R.raw.gestures_cswipe);          if (!mGestureLib.load()) {              // Show toast if gestures library could not be loaded              Toast.makeText(this, R.string.KMsgErrLoadingGestures, Toast.LENGTH_SHORT).show();          }  

Next, set up a listener to monitor for when the desired gesture is performed.

  // Register gestures listener          mGestureOverlayView.addOnGesturePerformedListener(new GestureOverlayView.OnGesturePerformedListener() {              @Override              public void onGesturePerformed(GestureOverlayView gestureOverlayView, Gesture gesture) {                  onGesture(gestureOverlayView, gesture);              }          });  

When any gesture is performed, you can check whether it matches the C-Swipe gesture using the onGesture() method. We can check whether the gesture performed by the user matches C-Swipe by seeing whether its prediction score is higher than some predetermined value. In this simple demo, we've set a middle-of-the-road value of 3D. Experiment to find the right value. If it is too low, then simple swipes will trigger the function accidentally; if the threshold is too high, then activating the gesture will be too difficult. When the right gesture is detected, the app inflates the special circular menu and populates it with the predefined items.

  if (prediction.score > 3D) {                  // Switch content from gesture overlay view to original content view                  mGestureOverlayView.removeView(mContentView);                  setContentView(mContentView);  // Inflate the CSwipe control view                  final View cSwipePopupContentView = getLayoutInflater().inflate(R.layout.view_cswipe, null);                  mCSwipe = (CSwipe) cSwipePopupContentView.findViewById(R.id.cswipe);  

In our demo mini-app, two kinds of C-Swipes are possible: left and right orientation. This is checked by the following code, which then sets the orientation for the menu anchor.

  // Check the orientation of the CSwipe control based on the selected gesture prediction                  final String predictionName = prediction.name;                  CSwipe.Anchor cSwipeAnchor = CSwipe.Anchor.RIGHT;                  if (predictionName.equals(GESTURE_CSWIPE_LEFT_MARGIN)) { cSwipeAnchor = CSwipe.Anchor.LEFT; }                  else if (predictionName.equals(GESTURE_CSWIPE_RIGHT_MARGIN)) { cSwipeAnchor = CSwipe.Anchor.RIGHT; }                    // Set the CSwipe control anchor according to the selected gesture prediction                  mCSwipe.setAnchor(cSwipeAnchor);  

Set the menu as close as possible to the gesture anchor in order to maintain the illusion of a seamless menu launching directly from the gesture-bounding rectangle.

  // Show the CSwipe control popup window as close as possible to the gesture bounding rectangle                  final RectF gestureBoundingRect = gesture.getBoundingBox();                  mCSwipePopupWindow.showAtLocation(mContentView, Gravity.NO_GRAVITY, (int) gestureBoundingRect.left, (int) gestureBoundingRect.top);  

To launch the distinctive semi-circular menu defined by the outer and inner radius, instantiate the CSwipe class. You can find the complete CSwipe.java code in the Widget folder.

  public CSwipe(Context context, AttributeSet attrs, int defStyle) {          super(context, attrs, defStyle);            final TypedArray attributes = context.obtainStyledAttributes(attrs, R.styleable.CSwipe);            mInnerArcRadius = attributes.getDimensionPixelSize(R.styleable.CSwipe_innerArcRadius,                  (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, DEFAULT_INNER_RADIUS_DP, getResources().getDisplayMetrics()));          mOuterArcRadius = attributes.getDimensionPixelSize(R.styleable.CSwipe_outerArcRadius,                  (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, DEFAULT_OUTER_RADIUS_DP, getResources().getDisplayMetrics()));  

Summary

I will leave it to you, readers, to polish the code for various enhancements: to improve the response time; to create a slick "swing out" opening transition; to tune the gesture threshold; and even to customize the gesture-detection algorithm over time to "learn," thus ensuring the best fit for the device type and the owner's hand size. For now, this demo app should give a good feel for the potential of C-Swipe navigation.

Read about how to install the mini-app on your device in the "Try It Out" section of my previous article on Smashing Magazine, "A Definitive Guide to the Android Carousel Design Pattern."

This code is provided free of charge and distributed under the GNU General Public License v3. See the README_LICENSE file for details. Download the demo mini-app and source code (ZIP).

Enjoy — and be sure to let me know what you think in the comments below.

(al)


© Greg Nudelman for Smashing Magazine, 2013.

Major Find By Japanese Scientists May Threaten Chinese Rare Earth Hegemony
Mar 25th 2013, 13:38

cold fjord writes "It looks like deep sea exploration may pay off big time as Japanese scientists have located rich deposits of rare earth elements on the sea floor in Japanese Exclusive Economic Zone waters, following up on their find two years ago of huge deposits of rare earths in mid-Pacific waters. The cumulative effect of these finds could significantly weaken Chinese control of 90% of the world supply of rare earth metals, which the Chinese have been using to flex their muscles. The concentration of rare earth metals in the Japanese find is astonishing: up to 6,500 ppm, versus 500-1,000 ppm for Chinese mines. The newly identified deposits are just 2-4 meters below sea floor which could make for relatively easy mining compared to the 10+ meters they were expecting... if they can get there. The fact that the deposits are 5,700 meters deep means there is just one or two little problems to resolve : 'A seabed oil field has been developed overseas at a depth of 3,000 meters. . . But the development of seabed resources at depths of more than 5,000 meters has no precedent, either at home or abroad. There remains a mountain of technological challenges, including how to withstand water pressure and ocean currents and how to process the mining products in the ocean, sources said.'"

Share on Google+

Read more of this story at Slashdot.



Lawmakers Seek To Ban Google Glass On the Road
Mar 25th 2013, 12:52

An anonymous reader writes in with news about a West Virginia bill that would prohibit drivers from "using a wearable computer with head mounted display." Republican Gary G. Howell sponsored the bill in reaction to reading an article on Google Glass and said: "I actually like the idea of the product and I believe it is the future, but last legislature we worked long and hard on a no-texting-and-driving law. It is mostly the young that are the tech-savvy that try new things. They are also our most vulnerable and underskilled drivers. We heard of many crashes caused by texting and driving, most involving our youngest drivers. I see the Google Glass as an extension."

Share on Google+

Read more of this story at Slashdot.



Massachusetts May Try To Tax the Cloud
Mar 25th 2013, 12:07

CowboyRobot writes "A proposed tax in Massachusetts may affect software services and Web design and hosting. If approved, the state estimates the tax may bring in a quarter billion dollars in 2014 by expanding its tax on 'canned software' to include some elements of cloud computing. The tax would cover custom-designed software and services based in the cloud. "Custom" software includes the design of Web sites, so the cost to local businesses of a new Web site would increase by 4.5% on contracts to design the site, write Java, PHP or other custom code. The cost of site hosting and bandwidth would also be taxed."

Share on Google+

Read more of this story at Slashdot.



Testers Say IE 11 Can Impersonate Firefox Via User Agent String
Mar 25th 2013, 09:52

Billly Gates writes "With the new leaked videos and screenshots of Windows Blue released, IE 11 is also included. IE 10 just came out weeks ago for Windows 7 users and Microsoft is more determined than ever to prevent IE from becoming irrelevant as Firefox and Chrome scream past it by also including a faster release schedule. A few beta testers reported that IE 11 changed its user agent string from MSIE to IE with the 'like gecko' command included. Microsoft may be doing this to stop web developers stop feeding broken IE 6-8 code and refusing to serve HTML 5/CSS 3 whenever it detects MSIE in its user agent string. Unfortunately this will break many business apps that are tied to ancient and specific version of IE. Will this cause more hours of work for web developers? Or does IE10+ really act like Chrome or Firefox and this will finally end the hell of custom CSS tricks?"

Share on Google+

Read more of this story at Slashdot.



Feedly: The Best Alternative of Google Reader
Mar 25th 2013, 07:10

Advertise here via BSA

Google has announced it's going to retire Google Reader. If the service has been an essential part of your media diet, don't despair. Feedly is the best alternative of your Google Reader, partially because it’s free, cross-platform, and available on multiple devices. Plus, they make importing your Google Reader subscriptions so ridiculously easy that it’s worth a try.

You can easily organize your favorite blogs, news sites, podcasts and Youtube channels and access them all in one place or sync with Google Reader. There are multiple layout options, auto-mark as read, tagging, advanced sharing, keyboard shortcuts.

If you do not like RSS Feeds anymore, you can always follow us on Facebook, Twitter, and Google Plus. You can also subscribe to our newsletter with freebies and exclusive deals from webappers.

feedly

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

Sponsors

Professional Web Icons for Your Websites and Applications

Create Step by Step Guide for Your Website with Intro.js
Mar 25th 2013, 07:01

Advertise here via BSA

Intro.js is better introductions for websites and features with a step-by-step guide for your projects. User have the ability to navigate with the mouse, or the keyboard – ←, →, ENTER and ESC to exit. It’s fast and small, with only 4 KB JavaScript and 2 KB CSS.

Better compatibility is on the roadmap, but currently it should work in recent versions of Firefox and Chrome (probably IE10, too!). It’s Free and open-source (including commercial use). It is released under MIT license.

intro-js

Requirements: JavaScript Framework
Demo: http://usablica.github.com/intro.js/
License: MIT License

Sponsors

Professional Web Icons for Your Websites and Applications

Can Innovation Be Automated?
Mar 25th 2013, 06:57

JimmyQS writes "The Harvard Business Review blog has an invited piece about Innovation Software. Tony McCaffrey at the University of Massachusetts Amherst talks about several pieces of software designed to help engineers augment their innovation process and make them more creative, including one his group has developed called Analogy Finder. The software searches patent databases using natural language processing technology to find analogous solutions in other domains. According to Dr. McCaffrey 'nearly 90% of new solutions are really just adaptations from solutions that already exist — and they're often taken from fields outside the problem solver's expertise.'"

Share on Google+

Read more of this story at Slashdot.



Google Blogger: Vietnamese HS Students Excelling At CS
Mar 25th 2013, 04:01

An anonymous reader writes "A Google engineer visiting Vietnam discovered a large portion of Vietnamese high school students might be able to pass a Google interview. According to TFA (and his blog), students start learning computing as early as grade 2. According to the blogger and another senior engineer, about half of the students in an 11th grade class he visited would be able to make through their interview process. The blogger also mentioned U.S. school boards blocking computer science education. The link he posted backing up his claim goes to a Maryland Public Schools website describing No Child Left Behind technicalities. According to the link, computer science is not considered a core subject. While the blogger provided no substantial evidence of U.S. school boards blocking computer science education, he claimed that students at Galileo Academy had difficulty with the HTML image tag. According to the school's Wikipedia page, by California standards, Galileo seems to be one of the state's better secondary schools."

Share on Google+

Read more of this story at Slashdot.



South Korea Backtracks On China As Source of Cyberattack
Mar 25th 2013, 00:58

hackingbear writes "The suspected cyberattack that struck South Korean banks and media companies this week didn't originate from a Chinese IP address, South Korean officials said Friday, contradicting their previous claim. The Korea Communications Commission said that after 'detailed analysis,' the IP address used in the attack is the bank's internal IP address — which is, coincidentally identical to a Chinese ISP's address, among the 2^32 address space available."

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