Google Launches Android O developer Preview

Android Oreo ???


Same as Last year google released Android's next version in march ,it makes people really happy to see updates and google just delivers them , they will not get you bored with your phone.
We still have to wait a long time before the actual consumer can use the os ,this is a very early (Developer preview One ) and would definitely have a lots and lots of bugs , but releasing the update early give developers a lot of time to develop apps so when the version comes to market many apps are customized for the new OS harnessing the new available features. Talking about new features of Android O

1.Improvements to battery life which is a thing done in all updates but since this a early versions of software it's hard to say much on this
2. Changes in the notification system in Android. It seems like notifications get tweaked with every iteration of smartphone software, but Android’s approach has generally been better than the competition’s. For O, the big change is that apps can “group” their notifications into categories called “channels.”
3.You can snooze notifications so they appear at a later time, just like you do with email , a very useful feature i always used a other apps for this.
Image result for snoozed notification
4.Another major change that is coming is picture in picture, a feature available on samsung's phones for quite some time now .Looks like google's taking inspirations from samsung same as they did for split screen in Android N.
Image result for s6 multi window

What's new in O?

Android O introduces a number of new features and APIs to use in your apps. Here's are just a few new things for you to start trying in this first Developer Preview:
Background limits: Building on the work we began in Nougat, Android O puts a big priority on improving a user's battery life and the device's interactive performance. To make this possible, we've put additional automatic limits on what apps can do in the background, in three main areas: implicit broadcasts, background services, and location updates. These changes will make it easier to create apps that have minimal impact on a user's device and battery. Background limits represent a significant change in Android, so we want every developer to get familiar with them. Check out the documentation onbackground execution limits and background location limits for details.
Notification channels: Android O also introduces notification channels, which are new app-defined categories for notification content. Channels let developers give users fine-grained control over different kinds of notifications — users can block or change the behavior of each channel individually, rather than managing all of the app's notifications together.

Android O also adds new visuals and grouping to notifications that make it easier for users to see what's going on when they have an incoming message or are glancing at the notification shade.
Autofill APIs: Android users already depend on a range of password managers to autofill login details and repetitive information, which makes setting up new apps or placing transactions easier. Now we are making this work more easily across the ecosystem by adding platform support for autofill. Users can select an autofill app, similar to the way they select a keyboard app. The autofill app stores and secures user data, such as addresses, user names, and even passwords. For apps that want to handle autofill, we're adding new APIs to implement an Autofill service.
PIP for handsets and new windowing features: Picture in Picture (PIP) display is now available on phones and tablets, so users can continue watching a video while they're answering a chat or hailing a car. Apps can put themselves in PiP mode from the resumed or a pausing state where the system supports it - and you can specify the aspect ratio and a set of custom interactions (such as play/pause). Other new windowing features include a new app overlay window for apps to use instead of system alert window, and multi-display support for launching an activity on a remote display.
Font resources in XML: Fonts are now a fully supported resource type in Android O. Apps can now use fonts in XML layouts as well as define font families in XML — declaring the font style and weight along with the font files.
Adaptive icons: To help you integrate better with the device UI, you can now create adaptive icons that the system displays in different shapes, based on a mask selected by the device. The system also animates interactions with the icons, and them in the launcher, shortcuts, Settings, sharing dialogs, and in the overview screen.
Adaptive icons display in a variety of shapes across different device models.
Wide-gamut color for apps: Android developers of imaging apps can now take advantage of new devices that have a wide-gamut color capable display. To display wide gamut images, apps will need to enable a flag in their manifest (per activity) and load bitmaps with an embedded wide color profile (AdobeRGB, Pro Photo RGB, DCI-P3, etc.).
Connectivity: For the ultimate in audio fidelity, Android O now also supports high-quality Bluetooth audio codecs such as LDAC codec. We're also adding new Wi-Fi features as well, like Wi-Fi Aware, previously known as Neighbor Awareness Networking (NAN). On devices with the appropriate hardware, apps and nearby devices can discover and communicate over Wi-Fi without an Internet access point. We're working with our hardware partners to bring Wi-Fi Aware technology to devices as soon as possible.
The Telecom framework is extending ConnectionService APIs to enable third party calling apps integrate with System UI and operate seamlessly with other audio apps. For instance, apps can have their calls displayed and controlled in different kinds of UIs such as car head units.
Keyboard navigation: With the advent of Google Play apps on Chrome OS and other large form factors, we're seeing a resurgence of keyboard navigation use within these apps. In Android O we focused on building a more reliable, predictable model for "arrow" and "tab" navigation that aids both developers and end users.
AAudio API for Pro Audio: AAudio is a new native API that's designed specifically for apps that require high-performance, low-latency audio. Apps using AAudio read and write data via streams. In the Developer Preview we're releasing an early version of this new API to get your feedback.
WebView enhancements: In Android Nougat we introduced an optional multiprocess mode for WebView that moved the handling of web content into an isolated process. In Android O, we're enabling multiprocess mode by default and adding an API to let your app handle errors and crashes, for enhanced security and improved app stability. As a further security measure, you can now opt in your app's WebView objects to verify URLs through Google Safe Browsing.
Java 8 Language APIs and runtime optimizations: Android now supports several new Java Language APIs, including the new java.time API. In addition, the Android Runtime is faster than ever before, with improvements of up to 2x on some application benchmarks.
Partner platform contributions: Hardware manufacturers and silicon partners have accelerated fixes and enhancements to the Android platform in the O release. For example, Sony has contributed more than 30 feature enhancements including the LDAC codec and 250 bug fixes to Android O.

Not much detail are available right now ,i'll update as soon i test and come across more new features.I am testing the new android O on my Nexus 6p.
The sad part is even though google is very quick in releasing updates it's taking a lot of time for consumers to get updates by there sellers.The ecosystem is changing now OnePlus are delivering updates as quick as Nexus get's updates but others are still slow.


Battle of the Internet Giants,The money and Data



Click above to view the full version [h/t Penny Stocks Lab].
Click the animation to open the full version (via http://pennystocks.la/).

Getting started with BigData and Hadoop


Twitter Sentiment Analysis Using Hadoop and Twitter4j


Hadoop Installation Commands

Running Hadoop On Linux Mint (Single-Node Cluster)

Nitesh Singh



Running Hadoop on Ubuntu Linux (Single-Node Cluster)

In this tutorial I will describe the required steps for setting up a pseudo-distributed, single-node Hadoop cluster backed by the Hadoop Distributed File System, running on Linux Mint

Facbook makes all profile picture public secretly!!


Yes,You have read it right and yes it is true.
After the launch of Facebook graph there were drastic changes in privacy and thus left many loose ends.
Most of them were fixed but 1 bug remained you could now see anyone's profile picture even if private, you just needed the profile id facebook.com/profile_id

and now type it after graph.facebook.com/profile_id/ this will give you the public profile as json
now type graph.facebook.com/profile_id/picture?width=800

And you can now see the full Resolution private profile picture.
But today i found to cover there tracks facebook made this kind of a feature your profile picture are no longer private.
Facebook did this secretly no user was informed .Also when you upload a picture you still have privacy control to make picture private or public but they are almost fake.Only control they give is if your photo is private comments will be hidden.Who knows what other bugs might exist in facebook.But whatever may happen the people at Facebook will never admit.
So be aware and USE FACEBOOK AT YOUR RISK!! keeping in mind nothing's can say hidden in this age of techonology where even the so called secure https was also hacked!!

Good Luck!

MindSweepers Editorial

Codathon Editorial

PROBLEM LINK:

DIFFICULTY:

EASY-MEDIUM, MATHS

PREREQUISITES:

Coprime,multiplication,Logic

PROBLEM:

given positive integers x1, x2, . . . , xn with gcd(x1, x2, . . . , xn) = 1, compute the largest integer not representable as a non-negative integer linear combination of the xi . This largest integer is sometimes denoted g(x1, . . . , xn). The restriction gcd(x1, x2, . . . , xn) = 1 is necessary for the definition to be meaningful, for otherwise every non-negative integer linear combination is divisible by this gcd in that case answer would be infinity

EXPLANATION:

Given 2 numbers 'a' and 'b' there equation is ax+by,a and b are coprime
So all number can be generate just plot ax+by=N find a and and but the condition here was that a and b cannot be negative,in that case only will there be a maximum number that cannot be generated.
consider 7,9 7x+9y=k x=(k-9y)/7
multiples of 9remainder with 7Numbers not possible to Generate
922
1844,4+7=11
2766,6+7=13,20
3611,8,15,22,29
4533,10,17,24,31,38
5455,12,19,26,33,40,47
so the biggest not not possible to generate: a*(b-1)+b*-1=a*b-a-b
In the above table we see that with multiples of 9 we have generated all possible remainders of 7. so x=(k-9y)/7 here x can always be intere for any value of k because whatever value of k we take it will give a remainder 0 to 6 and we will put y accordingly to compensate that remainder like k=101 k%7=3 so put y=5
x=(101-9*5)/7 =8

AUTHOR'S AND TESTER'S SOLUTIONS:

Solution :c++ Python

Mr IDC and his Love - Editorial



PROBLEM LINK:

Author: Rahul Johari
Tester: Rahul Johari

DIFFICULTY:

EASY-MEDIUM, MATHS

PREREQUISITES:

Division, Summation of series, modular operation

PROBLEM:

Given a number N and another number MOD, you have to calculate the sum of numbers from 1 to N as:
for ( i=1;i<=N;i++ )
    sum += i % MOD;

EXPLANATION:

By the division algorithm, let N = qm+r with 0 ≤ r < m. Consider the sequence (1 % m),(2 % m), ...,(N % m). It looks like this:
1, 2, 3, ..., m − 1, 0,
1, 2, 3, ..., m − 1, 0,
...
1, 2, 3, ..., m − 1, 0,
1, 2, 3, ..., r
There are q layers, each with m elements and a final layer with r elements.
We know that sum of first N terms is N(N+1)/2 therefore the sum the numbers in each of the q layers is m(m1)/2 and the sum of the numbers in the last layer is r(r+1)/2.
Therefore using this you can easily calculate sum of large values of N also is O(1) complexity.

AUTHOR'S AND TESTER'S SOLUTIONS:

Solution can be found here.

Mr IDC and his Message - Editorial

Author: Rahul Johari
Tester: Rahul Johari

DIFFICULTY:

CAKEWALK

PREREQUISITES:

String handling, typecasting

PROBLEM:

Mr.IDC wants to send letter to his girlfriend but the problem is he has encrypted the letter and his girlfriend doesn't know how to decrypt. So she needs your help in decrypting the letter using a key K given as input.

EXPLANATION:

Mr.IDC has replaced each character with a new character (Ci - K) mod 26 where ( i = [ 0,|message| ] ). So you just have to do:
l = len(s)
    ans = []
    for i in range(l):
        ans.append((ord(s[i])-97+k)%26)
You will get the final string which is the output.

Powered by Blogger.

Search This Blog