Thursday 2 February 2017

Docker Management Commands


The recent release of Docker 1.13.0 saw some interesting updates. One of the feature that really interests me is the release of the Docker Management Commands.



The need:

As an example, consider the following docker command:$ docker rm


When typing these commands, there is often the confusion in the minds of the user if we need to provide an image id or does this apply to container id. Often this resulted in looking up for help which would tell you what was expected, as given below:$ docker rm
“docker rm” requires at least 1 argument(s).
See ‘docker rm — help’.
Usage: docker rm [OPTIONS] CONTAINER [CONTAINER…]
Remove one or more containers


This is now addressed in Docker 1.13.0 with the release of Management Commands. If you simply type docker at the terminal, you will see the section on Management Commands as given below:Management Commands:
checkpoint Manage checkpoints
container Manage containers
image Manage images
network Manage networks
node Manage Swarm nodes
plugin Manage plugins
secret Manage Docker secrets
service Manage services
stack Manage Docker stacks
swarm Manage Swarm
system Manage Docker
volume Manage volumes


So if you are dealing with images, you know that you can begin your command logically with$ docker image <command>


or if you are dealing with containers, it should logically be:$ docker container <command>


This is good design in my opinion and it is something that I have seen across other Command Line Interfaces (CLI) too, that make you mentally decide which resource you want to manage and then there would be typically commands like listing, adding, removing, monitoring, etc.

Thursday 3 January 2013

Ubuntu Phone OS - The Next Big Mobile OS?

Canonical today announced a new version of Ubuntu designed specifically for smartphones to power everything from entry-level handhelds to "high-end superphones" that double as PCs.





The move by Canonical was long expected, although it is coming late to a market already dominated by the iPhone and Android-based devices. Ubuntu for phones isn't a whole new operating system. Instead, it is a "smartphone interface" for Ubuntu. This helps Ubuntu differentiate from other phone operating systems by Voltron-ing itself into a full-fledged PC when docked to a monitor, mouse, and keyboard.
Ubuntu has previously been in the smartphone game with Android devices that become a modified Ubuntu PC when docked. This didn't make much of an impact, as the most prominent such device—the Motorola Atrix and lapdock—has been discontinued.
Ubuntu for Android is a separate product, which Canonical will continue to maintain. The newly announced version of Ubuntu will run on smartphones without any reliance on Android, however. This helps fulfill founder Mark Shuttleworth's promise of having Ubuntu become one operating system from phones to supercomputers.
There will be many challenges, primarily getting hardware partners on board. Canonical's press release today included supporting quotes from ARM and the makers of the Qt application framework, but none from smartphone manufacturers. On a new webpage describing Ubuntu for phones, Canonical tries to lure phone makers with the promise that "[w]e have the needs of network operators, OEMs, and ODMs in mind in bringing Ubuntu to the phone. It offers great performance on handsets with a low bill of materials, while opening up new opportunities for phone and PC convergence at the top end of the market."
Canonical will share more details this afternoon in a press conference and we will update this story with more information. For now, here is more of what we know.
The Ubuntu interface will feature the following:
1. Edge magic: thumb gestures from all four edges of the screen enable users to find content and switch between apps faster than other phones.

2. Deep content immersion—controls appear only when the user wants them.

3. A beautiful global search for apps, content, and products.

4. Voice and text commands in any application for faster access to rich capabilities.

5. Both native and Web or HTML5 apps.

6. Evolving personalized art on the welcome screen.

Entry-level Ubuntu phones will require a 1Ghz Cortex A9 processor and between 512MB and 1GB of memory, while the high-end superphones that double as PCs will require a quad-core A9 or Intel Atom processor and at least 1GB RAM.
Canonical will try to avoid the type of fragmentation that affected Android by providing "engineering services to offload the complexity of maintaining multiple code bases… freeing the manufacturer to focus on hardware design and integration," the company said. "For silicon vendors, Ubuntu is compatible with a typical Android Board Support Package (BSP). This means Ubuntu is ready to run on the most cost-efficient chipset designs."
Canonical also said Ubuntu for phones "doesn’t have the overhead of a Java virtual machine, so all core applications run at full native speeds with a small memory footprint." A QML toolkit and sample application are available for developers to download. A forthcoming Ubuntu software development kit will make it easier to build applications that run on both the desktop and phone.
The Ubuntu Software Centre will be extended to phones for use as an app store, but sadly it sounds like Ubuntu phones will get some of the same carrier-built apps that come with many Android devices and are generally useless.  Canonical said, "Ubuntu offers compelling customization options for partner apps, content, and services. Operators and OEMs can easily add their own branded offerings. Canonical’s personal cloud service, Ubuntu One, provides storage and media services, file sharing and a secure transaction service which enables partners to integrate their own service offerings easily."
Web apps will also play a big role, with Canonical's "unique Web app system [that] lets you quickly adapt any Web property for installation as an app on the phone, running independently of the browser, with its own icon and access to system services."
In addition to low-cost smartphones, Ubuntu will help OEMs build a "single enterprise superphone" that converges phone, PC, and thin client into one (in Canonical's words). Canonical noted that Asus, Dell, HP, and Lenovo all certify the majority of their PCs to run Ubuntu, but it did not say whether any of these companies plan to make any smartphone/PC hybrids using Ubuntu. That will be one of the things we'll try to find out at this afternoon's press conference, along with timing on when an Ubuntu phone will actually hit the market.
UPDATES: Here are a few more tidbits we've learned from Canonical's press conference:
·         No carriers and handset makers were announced, but Shuttleworth is aiming for a phone to be released in the last quarter of 2013 or the first quarter of 2014.
·         Given that Ubuntu is open source, a full Ubuntu image that can run on a Galaxy Nexus will be available within a few days or weeks.
·         Ubuntu 14.04 (the release in April 2014) will be one image that works across phones, tablets, and desktops.
·         Ubuntu for Android is not dead. "We do expect Ubuntu for Android to ship on marquee devices in 2013, and it will have a multi-year lifecycle," Shuttleworth said. "It enables our partners and ourselves to start opening up the convergence superphone market where you have a phone that can also be a desktop when you'd dock it, without losing some of the things you value in Android itself."
·         Building a market for phones that double as PCs has "been a long and slow process because it's essentially a category that doesn't exist today," Shuttleworth said.
·         Canonical gave reporters some hands-on time with an Ubuntu phone prototype in London today, and will do the same next week at the Consumer Electronics Show in Las Vegas.


Sunday 23 December 2012

Untag yourself from facebook pictures at once

For those annoyed by your slly friends thoughtlessly tagging you in pictures of trees, animals or scenery on Facebook, it's time to heave a sigh of relief! The new privacy policy introduced by facebook yesterday promises to make privacy matters simpler for the user.

The new tool - Request and Removal tool lets users untag multiple photos at once. Users can see this tool in the updated Activity Log.




Here is how you can take actions on multiple photos you are tagged in -
>Go to your Timeline
> click the Activity Log button on your timeline, under your cover photo
> Click on photos link on the left
> and select multiple photos you want to take actions on.
>Users can either ask friends to take down the shots they don't like - they can even include a message about why this is important to you, or they can use the tool to untag multiple photos at once, keeping in mind that while untagged photos don't appear on your timeline, they can still appear in other places on Facebook, such as search, news feed, or your friends' timelines.


Thursday 13 December 2012

Google Zeitgeist: What India searched in 2012



As the year 2012 comes to an end, Google s out with their end-of-the-year lists focus on trending topics that had the highest amount of traffic over a sustained period in 2012 in India. The 'Institute of Banking and Personnel Selection' topped the search charts. This year's Google Zeitgeist includes the top trending searches for gadgets, people, events and Google+ hashtags in India.

Trending searches


The popular banking examination, IBPS topped India's trending searches list for 2012, followed by GATE engineering entrance exam.The other top searches were Sunny Leone, Ek tha Tiger, Rowdy Rathore.
  1. IBPS
  2. GATE Exams
  3. Sunny Leone
  4. Ek Tha Tiger
  5. Rowdy Rathore
  6. CBSE
  7. Rajesh Khanna
  8. Aakash Tablet
  9. HDFC
  10. Jabong

Trending People



When it comes to people, the newly turned actress Sunny Leone has captured the hearts of people to become the most searched person in India even crossing the likes of Rajesh Khanna and Poonam Pandey.
  1. Sunny Leone
  2. Rajesh Khanna
  3. Poonam Pandey
  4. Alia Bhatt
  5. Nirmal Baba
  6. Sherlyn Chopra
  7. Yash Chopra
  8. Saif Ali Khan
  9. Diana Penty
  10. Vilasrao Deshmukh

Most Searched Movies


Salman Khan-starrer Ek Tha Tiger has emerged as the most searched movie online in the country, while Akshay Kumar's Rowdy Rathore was second.
  1. Ek Tha Tiger
  2. Rowdy Rathore
  3. Jannat 2
  4. Housefull 2
  5. Raaz 3
  6. Jism 2
  7. Barfi
  8. Ishaqzaade
  9. Agent Vinod
  10. Vicky Donor

Most Searched News


The volatile stock market helped the Sensex to become the most searched news item, while the demise of former Maharashtra Chief Minister Vilasrao Deshmukh was second in the list. Anna Hazare‘s campaigns lost steam this year, ranking fourth, behind Hurricane Sandy in the US. Controversies surrounding Aseem Trivedi’s cartoons, Abhishek Manu Singhvi’s videos and crisis at Kingfisher Airlines also ranked high in the list.
  1. Sensex
  2. Vilasrao Deshmukh Death
  3. Hurricane Sandy
  4. Anna Hazare
  5. Aseem Trivedi Cartoons
  6. Abhishek Manu Singhvi
  7. Kingfisher Airlines
  8. Earthquake in Chennai
  9. Pranab Mukharjee President
  10. Rajesh Khanna Death


Wednesday 12 December 2012

Google I/O 2013

All the Google fans are requested to save the date 15-17th May for Google I/O 2013, says a tweet from Google's official account. The Google I/O developers conference, where the firm is likely to unveil Android 5.0 this year, features hghly technical, in-depth sessions focused on building web, mobile, and enterprise applications with Google and open web technologies. 






Of course, the firm has so far kept quiet about what we can expect from next year's conference, but the developers have already started speculating.

It's likely that Google will unveil the next version of its Android operating system, which is probably to be branded Android 5.0 Key Lime Pie. No idea what to expect from the next generation mobile operating system, but speculation suggests that it will feature improved support for multiple accounts and a tweaked user interface.

It is also predicted that Google will unveil a new Nexus device at the San Francisco conference, as it announced its debut tablet, the Google Nexus 7, at this year's keynote.


Wednesday 12 September 2012

Secret Android Codes

Given that Android is open-source and user-friendly, most of the information and setting are easily available. However, there are some deep setting hidden within. Here are a list of codes that would help you know more about your device. 

1. *#*#4636#*#*
This code can be used to get some interesting information about your phone and battery. It shows following 4 menus on screen:
  • Phone information
  • Battery information
  • Battery history
  • Usage statistics
2. *#*#7780#*#*
This code can be used for a factory data reset. It’ll remove following things:
  • Google account settings stored in your phone
  • System and application data and settings
  • Downloaded applications
It’ll NOT remove:
  • Current system software and bundled applications
  • SD card files e.g. photos, music files, etc.
PS: Once you give this code, you get a prompt screen asking you to click on “Reset phone” button. So you get a chance to cancel your operation.
3. *2767*3855#
Think before you give this code. This code is used for factory format. It’ll remove all files and settings including the internal memory storage. It’ll also reinstall the phone firmware.
PS: Once you give this code, there is no way to cancel the operation unless you remove the battery from the phone. So think twice before giving this code.
4. *#*#34971539#*#*
This code is used to get information about phone camera. It shows following 4 menus:
  • Update camera firmware in image (Don’t try this option)
  • Update camera firmware in SD card
  • Get camera firmware version
  • Get firmware update count
WARNING: Never use the first option otherwise your phone camera will stop working and you’ll need to take your phone to service center to reinstall camera firmware.
5. *#*#7594#*#*
This one is my favorite one. This code can be used to change the “End Call / Power” button action in your phone. Be default, if you long press the button, it shows a screen asking you to select any option from Silent mode, Airplane mode and Power off.
You can change this action using this code. You can enable direct power off on this button so you don’t need to waste your time in selecting the option.
6. *#*#197328640#*#*
This code can be used to enter into Service mode. You can run various tests and change settings in the service mode
7. WLAN, GPS and Bluetooth Test Codes:
*#*#232339#*#* OR *#*#526#*#* OR *#*#528#*#* – WLAN test (Use “Menu” button to start various tests)
*#*#232338#*#* – Shows WiFi MAC address
*#*#1472365#*#* – GPS test
*#*#1575#*#* – Another GPS test
*#*#232331#*#* – Bluetooth test
*#*#232337#*# – Shows Bluetooth device address
8. *#*#8255#*#* => This code can be used to launch GTalk Service Monitor.
9. Codes to get Firmware version information:
*#*#4986*2650468#*#* – PDA, Phone, H/W, RFCallDate
*#*#1234#*#* – PDA and Phone
*#*#1111#*#* – FTA SW Version
*#*#2222#*#* – FTA HW Version
*#*#44336#*#* – PDA, Phone, CSC, Build Time, Changelist number
10. Codes to launch various Factory Tests:
*#*#0283#*#* – Packet Loopback
*#*#0*#*#* – LCD test
*#*#0673#*#* OR *#*#0289#*#* – Melody test
*#*#0842#*#* – Device test (Vibration test and BackLight test)
*#*#2663#*#* – Touch screen version
*#*#2664#*#* – Touch screen test
*#*#0588#*#* – Proximity sensor test
*#*#3264#*#* – RAM version
11. To get to a File copy screen for backing up your images, videos, voice memos, and other media files, type in *#*#273283*255*663282*#*#*
12. If you want to change default actions for the End Call and Power button, punch in *#*#7594#*#* and change those settings.
13. Android also supports the Service Mode, invoked with the *#*#197328640#*#*code, that lets you run tests related to the WiFi, Bluetooth, and GPS circuitry. Other factory tests include LCD (*#*#0*#*#*), vibration and backlight (*#*#0842#*#*), touchscreen (*#*#2664#*#*), RAM (*#*#3264#*#*), proximity sensor (*#*#0588#*#*), and more.
14. Voice Dialer Logging Enabled => *#*#8351#*#*
15. PUK Unlock (from emergency dial screen)
**05*<PUK Code>*<enter a new pin>*<confirm the new pin>#