The NBA 2K franchise back with NBA 2K18 now in the Play Store

2K, Inc

  • NBA 2K18, the newest entry in the iconic franchise, is now on the Play Store
  • The game includes updated mechanics, an expanded script in career mode, and a new game mode
  • The soundtrack features artists like Kendrick Lamar, Naughty by Nature, and Nas

It’s never been a better time to be a sports fan with a smartphone. Not only are there an endless amount of apps like theScore and 365 Sports that keep you up to date on your teams, but sports games are getting better and better. Most of the important sports franchises are available as mobile versions now. The list includes ultra-popular titles like Madden, Fifa, NBA 2K18 and more.

The latest version of NBA 2K just hit the Play Store with a ton of improvements over last year’s version. New features like an improved MyCAREER mode and “The Association” mode join an improved soundtrack. In the updated career mode, the script has been expanded and more interactions are available for your player. Association Mode is a new multi-season mode that reminds us a lot of Dynasty Mode from other games. 

See also

Music has always been a staple of sports games and it’s no different for NBA 2K18. 2K promises an “eclectic mix” of music with artists like Future, Kendrick Lamar, Shakira, Nas and more. Gameplay controls are now improved and new gameplay mechanics like sprinting on defense are now included in the game. 

2K came under fire earlier this year for the console version of NBA 2K. The game is packed with microtransactions for everything from improving your career mode player to giving your player a new haircut. Sadly, it looks like the mobile version is no different. On top of the $7.99 price tag, NBA 2K18 features in-app purchases that range all the way up to $49.99. Ouch.

People don’t seem to mind, though, because the game currently sits at a 4.0 rating on the Play Store. There are only about 250 reviews so that may change, but we’ll have to wait to find out. If you want to check out NBA 2K18, hit the button below.

get it at google play

Naming and Directory Concepts,JaVa – is not MaVa


Java Naming and Directory Services

A Naming Service provides a mechanism for giving names to objects so you can retrieve and use those objects without knowing the location of the object. Objects can be located on any machine accessible from your network, not necessarily the local workstation.
A real-world example is a phone directory. It stores telephone numbers against names and addresses. To find people’s phone numbers is simply a matter of using their name (and possibly address) to identify an entry in the phone book and obtaining the stored phone number. There are a few complications, such as finding the right phone book to look in, but it is essentially a simple process.
Incidentally, naming services have a similar problem to that of finding the right phone book. This is known as obtaining a context. A name can only be found if you examine the right context (phone book).
A Directory Service also associates names with objects but provides additional information by associating attributes with the objects.
The yellow pages phone directory is a simple form of a directory service. Here, businesses often include advertisements with additional information such as a list of products sold, professional qualifications, affiliated organizations, and even maps to their premises. These attributes add value to the name entry. A directory service will normally provide the ability to find entries that have particular attributes or values for attributes.
Yellow page style phone books also store names under categories—for example, hairdressers or lawyers. Categorizing entries can simplify searching for a particular type of entry. These categorized entries are a form of sub-context within the directory context of the local phone book.

Why Use Naming And Directory Services?

Naming Services provide an vital mechanism for de-coupling the provider of a service from the consumer of the service. Naming services allow a supplier of a service to register their service against a name. Users, or clients, of the service need only know the name of the service to use it.
Think of the phone book once more, and how difficult it would be to find someone’s phone number without it. Obtaining your friend’s phone number would mean going to their home and asking, or waiting until you meet up with them again—which may be difficult to organize because you can’t phone them to arrange the meeting.
It is very difficult to imagine a world without naming services.

What is JNDI and why we NEEDED it?

When you build an application, chances are you have to depend on some other resources built by somebody else. There is a directory or naming service that maps or bind name to such resources so that you can use  the name and get the resource into your application. Such resources could be an object or simply just location to object. Such services are important because it provides way to expose the those resources to be used and reused. For instance:
DNS (Domain Name System): 
It maps people-friendly names (such as www.google.com) into computer-friendly IP addresses in dotted-quad notation (192.168.0.1).

LDAP (Lightweight Directory Access Protocol) 
It provides access to hierarchical structural information about users, networks or systems over IP network through url and other attributes names.(e.g cn=Martin Bond, ou=Authors, o=SAMS, c=us).
NIS (Network Information System) 
It provides access to file and application resources through ID and password.
So, the common thing is they all are naming systems that binds the name to the object of our interest. Those objects or resources may or may not be on the same host and just be reference to object. No mater where they are naming service provide the lookup service to find such object by name.
The difference is the naming convention each of those naming services has undertaken. For instance:
  • DNS uses the dot notation to construct the full domain name. (www.google.com)
  • LDAP uses comma to separate the components while uses key/value pair to distinguish each components. (‘cn=Rupesh Bho, o=ComPlus, c=US’) .
With such differences, it would be nightmare for the application developers if they have to spend writing code to bring various naming servers every time they work on the application. This is where JNDI comes into play.
JNDI is a API which provides the uniform standard to access any naming or directory services into your application. Remember JNDI is just interface, not implementation.

JNDI architecture consists of API and Service Provider Interface(SPI). Java application use the JNDI API to access a variety of naming and directory services. The SPI enables a variety of naming and directory services to be plugged in transparently, thereby allowing the Java application using JNDI API to access their services.
JNDI is included in Java SE. To use JNDI, you must have the JNDI classes and one or more service providers. Some service providers like LDAP, RMI and DNS are included with the JDK, other you can find from other vendors.

Context and InitialContext:

The Context interface plays a central role in JNDI. A context represents a set of bindings within a naming service that all share the same naming convention. A Context object provides the methods for binding names to objects and unbinding names from objects, for renaming objects, and for listing the bindings.
JNDI performs all naming operations relative to a context. To assist in finding a place to start, the JNDI specification defines an InitialContext class. This class is instantiated with properties that define the type of naming service in use and, for naming services that provide security, the ID and password to use when connecting.
 Let’s take a look at Context’s methods:
  • void bind(String stringName, Object object): Binds a name to an object. The name must not be bound to another object. All intermediate contexts must already exist.
  • void rebind(String stringName, Object object): Binds a name to an object. All intermediate contexts must already exist.
  • Object lookup(String stringName): Returns the specified object.
  • void unbind(String stringName): Unbinds the specified object.

Want to learn more about JAVA?

Build a Game Without Coding : Android- LeaVe my baThRoom at-least !

Do you have innovative ideas about android games but don’t know how to code ?
Then do not worry about it. If you are interested in making your own games and don’t know coding then you may be  surprised to know that there are many development programs/tools available which do not require any programming or coding skills.

There are software called Game Builders which provide drag and drop facility to create games.But before you start developing your games you must know following things:

  • You should decide Narrative of your game and also how your game would look like.
  • Decide Rules and Control for the game
  • Last but very important Graphics and Music for the game
Lets check out some game builders

1. GameMaker

Looking for a tool that will allow you to make games not just for mobile devices also for video game system then GameMaker is the perfect tool for you. It is popular and most robust tool. It provides customization for development environment by choosing predefined skins or create your own.
GameMaker Studio 2 is the latest and greatest incarnation of GameMaker!
It has everything you need to take your idea from concept to finished game. With no barriers to entry and powerful functionality, GameMaker Studio 2 is the ultimate 2D development environment!


Following  games developed using GameMaker

  • Galactic Missile Defense
  • wanderlust:adventures

    2. BuildBox

    Buildbox is the world’s first software that truly allows anyone to create amazing games regardless of technical skill. Due to its unique user interface, making games becomes a fluid process that doesn’t require any scripting, programming or software design experience. It provide various option such as drag and drop,it also support to create any imaginable 2D games.


    Following  games developed using BuildBox
    • Color Switch
    • The Line Zen
    • Trump On The Run

    Conclusion

    In Today’s Android gaming industry  it is very easy to develop games.There are thousands of new games are being published both by big companies and individual developers but not all of the game makers know how to code. Even you can make games without writing any single line of code.

    So if you have any innovating idea about games but don’t know programming then  simply use game builder tools to develop your own game.

    Interested to learn Android Programming ?

    The One Scenario in Which Trump Would Risk Impeachment and Fire Robert Mueller

    The president reportedly expects to be exonerated soon.

    President Donald Trump believes that special counsel Robert Mueller will soon send him a letter that completely exonerates him of any wrongdoing — but the president’s allies fear that such a letter will never come.

    CNN reports that Trump has recently been boasting to allies that the Russia probe will be over very shortly, and that Mueller will personally exonerate him. The president believes this, CNN’s sources say, because his attorneys have tried to manage him by telling him that he faces no real danger from the probe.

    However, some of the president’s allies believe this is delusional, wishful thinking — and they fear what Trump will do if that exoneration letter never comes.

    One Trump ally tells CNN that the president will likely have a “meltdown” after months go by without an exoneration letter, after which “he’ll try and fire Mueller and then be impeached.”

    Another Trump ally similarly warns that Trump’s lawyers are playing a dangerous game by buttering him up with happy talk about the Mueller probe ending shortly.

    “I’ve known him long enough to know that disappointing him is a problem and they’ve built up a level of expectations for him that are unrealistic,” the source said. “[They’ve] lulled him into a false sense of security.”

     

     

    Related Stories

    • MSNBC Shows Frightening Clip of Trump and Putin Using Exact Same Talking Points
    • MSNBC Shows Scary Clip of Trump and Putin Using Exact Same Talking Points
    • Fox News’ Jeanine Pirro Delivers Her Most Disturbing Monologue of Trump’s Presidency

    Irk a Politician This Holiday Season by Giving to These Progressive Causes

    Republican leaders won’t thank you, but others in need will.

    For some progressives looking for holiday gifts, there are guides to ethical and feminist products. Others prefer to donate to an organization or cause. This holiday season, let your gift-giving be inspired by celebrities and their charitable donations. Celebrities like Mila Kunis have been donating to Planned Parenthood in Vice President Mike Pence’s name—and others have followed suit.

    Instead of donating to a charitable organization in the name of a loved one or friend, try gifting in the name of a politician who stoked the dumpster-fire of 2017 politics. Support the work of these important organizations and give a reminder that the resistance is stronger than ever.

    1. If the Alabama special election had you on the edge of your seat and the thought of child-molester Roy Moore (who has still not accepted the election results) makes you want to punch a wall while throwing up…

    Photo Credit: Emily C. Bell / YouTube

    …then donate to organizations and campaigns working to support voting rights and black candidates. When pollsters examined the special election voter demographics, Doug Jones was victorious because of black voters, specifically black women (96 and 98 percent voted for Jones, respectively). In response, The Cut released a list of organizations and campaigns working toward voting access and political empowerment of black women. Check out Woke Vote and Higher Heights, and give Roy Moore a reminder of the power of local organizing.

    2. If you despite head of the EPA Scott Pruitt for refusing to recognize human contributions to climate change and for subsequently leading the government in throwing the planet under the bus in 2017, and you’re appalled by the plethora of climate change deniers, not just in the White House but also in Congress…

    Photo Credit: Gage Skidmore/WikiCommons

    …then support those who are standing up to them, like the youth activists who protested at the UN climate summit. You can also donate to organizations educating and raising awareness about climate change, including Earthjustice and 350.org.

    3. If you oppose politicians like Representative Steve King for his support of the DACA repeal and for saying Dreamers can “live in the shadows”… 

    Photo Credit: WikiCommons

    …donate to organizations like United We Dream, which is calling for a clean #DreamActNow and organized a national call day on Thursday.

    You can also support organizations like Movimiento Cosecha and the Immigrant Defense Project that are fighting back on Trump-administration policies, protesting the actions of ICE and advocating for the rights of immigrants.

    4. If you’re outraged over Donald Trump ignoring the crisis in Puerto Rico…

    Photo Credit: Shealah Craighead/ WikiCommons

    …and his childish behavior when he visited:

    …donate to organizations that are providing services on the ground in Puerto Rico and working on rebuilding efforts due to the destruction of Hurricane Maria. A list of reputable organizations includes Friends of Puerto Rico and Light and Hope for Puerto Rico: A Citizen Campaign, which is raising money to purchase and deliver specific supplies: solar lights, phone chargers and washing machines that don’t require electricity.

    5. If you hate that Health and Human Services Secretary Tom Price and GOP lawmakers are reducing access to birth control, something Price clearly has no knowledge of…

    …and the GOP tax bill, which is an overall travesty for poor people, because of health care provisions that will remove the individual mandate and hurt access to birth control…

    Donate to organizations concerned with access to birth control and reproductive healthcare, like the Center for Reproductive Rights and Planned Parenthood, and feel inspired by their recent activism to stand up to the Trump administration for the birth control rollback:

     

     

     

     

    Related Stories

    • In Alabama, Black Women Saved America From Itself—as They’ve Always Tried to Do
    • The Alt-Right Is Melting Down in the Wake of Roy Moore’s Stunning Defeat
    • Whitefish Energy Fleeced Puerto Rico During Recovery Efforts: Report

    Charles Sykes, Anti-Trump Conservative, Looks for Common Ground with the Left

    Some conservatives are just as horrified as progressives.

    Charles J. Sykes is among the more reasonable conservative voices in America now. Formerly a popular conservative talk radio host in Wisconsin, he once specialized in the sort of invective that drives ratings and barroom rants: The Census Bureau was a “bully”; Bill Clinton’s Justice Department was not unlike the Nazis; and so on. In the words of Milwaukee Magazine, he lived in “a Chicken Little reality where the sky is always falling and every public figure is forever running for cover.”

    Then came Trump. During the 2016 campaign, Sykes broke ranks with Republicans over the candidacy of the oft-bankrupted real estate mogul. Sykes wrote a book titled How the Right Lost Its Mind. He became a regular contributor to the New York Times and a cogent critic of Trumpism. 

    When I spotted Sykes at the Miami Book Fair, I had to ask him a question many people are asking: Can the left and right unite to get rid of Trump?

    Here’s our conversation, edited for length.

    Jefferson Morley: The country is in an emergency situation with Trump, and I think every possible solution should be considered, even things that haven’t been tried before, like the left working with the right. What could the left learn from the right at this moment when we have an incompetent, ignorant, impulsive, deceptive president?

    Charles J. Sykes: First of all, I agree with every way you just described him, so let’s start with that. We have some commonality. If there is a Venn diagram between left and right, there’s not a lot of overlap these days, but there is some overlap, and that overlap is crucial on things like the truth ought to matter. Facts ought to matter. Rule of law ought to matter. Let’s find that common ground.

    I find it interesting that people on the left are now suddenly very interested in the whole idea of checks and balances, and that’s OK because this is now an emergency, so let’s talk about it.

    People on the right have to come to grips with, have we become a post-intellectual, post-knowledge movement? I think that’s important.

    The one suggestion I would make [to the left], no political conversation can begin by people saying, “Will you confess now that you are a bigot and you’ve always been a bigot?”

    Also recognize that there are conservatives who are as horrified, if not more horrified than you are, by what’s happened.

    JM: What was the moment for you in the last few years when you realized what was coming? Was there an ‘aha’ moment?

    CJS: No, there wasn’t one moment. It was this long, soul-crushing slog where I kept thinking, “This can’t happen. This won’t happen,” and then the growing recognition that the conservative movement was much more broken than I had thought. I thought I understood what [the movement] was about. I thought I understood who we were. And then I started to realize, this can’t be happening, if I was right.

    There were two phases of this, both of which had their own soul-crushing qualities. The first was Trump’s rise to the nomination over other much more acceptable candidates, and the way the Republican electorate was voting for this man who was so manifestly unfit, so obviously a con man.

    It wasn’t that the information was not available. And this was helped by the capitulation of much of the conservative media. To watch Fox News, Rush Limbaugh and others play this disingenuous, sick game of enabling him, I don’t know what game they were playing, but it had disastrous consequences.

    The second phase, which was just as disillusioning, was watching all the people who… understood who Trump was—and in Wisconsin we voted against him overwhelmingly—fall in line behind him, one by one, because it was a binary choice, tribal politics. No matter how awful or terrible he was, no matter how many women he sexually assaulted, no matter how many disabled reporters he mocked, at least he wasn’t as hateful as Hillary Clinton.

    I don’t think I was naïve about how partisan we’ve become, but the power of that tribalism was really on display there.

    JM: You talk about being surprised. I think people on the left would say there’s a straight line from George W. Bush to Donald Trump, and that’s what set the stage for this. So you can’t exempt yourself from blame.

    CJS: I don’t. I went back and I said, OK, I had been wrong about some things that I obviously did not fully understand, and I may have participated in myself. As you go back, you start to realize, wow, here are some warning signs I should have seen…

    But there is a discontinuity between the party that used to listen to William F. Buckley and now listens to Sean Hannity; that used to read Edmund Burke and now reads Ann Coulter. So some things are not a straight line.

    JM: Did you have a favorite among the Republican candidates?

    CJS: I expected all along I was going to support Marco Rubio or someone like Marco Rubio. But he didn’t even last long enough to get to Wisconsin.

    JM: Now we live in a social media world. We have the Facebook behemoth. Can we ever get back to having credible sources of information that are not immediately impugned and sidelined because of people’s preconceived notions?

    CJS: That is an urgent question. That may be the most urgent question. You ask, was there an ‘aha’ moment for me? I think it was sometime in the middle of 2016 when I realized that I was no longer able to push back against fake news. So with people I had known for 20 years, I could not penetrate this alternative reality silo. They were immune. Nothing outside that bubble was credible to them. That was the ‘oh shit’ moment: where they had succeeded in delegitimizing everything on the outside. I don’t know how we put that back together.

    JM: Is Robert Mueller our savior? How do you think about the Russia investigation?

    CJS: It is immensely important. This is one of the most disillusioning parts of what’s happening: the failure on the part of conservatives to recognize that this is a fundamental issue of our democracy, if we had the Russians trying to undermine our democracy, this is very big and deep.

    Having grown up in the era of Ronald Reagan to hear Republicans say, “It’s not that bad.”… I had a caller on the CSPAN show I just did who was defending Vladimir Putin, saying, “Putin stands up for his people just like Donald Trump.”

    Obviously, this is a serious investigation. Don’t expect the Trump base to be moved because the battlefield has been prepped already: “this is biased, this is a witch hunt.” I actually believe if we had this media environment in the 1970s, Richard Nixon would have survived Watergate. I’m not kidding. Imagine if he had a Hannity and a Breitbart News and a Fox News.

    On the other hand, I think that this is like turning over a rock. You are going to find so many things besides just the Russian collusion. We say that Donald Trump is a con man and a fraud, but that’s the way he’s done business for years. Now suddenly you have a guy [Mueller] who is going to get everything.

    … I think if Trump tries to fire Mueller, I think you will have a full-fledged constitutional crisis.

    JM: I feel like that’s inevitable: He will fire Mueller.

    CJS: I think that anything that is conceivable, is perhaps likely. So, going back to your original question, that’s when you have to have Democrats and principled Republicans voting together. That’s when you are going to need conservative Republicans to say we’re going to draw the line.

    It has already begun to a certain extent. Don’t underestimate the significance of John McCain, Bob Corker, Jeff Flake, and to a lesser extent Ben Sasse. They’re not running for reelection, so that’s a downside. The upside is that they speak for a lot of Republicans who are not willing to speak out. So there’s a residual potential there—unless you scare them off.

    JM: So if you’re a congressman from Wisconsin and somebody says here’s an article of impeachment, are you ready to vote for that?

    CJS: Now? No, it’s premature. This is one of the rare moments where I think Nancy Pelosi is the real voice of political savvy. She understands: Keep your powder dry. Don’t burn it all until the real stuff comes down. To talk about impeachment at this point, all it does is reinforce the instinct to circle the wagons.

    You know more stuff is coming. Wait until you get it. Don’t cry wolf.

    JM: Do you think Trump will survive his term?

    CJS: I assume he will, yes. But the issue of the women [he groped or assaulted] is going to come back…. You have this massive cultural shift and it’s inevitable that his accusers are going to get their moment. You have this contrast between all of these other men whose careers have been annihilated. And here you have the president of the United States who has never apologized, who has paid no price for this whatsoever. Republicans are going to have to answer: Do you believe these women or do you not believe these women? That is coming.

     

     

    Understanding Synchronous and Asynchronous JavaScript – paRt_1 : JavaScript – its DiFFereNt

    Javascript logo
    In JavaScript Synchronous and Asynchronous are very important concepts. Beginners might find them difficult to learn.
    When two or more things happen at same time then it is Synchronous and when they don’t that’s Asynchronous. These definitions are easy to understand but it’s complicated than it looks from here. So let’s dig a little deeper. 
    You’d probably call a normal function in JavaScript synchronous, right? And if it’s something like setTimeout() or AJAX that you’re working with, you will refer to it as being asynchronous, yes? What if I tell you that both are asynchronous in a way?
    Let’s understand with an example. We’ll get help from Mr. K,

    Scenario 1:-> Mr. K is trying Synchronicity 

    Here’s the setup:
    1. Mr K is someone who can answer tough questions, and carry out any requested task.
    2. The only way to contact him is through a phone call.
    3. Whatever question or task you got, in order to ask Mr K’s help to carry it out; you call him.
    4. Mr K gives you the answer or completes the task right away, and lets you know it’s done.
    5. You put down the receiver feeling content and go out on a date.
    What you’ve just carried out was a synchronous (back and forth) communication with Mr K. He listened as you were asking him your question, and you listened when he was answering it.

    client calling server

    Scenario 2:-> Mr. K isn’t happy with Synchronicity 

    Since Mr K is so efficient, he starts receiving many more calls. So what happens when you call him but he’s already busy talking to someone else? You won’t be able to ask him your question – not till he is free to receive your call. All you will hear is a busy tone.

    So what can Mr K do to combat this?
    Instead of taking calls directly:
    1. Mr K hires a new guy, Mr J and gives him an answering machine for the callers to leave messages.
    2. Mr J’s job is to pass on a message from the answering machine to Mr K once he knows Mr K has completely finished processing all previous messages and is already free to take a new one.
    3. So now when you call him, instead of getting a busy tone, you get to leave a message for Mr K, then wait for him to call you back (no date time yet).
    4. Once Mr K is done with all the queued up messages he received before yours, he will look into your issue, and call you back to give you an answer.
    Now here lies the question: were the actions so far synchronous or asynchronous?
    It’s mixed. When you left your message, Mr K wasn’t listening in to it, so the forth communication was asynchronous.
    But, when he replied, you were there listening, which makes the return communication synchronous.
    Until now you must have understand synchronicity in communication. It’s time to bring in JavaScript in the picture.

    JavaScript An Asynchronous Language

    When someone labels JavaScript asynchronous, what they are referring to in general is how you can leave a message for it, and not have your call blocked with a busy tone.
    The function calls are never direct in JavaScript, they’re usually done via messages
    JavaScript uses a message queue where incoming messages (or events) are held. An event-loop (a message dispatcher) sequentially dispatches those messages to a call stack where the corresponding functions of the messages are stacked as frames (function arguments & variables) for execution.
    The call stack holds the frame of the initial function being called, and any other frames for functions called via nested calls on top of it .

    JavaScript Call Stack
    JavaScript Call Stack

    When a message joins the queue, it waits until the call stack is empty of all frames from the previous message, and when it is, the event-loop de-queues the previous message, and adds the corresponding frames of the current message to the call stack.
    The message waits again until the call stack becomes empty of its own corresponding frames (i.e. the executions of all the stacked functions are over), then is de-queued.
    Consider the following code:

    function foo(){}
    function
    bar(){
    foo();
    }
    function
    baz(){
    bar();
    }
    baz();

    The function being run is baz() (at the last row of the code snippet), for which a message is added to the queue, and when the event-loop picks it up, the call stack starts stacking frames for baz(), bar(), and foo() at the relevant points of execution.

    Push action in Call Stack

    Once the execution of the functions is complete one by one, their frames are removed from the call stack, while the message is still waiting in the queue, until baz() is popped from the stack.

    Pop Action in Call Stack


    Remember, the function calls are never direct in JavaScript, they’re done via messages. So whenever you hear someone say that JavaScript itself is an asynchronous programming language, assume that they are talking about its built-in “answering machine”, and how you’re free to leave messages.

    But what about the specific asynchronous methods?

    So far I’ve not touched on APIs such as setTimeout() and AJAX, those are the ones that are specifically referred to as asynchronous. Why is that?
    It’s important to understand what exactly is being synchronous or asynchronous. JavaScript, with the help of events and the event-loop, may practice asynchronous processing of messages, but that doesn’t mean everything in JavaScript is asynchronous.
    Remember, I told you the message didn’t leave until the call stack was empty of its corresponding frames, just like you didn’t leave on a date until you got your answer — that’s being synchronous, you are there waiting until the task is complete, and you get the answer.
    Waiting isn’t ideal in all scenarios. What if after leaving a message, instead of waiting, you can leave on the date? What if a function can retire (emptying the call stack), and its message can be de-queued even before the task of the function is complete? What if you can have code executed asynchronously?
    This is where APIs such as setTimeout() and AJAX come into the picture, and what they do is… hold on, I can’t explain this without going back to Mr K, which we’ll see in the second part of this article. Stay tuned…

    Here is how tech companies are responding to the repeal of net neutrality

    Save the Internet

    Unless you’ve been in living under a rock the past several months, you knew that a vote on net neutrality was coming. It played out just as everyone suspected and the FCC voted to reclassify internet service providers like Comcast, Spectrum, and Verizon. The vote removed restrictions on the companies that many felt were vital to an open and fair internet.

    Here are how some large tech companies are reacting the vote.

    Google

    Google is a proponent of net neutrality and has repeatedly voiced its support of it in the past. In a statement released to news organizations after the vote, Google pledges to continue to follow the policies of net neutrality. Here is its statement in full:

    We remain committed to the net neutrality policies that enjoy overwhelming public support, have been approved by the courts, and are working well for every part of the internet economy. We will work with other net neutrality supporters large and small to promote strong, enforceable protections.

    Facebook

    Facebook is another company that voice support for strong net neutrality regulations. Many fear that with the repeal of net neutrality, world-changing companies like Facebook may never be able to sprout up. Facebook’s COO released the following statement after the vote:

    

    Netflix

    As the largest video streaming service on the internet, Netflix has a vested interest making sure people are able to stream their content. Even though the company has seemingly waffled on its net neutrality, it came out with a firm statement stating, “We’re disappointed in the decision to gut #NetNeutrality.” Here is the company’s full statement:

    Amazon

    Amazon is another of the tech giants that stood behind net neutrality. With its repeal, Amazon’s Chief Technology Officer took to Twitter to share his statement:

    Microsoft

    Microsoft is a staunch supporter of net neutrality, saying earlier this year, “Without an open internet, broadband internet access service providers gain the power to outright prevent edge content and services from reaching their customers, levy tolls on edge providers and customers for access to edge content and services, and pick winners and losers in the internet economy, thus subjecting edge provider success to the control of broadband internet access services providers rather than the forces of customer demand.” After the vote, its Chief Legal Officer made the following statement:

    Reddit

    Reddit bills itself as the “Front Page of the Internet”. It’s another company like Facebook that was started by a couple of kids and turned into a phenomenon. If you’ve used the site any time in the last few weeks, you’ll know that the site and (most of) its users are strong supporters of net neutrality. In a statement today, Reddit CEO Steve Hufmann (Spez) said in part:

    It is disappointing that the FCC Chairman plowed ahead with his planned repeal despite all of this public concern, not to mention the objections expressed by his fellow commissioners, the FCC’s own CTO, more than a hundred members of Congress, dozens of senators, and the very builders of the modern internet.

    Nevertheless, today’s vote is the beginning, not the end. While the fight to preserve net neutrality is going to be longer than we had hoped, this is far from over.

    You can read the statement in its entirety here.

    Comcast

    Comcast is one of the companies that could seemingly benefit from the net neutrality changes. Many fear that companies like Comcast could wield its power to prevent users from reaching sites or streaming video content to benefit its own platforms.

    But, According to a blog post by Senior Vice President David L. Cohen, Comcast believes that Congress should move to enact net neutrality laws. Its stance is that the rules enacted by the FCC were just governmental overreach, but it really supports net neutrality. Whether you believe that or not is up to you, but you can read the full blog post here.

    Charter/Spectrum

    Charter is the second largest ISP in the country and obviously had its eye on the FCC’s meeting. After the vote, the company released a statement on its website that read in part, ” Charter has been consistent and clear: we support a vibrant and open internet that enables our customers to access the lawful content of their choice when and where they want it. We commend the FCC Chairman and Commissioners for their action today that re-establishes the light touch regulatory framework that had been in place for decades when the Internet took root and grew into an important tool for daily life and a major engine of economic growth.”

    You can read the rest of its comment here.

    AT&T

    AT&T repeated many of the same sentiments as Comcast and Charter. AT&T’s Senior Executive Vice President of External & Legislative Affairs, Bob Quinn, took to the web to express that the repeal of net neutrality laws isn’t that big of a deal.

    In the post, Quinn states, “AT&T intends to operate its network the same way AT&T operates its network today: in an open and transparent manner. We will not block websites, we will not throttle or degrade internet traffic based on content, and we will not unfairly discriminate in our treatment of internet traffic (all consistent with the rules that were adopted – and that we supported – in 2010, and the rules in place today).”

    You can read the full post here.

    Verizon

    Verizon hosts a Broadband Commitment website that states, “Verizon supports the Open Internet, and is committed to offering services that allow our customers to take full advantage of all of the lawful content and services that the Internet has to offer.” Speaking to Inverse yesterday, Verizon spokesperson Rich Young backed up that sentiment with this statement, “Verizon fully supports the open Internet, and we will continue to do so. Our customers demand it and our business depends on it.”

    T-Mobile

    T-Mobile released a very short statement after the vote. It reads, “We always have and will support an open internet that enables us to provide new and innovative services to our customers and keep them first! We will continue to provide amazing service and support to our customers each day!”

    Sprint

    Sprint’s statement on the repeal of net neutrality is longer than T-Mobile’s, but says just as little. It reads, “Sprint applauds the FCC’s efforts to simplify a complex and challenging issue, while balancing multiple stakeholder interests in this important proceeding. Our position has been and continues to be that competition is the best way to promote an open internet. Complex and vague regulations previously created uncertainties around net neutrality compliance. The Commission’s decision today eliminates those uncertainties and appears to allow Sprint to manage our network and offer competitive products.”


    Which company had the best response?

    Samsung Galaxy A8 and A8 Plus (2018) specs: Infinity Display and a dual selfie camera

    There’s no denying that Samsung’s S-series has boasted some of the finest flagships ever made, but sometimes there’s no match for a bonafide bargain, and that’s what the South Korean giant seems to be delivering with its newly-announced A-series phones, the Galaxy A8 (2018) and Galaxy A8 Plus (2018).

    As the new gold standard of Samsung’s mid-tier range, the Galaxy A8 and A8 Plus look to balance premium design with a steady performance all while retaining a modest price tag. On paper, this year’s A8 phones – which technically replace the Galaxy A5 and Galaxy A7, respectively – appear to deliver on all counts.

    Editor’s Pick

    This time around both the 5.6-inch A8 and the 6-inch A8 Plus sport an elongated Infinity Display with the same 18:5:9 aspect ratio found on the Galaxy S8, S8 Plus, and Note 8. Both panels are Super AMOLED displays with a 2220 x 1080 resolution.

    Despite missing out on the curved edges of its premium counterparts, the A8 and A8 Plus both pack slimline bezels, while leaving enough room for the devices’ most unique feature – a front-facing 16 MP and 8 MP dual-camera. We’ll be putting the pair’s selfie-taking credentials and much more to the test at a later date for a full review, but for now, be sure to check out the table below for all of the key specs.

      Samsung Galaxy A8 (2018) Samsung Galaxy A8 Plus (2018)
    Display 5.6-inch FHD+ Super AMOLED
    2,220 x 1,080 resolution
    441 ppi
    18:5:9 aspect ratio
    6-inch FHD+ Super AMOLED
    2,220 x 1,080 resolution
    412 ppi
    18:5:9 aspect ratio
    Processor Unspecified octa-core platform
    2.2 Ghz + 1.6 Ghz
    Unspecified octa-core platform
    2.2 Ghz + 1.6 Ghz
    GPU TBC TBC
    RAM 4 GB 4/6 GB
    Storage 32/64 GB 32/64 GB
    MicroSD Yes, up to 256 GB Yes, up to 256 GB
    Cameras Rear camera:
    16 MP sensor with f/1.7 aperture, phase-detection auto-focus, video digital image stabilisation (VDis) technology, hyperlapse, and Food Mode

    Front camera:
    16 MP + 8 MP sensor with f/1.9 aperture and Live Focus

    Rear camera:
    16 MP sensor with f/1.7 aperture, phase-detection auto-focus video digital image stabilisation (VDis) technology, hyperlapse, and Food Mode

    Front camera:
    16 MP + 8 MP sensor with f/1.9 aperture and Live Focus

    Audio 3.5mm headphone jack
    MP3, M4A, 3GA, AAC, OGG, OGA, WAV, WMA, AMR, AWB, FLAC, MID, MIDI, XMF, MXMF, IMY, RTTTL, RTX, OTA
    3.5mm headphone jack
    MP3, M4A, 3GA, AAC, OGG, OGA, WAV, WMA, AMR, AWB, FLAC, MID, MIDI, XMF, MXMF, IMY, RTTTL, RTX, OTA
    Battery 3,000 mAh
    Non-removable
    Fast charging
    3,500 mAh
    Non-removable
    Fast charging
    Sensors Accelerometer Barometer
    Fingerprint sensor Gyro sensor Geomagnetic sensor Hall sensor
    Proximity sensor
    RGB light sensor
    Accelerometer Barometer
    Fingerprint sensor Gyro sensor Geomagnetic sensor Hall sensor
    Proximity sensor
    RGB light sensor
    IP rating IP68 water and dust resistance IP68 water and dust resistance
    Network TBC
    LTE Cat. 11
    TBC
    LTE Cat. 11
    Connectivity Wi-Fi 802.11 a/b/g/n/ac (2.4 & 5 GHz)
    Bluetooth 5.0
    NFC
    ANT+
    Location (GPS, Glonass, BeiDou)
    USB Type-C 2.0
    Wi-Fi 802.11 a/b/g/n/ac (2.4 & 5 GHz)
    Bluetooth 5.0
    NFC
    ANT+
    Location (GPS, Glonass, BeiDou)
    USB Type-C 2.0
    Software Android 7.1.1 Nougat Android 7.1.1 Nougat
    Colors Black, Orchid Grey, Gold, and Blue Black, Orchid Grey, Gold, and Blue
    Dimensions and weight 149.2 x 70.6 x 8.4 mm
    172 g
    159.9 x 75.7 x 8.3 mm
    191 g

    Be sure to let us know your thoughts on the Samsung Galaxy A8 (2018) and A8 Plus (2018) specs in the comments below! Is its dual-camera for selfies and (near) bezel-less design won you over?

    Android Widget: Android – LeaVe my baThRoom at-least !

    What is a widget?  In Android, the word widget is a generic term for a bit of self-contained code that displays a program, or a piece of a program, that is also (usually) a shortcut to a larger application. We see them every day on web pages, on our computer desktop and on our smartphones, but we never give too much thought into how great they are. Widgets first appeared in Android in version 1.5, and really gained traction thanks to HTC’s Sense-flavored version of the operating system. Prior to the release of the HTC Hero and our first taste of HTC Sense, widgets were functional, but pretty bland in appearance. Since then, the people making our phones and independent developers alike have done some marvelous things with widgets, and it’s hard to imagine using Android without them.
    Android support to implement widgets for both, the home screen and the lock screen.

    Common Types of Android Widget
    Widget typically fall in one of the following categories

    1. Information Widgets

    Information widgets display information elements that are important to a user and track how that that information changes over time. Touching information widgets typically launches the associated app and opens a detail view of the widget information. Example for information widgets are weather widgets, clock widgets, etc.

    2.Collection widgets

    As the name implies, collection widgets specialize on displaying multitude elements of the same type, such as a collection of pictures from a gallery app, a collection of articles from a news app or a collection of emails/messages from a communication app. Collection widgets typically focus on two use cases: browsing the collection, and opening an element of the collection to its detail view for consumption. Collection widgets can scroll vertically.

    3.Control widgets

    The main purpose of a control widget is to display often used functions that the user can trigger right from the home screen without having to open the app first. A typical example of control widgets are music app widgets that allow the user to play, pause or skip music tracks from outside the actual music app. Power Control Widgets are using to make changes to the system settings easier and simpler. You just need to toggle On or Off almost all the system settings with just one tap.

    4. Hybrid Widget
    They combine the elements of different other widgets in one.

    Some Widget Limitations
    Gestures
    Only two gestures available for widgets are Touch and Vertical Swipe
    Elements
    Due to gestures limitations, some of the UI elements that rely on restricted gestures are not available for widgets.

    To create your own widget and use your widget in layout XML, there are two additional files for you need to create. Here is a list of files you’ll need to create to implement a custom widget:

    XML Definition File – Click on your project and create a new folder called xml. Now right click on the newly created folder and create a new XML file. An XML flie defines the XML element used to instantiate your widget, and the attributes that it supports. The resource type of the XML file should be set to AppWidgetProvider. In the xml file, define some properties which are as follows :-

    <appwidget-provider 
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:minWidth="146dp"
    android:updatePeriodMillis="0"
    android:minHeight="146dp"
    android:initialLayout="@layout/activity_main">
    </appwidget-provider>

    Layout XML [optional]– An optional XML file inside res/layout/ that describes the layout of your widget. You could also do this in code in your Java file.

    Java Implementation File– This is the file that implements the behavior of the widget. If you can instantiate the object from layout XML, you will also have to code a constructor that retrieves all the attribute values from the layout XML file.

    Java File must extend AppWidgetProvider class and override its update method. In the update method, you have to deifne the object of two classes PendingIntent and RemoteViews.

    PendingIntent pending = PendingIntent.getActivity(context, 0, intent, 0);
    RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.activity_main);

    In the end you have to call an update method updateAppWidget() of the AppWidgetManager class.

    appWidgetManager.updateAppWidget(currentWidgetId,views);

    Following are the other Methods of AppWidgetProvider class to manipulate widgets.
    onDeleted(Context context, int[] appWidgetIds)
    This is called when an instance of AppWidgetProvider is deleted.

    onDisabled(Context context)
    This is called when the last instance of AppWidgetProvider is deleted

    onEnabled(Context context)
    This is called when an instance of AppWidgetProvider is created.

    onReceive(Context context, Intent intent)
    It is used to dispatch calls to the various methods of the class

    You also need to declare approvider widget class in Android manifest file as follows

    appWidgetManager.updateAppWidget(currentWidgetId,views);  

    <receiver android:name="ExampleAppWidgetProvider" >

    <intent-filter>
    <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
    </intent-filter>

    <meta-data android:name="android.appwidget.provider"
    android:resource="@xml/example_appwidget_info" />
    </receiver>

    Example

    here is the example of application widget which create basic widget which will open the Web Browser.
    Content of the MainActivity.java

    package net.suven.android.androidwidget;

    import android.app.PendingIntent;
    import android.appwidget.AppWidgetManager;
    import android.appwidget.AppWidgetProvider;
    import android.content.Context;
    import android.content.Intent;
    import android.net.Uri;
    import android.widget.RemoteViews;
    import android.widget.Toast;

    public class MainActivity extends AppWidgetProvider{
    public void onUpdate(Context context, AppWidgetManager appWidgetManager,int[] appWidgetIds) {
    for(int i=0; i < appWidgetIds.length; i++){
    int currentWidgetId = appWidgetIds[i];
    String url = "http://android.suvenconsultants.com/";

    Intent intent = new Intent(Intent.ACTION_VIEW);
    intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    intent.setData(Uri.parse(url));

    PendingIntent pending = PendingIntent.getActivity(context, 0,intent, 0);
    RemoteViews views = new RemoteViews(context.getPackageName(),R.layout.activity_main);

    views.setOnClickPendingIntent(R.id.button, pending);
    appWidgetManager.updateAppWidget(currentWidgetId,views);
    Toast.makeText(context, "widget added", Toast.LENGTH_SHORT).show();
    }
    }
    }

    Content of the activity_main.xml

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
    android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:paddingBottom="@dimen/activity_vertical_margin"
    tools:context=".MainActivity"
    android:transitionGroup="true">

    <TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="SCTPL"
    android:id="@+id/textView"
    android:layout_centerHorizontal="true"
    android:textColor="#ff3412ff"
    android:textSize="35dp" />

    <Button
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Visit SCTPL"
    android:id="@+id/button"
    android:layout_centerHorizontal="true"
    android:layout_marginTop="61dp"
    android:layout_below="@+id/textView" />

    </RelativeLayout>

    Content of the AndroidManifest.xml

    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="net.suven.android.androidwidget" >

    <application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <receiver android:name=".MainActivity">

    <intent-filter>
    <action android:name="android.appwidget.action.APPWIDGET_UPDATE"></action>
    </intent-filter>

    <meta-data android:name="android.appwidget.provider"
    android:resource="@xml/widget"></meta-data>

    </receiver>

    </application>
    </manifest>

    content of the res/xml/widget.xml

    <?xml version="1.0" encoding="utf-8"?>
    <appwidget-provider
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:minWidth="146dp"
    android:updatePeriodMillis="0"
    android:minHeight="146dp"
    android:initialLayout="@layout/activity_main">
    </appwidget-provider>
    Install App and Go to your widget section and add your created widget to the desktop or home screen.

    Android widget application output
    Click here to download Source Code and APK
     Learn Android Programming?