SoMe-Things YoU sHould knOw about “PhoneGap”: Android – LeaVe my baThRoom at-least !

PhoneGap Framework

phonegap

Building applications for each platform–iPhone, Android, Windows and more–requires different frameworks and languages. PhoneGap solves this by using standards-based web technologies to bridge web applications and mobile devices. Since PhoneGap apps are standards compliant, they’re future-proofed to work with browsers as they evolve.


The PhoneGap framework was contributed by the Apache Software Foundation (ASF) under the name Apache Cordova and graduated to top-level project status in October 2012. Through the ASF, future PhoneGap development will ensure open stewardship of the project. It will always remain free and open source under the Apache License, Version 2.0.
To develop apps using Phonegap, the developer does not require top have knowledge of mobile programming language but should know languages like, HTML, CSS, JScript.
PhoneGap takes care of rest of the work, such as look and feel of the app and portability among various mobile operating systems and also allows its users to upload the data contents on website and it automatically converts it to various App files.

PhoneGap Environment Setup

Lets see how to setup basic PhoneGap Environment to develop apps easily. PhoneGap supports offline creation of apps using Cordova command line interface and Github, but we concentrate on online creation of apps. As PhoneGap supports only HTML, CSS and JavaScript, it is mandatory that the application should be created using these technologies only. 
An application package must contain following files:
  • Configuration File
  • Icons for App
  • Content (built using web technologies)
Configuration File
App require one configuration file named as “config.xml” that configure all its necessary settings. This file contains all the necessary information required to compile the app.
following is the content of config.xml file
<?xml version="1.0" encoding="UTF-8" ?>
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "com.phonegap.example"
versionCode = "10"
version = "1.0.0" >

<!-- versionCode is optional and Android only -->

<name>PhoneGap Example</name>

<description>
An example for phonegap build docs.
</description>

<author href="https://build.phonegap.com" email="[email protected]">
Hardeep Shoker
</author>

</widget>
The widget element must be the root of your XML document.When using PhoneGap Build, ensure you have the following attributes set on your widget element.
id – The unique identifier for your application. To support all supported platforms, this must be reverse-domain name style (e.g. com.yourcompany.yourapp)
version –  for best results, use a major/minor/patch style version, with three numbers, such as 0.0.1
versionCode – (optional) when building for Android, you can set the versionCode by specifying it in your config.xml.
<name> – The name of the application.
<description> – A description for your application.
<author> – The author of the application, either a company or individual (required for Windows 10 builds).
<platform> – You can have zero or more of these elements present in your config.xml. Set the name attribute to one of ios, android, or windows.If you specify none, all platforms will be built.
Icons
It is important to prepare icons of exact shapes and sizes as required by particular mobile operating system. Here we are using the folders res/icon/ios and res/icon/android/drawable-xxxx..To get this work done fast, you can create a logo of size 1024×1024 and log on to makeappicon.com. This website will help you instantly create logos of all sizes for both android and iOS platform.

PhoneGap App Contents

We can create two type of apps. Online app and Offline App. Following is the directory structure for the applications.
Online App
In online app entire information content is loaded from the Internet.
Online app directory structure
The index.html file contains actual links as it contains at the web server and all its links are either absolute or used with base href tag.
Offline App
Offline app will let you create a web application that is downloaded to its entirety to the mobile devices of a user who can access that offline.
offline app directory structure
The config.xml contains app configuration settings. The index.html file contains homepage of web contents. All the HTML files should contain only relative path not absolute path or base href tag.
Once selected your app type, organize files in above mentioned structure and zip it using any standard tool zip tool.

Sign Your App

Android requires that all APKs be digitally signed with a certificate before they can be installed. For this reason, you need to sign your app. You may need keytool which is a part of standard java distribution.Execute the following command in %JAVA_HOME% in your Windows command prompt or Linux Shell:-

keytool -genkey -v -keystore my_keystore.keystore 
   -alias TutorialsPoint -keyalg RSA -keysize 2048 -validity 10000

It should generate one file.

PhoneGap App Compilation

Now we are ready to compile our first web API-based app. PhoneGap accepts user login created on GitHub or using AdobeID. GitHub is a online repository service where users can upload their contents and use them by providing their URL references.
Following steps are required to create Adobe Id and Compile the application.
Create Adobe ID
Got to https://build.phonegap.com/ and register after that login to your account it will display PhoneGap Console as shown in below
phonegap console

Click on ‘Upload a .zip file’ and upload the .zip file we created, which has the entire web content and configurations. You should see the following window after successful upload

Click on the Android icon and the following screen should appear


Click on drop-down option menu next to Android icon that reads No key selected, click on add a key and the following screen should appear
Provide the file created while signing the App. Then click on ‘Rebuild’ button next to it. The app built by this process can be directly uploaded to Google Play. Click on .apk file and you can download your first web-based free app.Before uploading, app should be tested on either virtual or real devices.

sign file submit form

Learn Android Programming?

D&D Reader

Another app for players of Dungeons & Dragons has been announced, called D&D Reader. Basically it is a kind of e-book reader only for D&D rulebooks and adventures. Instead of bringing a backpack full of books to your game, you bring a single tablet with all the information on it. And to some extent it is searchable, which isn’t the case for paper books.

Now a few years ago I would have said that this is a brilliant idea, exactly what I needed. But since then I spent $280 to get access to all D&D books in digital form on D&D Beyond. As long as I have internet access, that gives me the same functionality: Able to read any D&D book on my tablet and search it. But the new D&D reader app is from a different company. So, you guessed it, if I wanted to use that app as well, I would need to pay *again* for all those books. Which would be the third time, since I already own the books in paper format and on D&D Beyond. Just to have offline access. No thanks!

Wizards of the Coast really need to rethink their strategy on this one. In this time and age it is a great idea to have content available in different ways, paper, online, and offline digital. But a full collection of D&D books is already expensive to buy once. The paper books should include a coupon for all digital versions. I was already exaggerating by buying the books twice, but who on earth is going to go for a third version at full price?

At the Conservative Student Action Summit, Plenty of Old Names, Ideas

Selling old, increasingly discredited ideas to a youthful audience isn’t as easy as it sounds.

Thousands of student activists are headed to South Florida this week for the right-wing version of spring break. What’s being billed as the largest gathering of young conservatives in the country will feature a full roster of red-state crowd pleasers like Wisconsin Governor Scott Walker, Donald Trump Jr, Dinesh D’Souza and Sebastian Gorka. Attendees will also get “first-class activism and leadership training,” not to mention the chance to hobnob with the likes of James O’Keefe.

Meet Turning Point USA

Turning Point USA is the organizer behind the Student Action Summit and purports to be “the largest and most powerful campus activist program in America.” It’s certainly the best funded. While TPUSA was founded by 24-year-old Charlie Kirk, and presents itself as a student-driven group, the real power behind it is considerably older, not to mention wealthier. A number of Republican mega-donors have given massive financial support to the organization in hopes TPUSA can produce the next generation of right-wingers, at a time when most millennials are rapidly shifting left.

Grooming conservative activists isn’t TPUSA’s only goal. The group claims it seeks to “effectively push back against intolerance and bias against conservatives in higher education.” But as a review of recent campus controversies reveals, the real goal is to undermine trust in higher education by framing colleges as enemies of conservatism

Conservative victims

Consider the explosive issue of free speech on campus. Free speech is typically put forward as one of the reasons colleges must give a platform to “controversial” speakers like Richard Spencer to advocate ethnic cleansing, Milo Yiannopolous to publicly insult a transgender student or Charles Murray to explain why black people are genetically inferior to white people. But what about free speech that includes making an obscene gesture to a member of TPUSA? Unacceptable, as Courtney Lawton, a graduate student at the University of Nebraska discovered.

After Lawton was documented making an obscene gesture toward a student in a TPUSA booth in August 2017, the University of Nebraska removed her from her teaching position. As a group of professors pointed out in a letter to Chancellor Ronnie D. Green, silencing a university employee for offending a group that purports to be about campus free speech seems contradictory. But for the University of Nebraska, the political blowback was only beginning.

Since Lawton was removed, Republican officials have proposed cuts to the university budget and called for an end to tenure, and demanded that the university turn over faculty members who have publicly criticized members of the state government.

An unequivocal threat

The events at the University of Nebraska demonstrate just how far some administrations are willing to go to protect conservative students when their feelings are hurt. But TPUSA still portrays universities as a whole as an unequivocal threat. At the University of Wisconsin, a TPUSA chapter is appealing a suspension imposed by the student government after the group violated funding policy. The TPUSA chapter’s GoFundMe page doesn’t mention the violation. Instead, they imply “leftist pushback” is what really motivated the student government’s actions.

Maybe that’s why TPUSA has “secretly funnel[ed] thousands of dollars into multiple college student government elections to elect conservatives.” After all, if the only students in positions of power are those approved by TPUSA, then TPUSA chapters like the one at the University of Wisconsin aren’t likely to have to worry about pesky funding policies.

TPUSA doesn’t just target students who don’t share their political ideology. The organization targets professors as well, specifically through the infamous Professor’s Watchlist, which uses unreliable, incomplete or downright false information to target professors suspected of espousing liberal ideas.

Even the clothing sold by TPUSA pushes an anti-higher education agenda. One of its shirts reads, “I survived college without becoming a liberal.” 

In Prager we trust

The anti-higher education sentiment pushed by TPUSA raises a thorny question. If the students who are being feted at the Student Action Summit can’t trust their colleges and their professors, from whom should they get their education?

Dennis Prager, the founder of Prager U, is happy to help.

Prager U and TPUSA are deeply connected.  (TPUSA founder Charlie Kirk sits on Prager U’s advisory board while Prager U is a sponsor of TPUSA. Dennis Prager is also a featured speaker at the Student Action Summit.) Then there is their ideologically symbiotic relationship. TPUSA seeks to sow a distrust of higher education in young people, encouraging them to embrace conservative alternatives like Prager U. At the same time, Prager U’s videos push the kind of us vs them mentality that drives young people toward groups like TPUSA.

So what kind of education does Prager U offer? First, it’s important to note that Prager U is not a university at all, despite presenting its videos as “courses” that can be watched for “credits.” This appropriation of the language of a university gives a neutral veneer to highly partisan, misleading and simplistic videos that are presented as facts, not arguments.

Consider the “course” on feminism featuring Tammy Bruce, who bemoans that female college students don’t list “wife and mother” as a career goal and complains that feminists believe that they are equal to men in the “sexual arena.” Women are meant to “civilize men,” says Bruce, warning that when women don’t civilize men, society apparently “descend[s] into chaos and the law of the jungle.” And what about the contributions of men to women’s liberation? (This analysis goes into meticulous detail about all the problems with the “course.”)

The video on capitalism, featuring Jared Meyer, is equally problematic. It begins with the speaker declaring, “You can’t stand big government. Really. You can’t,” and ends by reminding viewers that they enjoy capitalism, “you practice it every day” and it’s “time to preach it.”

How can you tell you hate big government? It’s easy. Meyer explains that “going to the Apple Store [is] so fun, but going to the DMV [is] so painful.” The speaker fails to discuss areas like the environment, healthcare and infrastructure where what benefits a corporation can conflict with the needs of human beings. He also fails to address how the government has had to bail out corporations because their recklessness endangered the entire economy.

We shouldn’t be too hard on Meyer, though. After all, all of Prager U’s “courses” are only about five minutes long.

Hard sell

Spend enough time watching Prager videos and clicking around the TPUSA website and you too may be convinced that there’s a burgeoning “student movement for free markets and limited government.” But selling old, increasingly discredited ideas to a youthful audience isn’t as easy as it sounds. Getting 15- to 25-year-olds to embrace extreme free-market policies requires convincing them to overlook the fact that these same policies have directly contributed to financial meltdowns, and as George Monbiot writes, “the offshoring of wealth and power…[and] the slow collapse of public health and education [and] ecosystems.” Not to mention absurd levels of economic inequality that threatens to choke the very generation TPUSA is trying to appeal to.

Which may be why the biggest names at this week’s Student Action Summit aren’t young activists but right-wing hacks and has-beens, in search of a new market for the same tired products they’ve been selling for decades.

Albatross

There must be a rational way to manage buying and playing PC games. There must be an optimum of getting a maximum amount of fun out of a minimum amount of money spent, and getting the best out of each individual purchase. Unfortunately I must say that I am very far away from that optimum.

I have a large library of unplayed Steam games, which isn’t unusual. The rational thing to do would be whenever I have the time to install an unplayed game and play it to find out whether I want to spend more time with it or not. But somehow that second part causes me a problem. For example I recently installed Wolfenstein: The New Order, because I was in the mood to play a shooter game. I played the game for an hour or two, but didn’t really warm up to it. And now the game sits on my desktop and for psychological reasons I don’t really understand feels like an albatross around my neck. When I turn on my computer, seeing the icon of the game doesn’t make me want to play it. But somehow I feel that I *should* play it some more before uninstalling it and moving on. And I don’t want to install the next game before having done that decision. So in the end I end up not playing any PC game at all, but play something casual on my iPad or watch Netflix or do something D&D related.

The rational me realizes that this is pretty idiotic. If I don’t really like this game, I should just ditch it and try the next one. But the not-so-rational part of me has its doubts: Maybe I just wasn’t in a good mood when I tried the game. Maybe it gets better after a while. Maybe the $25 investment in the game necessitates a second try (which my rational self recognizes as a typical sunk cost fallacy).

I believe that a lot about our enjoyment of games isn’t really rational. We are perfectly capable of loving a game, then hating it, then loving it again. I always chuckle when I see Steam reviews of some player who has spend several hundred hours with a game and now tells you that the game sucks. The simple task of playing a game and deciding whether I like it or not turns out to be not simple at all. And then the default mode becomes procrastination until the game lingered so long on my computer that I finally uninstall it. Maybe I should try a service like Steam Advisor to find games I already own which I actually want to play.

CES 2018: Here’s what to expect

What is CES? CES an annual trade show put on by the Consumer Technology Association. It’s one of the biggest tech trade shows in the world with over 170,000 people in attendance. Companies big and small attend the trade show every year, showing off the latest and greatest products they have to offer.

When is CES? CES will take place between Tuesday, January 9 and Friday, January 12, 2018.

Where is CES? Like every year, CES 2018 will be held at the Las Vegas Convention Center in Las Vegas, Nevada.

What can we expect from CES 2018? This year, we can expect to see devices shown off from just about every segment of the technology world, including drones, audio, IoT/smart home, AR/VR, vehicles, and more. We don’t usually see too many smartphones being shown off at CES, at least compared to MWC and IFA.

Most of the major companies we cover here at Android Authority will be in attendance, including Samsung, LG, ASUS, Sony, Huawei, and others. Not many companies have shared which products they plan on revealing at the trade show, though we have heard many rumors that give us a good idea of what to expect. We can also make educated guesses based on what was announced at CES 2017.

So, which products are expected to make their debut at the trade show? Let’s take a look.

Samsung

At CES this year, Samsung will show off its new selfie-focused mid-rangers, the Galaxy A8 (2018) and Galaxy A8 Plus (2018). Announced in December, the Galaxy A8 and A8 Plus sport dual front-facing 16 and 8 MP cameras with f/1.9 aperture lenses. This means you’ll be able to take portrait mode selfies, and blur the background before and after the phone is taken, just like on the Galaxy Note 8.

Related

A few other things worth mentioning about the Galaxy A8 lineup. The A8 features a 5.6-inch 18.5:9 Full HD+ display, while the A8 Plus comes with a 6.0-inch panel with the same resolution. The both come with a 16 MP camera on the back with an f/1.7 aperture, an octa-core processor, 4 GB of RAM, USB Type-C, and support for Samsung Pay. They’ll both go on sale in January, though we don’t have pricing information yet.

According to a recent report from VentureBeat, the Galaxy S9 and S9 Plus are “scheduled to make their first public appearance” at CES. This doesn’t necessarily mean the handsets will be announced at the show— Samsung might just show them off in a teaser video. The official unveiling isn’t slated until February 2018. Though, it wouldn’t surprise us if Samsung used CES to announce an official reveal date for the devices. What we’re saying is, don’t expect to learn a lot about the S9 at CES this year.

Samsung might announce an upgraded version of the Chromebook Pro in Las Vegas.

Samsung could also announce an upgraded version of the Chromebook Pro, which launched at CES 2017. The device, which might take on the Google Pixelbook, is rumored to come with an Intel Core m7 processor and 16 GB of RAM.

LG

LG’s press conference will take place on January 8, a day before CES kicks off. According to a report from BusinessKorea, LG will reveal the G7 at the trade show — but we don’t agree. The flagship will likely make its debut at MWC in Barcelona, same as its predecessor.

But that doesn’t mean LG won’t reveal any new handsets. LG is expected to show off a new device in its K series, just like it did last year. We’ll likely see the LG K10 (2018) at the trade show, which is rumored to come with a 5.3-inch 1080p display, 3 GB of RAM and 32 GB of storage, plus FM radio. This handset could also be LG’s first mid-to-low-end device to feature its recent mobile payments system, LG Pay.

In addition to a few new mid-range smartphones, LG is also expected to announce new TVs and a number of smart appliances.

Huawei

Huawei isn’t expected to launch new smartphones at CES this year, but we will hear some details about the Mate 10 Pro coming to the United States. In a recent interview, Huawei CEO Richard Yu confirmed that Huawei will sell one of its Mate 10 devices (likely the Mate 10 Pro) through wireless carriers in 2018. More details will be revealed at CES.

Read: Huawei Mate 10 and Mate 10 Pro review: All about promises

Rumor has it that the Mate 10 Pro will be sold exclusively by AT&T. There’s no word on how much it will cost or when it will be released, but based on the US release date of the Mate 9, the handset could go on sale a few days after Huawei launches it.

Honor

Editor’s Pick

Honor likely won’t reveal new smartphones at CES. The company has recently launched the 7X and View 10 in the US, Europe, and a few other markets.

The 7X is already available stateside for $200, while the View 10 will go on sale starting January 8. However, Honor hasn’t announced US pricing yet.

That makes us think it could share this info with the public in Las Vegas. A move like this makes sense, as it would allow Honor to put the spotlight on the device right before it goes on sale.

Google

As spotted by Chrome Unboxed, CES 2018 will be the first time Google will be present at the show with a big, standalone booth. Not only that, the company has also reserved eight hospitality suites.

It looks like Google is preparing something big for CES 2018.

So it looks like Google is preparing something big. What exactly? Rumors suggest it could reveal a few new Chromebooks that will join the Pixelbook, which made its debut in October. It’s possible we could see a few other products, although there’s no word on what they might be.

Additionally, Google might use the event to offer consumers a close-up look at its lineup of products. These include the Pixel 2 smartphones, Daydream View VR headset, and smart speakers like the Home Mini, among others.

Nothing has been confirmed yet, so we’ll have to wait until January to find out what Google’s plans are.

ASUS

Rumors suggest that ASUS is working on an upgraded version of its C302CA Chromebook that will go head to head with Google’s Pixelbook. Nothing has been confirmed yet, but there’s a chance we’ll see it at CES.

Editor’s Pick

The device is said to come with the Core m7 processor and 16 GB of RAM, same as the upgraded version of the Chromebook Pro Samsung is reportedly working on.

It’s also possible that ASUS will reveal a new smartphone or two in Las Vegas. The company took the wraps off the ZenFone AR and ZenFone 3 Zoom at CES 2017, so it’s possible we could see followup devices at the trade show.


Many other companies including HTC, Sony, ZTE, and Lenovo will be present at CES 2018, though there are no specific details on which products they might show off. We’ll likely hear more rumors about the products that could make their debut at the show over the next month. When that happens, we’ll update this post to keep you up to speed.

Which product do you think will attract the most attention at CES? Let us know in the comments.

“Hey Google” command for Assistant on Home now rolling out to phones too

There’s an advert currently doing the rounds for Google Home devices that plays up the smart speaker’s ability to recognize more natural sentences rather than rigid command lines. It’s not hard to see the advert as a thinly veiled shot at Amazon’s Echo smart speakers and Alexa’s stricter dialogue patterns.

To some extent this is true, as Google Assistant has been positioned as a friendly, more conversational digital butler ever since it first arrived on the first-generation Pixel phones last year. Yet unfortunately, actually kicking off the chat has always been a little clumsy due to the Assistant’s awkward ‘hotword’: “OK Google”.

Home users thankfully have a little more choice and can say “Hey Google” instead, but on smartphones it’s been “OK Google” ever since the dark days of Google Now. As of today, though, it seems that Google is rolling out the “Hey Google” command for Assistant on phones too.

More: What is Google Assistant? How can you use it?

Android Police reports that some users have begun receiving a notification prompting them to retrain their voice model settings to account for the new hotword. The feature began rolling out for some users back in October, but it appears this is happening on a universal scale.

I didn’t receive the notification personally, but after updating the Voice settings manually on my Pixel 2 XL I found that both “OK Google” and “Hey Google” are now both recognized by Assistant. You can do this yourself by heading to your Settings menu and then tapping Google > Search > Voice > Voice Match > Retain voice model.

Having two phrases instead of one on multiple devices is a step in the right direction for Assistant, but I still can’t shake the feeling that the insistence on using two specific, arbitrary phrases undermines Google’s claim that Assistant offers a more natural experience than its rivals – especially when you can wake Alexa with a single word or rename it entirely.

Which hotword will you be using, “OK Google” or “Hey Google”? Let us know in the comments.

Who Said It: A Republican Congressman or a Classic Christmas Villain? Take the Quiz

Can you tell the difference between Paul Ryan and Ebenezer Scrooge?

There’s something familiar about the way the GOP talks about the poor. If you’ve been paying close attention to Republicans in the House and Senate, they may strike you as being eerily reminiscent of other curmudgeons we normally hear from this time of year—infamous villains like Ebenezer Scrooge from Dickens’ “A Christmas Carol.” Between defenses of their ruthless attempts to dismantle the Affordable Care Act and their ludicrous justifications for passing a bill that slashes taxes for the rich while hiking costs for the poor and middle classes, Republican politicians are sounding more and more like the grumpy, selfish antagonists from our favorite stories of the season.

Don’t believe it? Take this quiz to see if you can tell the difference between real people and fictional characters. Check your answers at the bottom.

When it comes to the poor, Mitch McConnell’s views are virtually the same as Mr. Potter’s from “It’s a Wonderful Life.”

Photo Credit: Liberty Films (Potter, left); Wikimedia Commons (McConnell, right)

1. “I am an old man and most people hate me. But I don’t like them either, so that makes it all even.”

a) Mitch McConnell

b) Orrin Hatch

c) Mr. Potter (It’s a Wonderful Life

2. “We don’t want to turn the safety net into a hammock that lulls able-bodied people into complacency and dependence.”

a) Paul Ryan

b) Ebenezer Scrooge

c) Mitch McConnell

3. “Are you running a business or a charity ward? Not with my money!”

a) Paul Ryan

b) Mr. Potter

c) Sen. Chuck Grassley

4. “I think not having the estate tax recognizes the people that are investing as opposed to those that are just spending every darn penny they have, whether it’s on booze or women or movies.”

a) Sen. Chuck Grassley

b) The Grinch

c) Mr. Potter

5. “Oh, bleeding hearts of the world, unite!”

a) The Grinch

b) Ebenezer Scrooge

c) Orrin Hatch

6. “Are there no prisons? And the union workhouses, are they still in operation? Those who are badly off must go there.”

a) Mitch McConnell

b) Ebenezer Scrooge

c) The Grinch

7. “I have a rough time wanting to spend billions and billions and trillions of dollars to help people who won’t help themselves, won’t lift a finger, and expect the federal government to do everything.”

a) Mr. Potter

b) Paul Ryan

c) Orrin Hatch

8. “Those people who lead good lives, they’re healthy, they’ve done the things to keep their bodies healthy. And right now, those are the people who have done things the right way that are seeing their costs skyrocketing.”

a) Mr. Potter

b) Mo Brooks, Alabama congressman

c) Ebenezer Scrooge

9. “We have got this tailspin of culture, in our inner cities in particular, of men not working and just generations of men not even thinking about working or learning to value the culture of work, so there is a real culture problem here that has to be dealt with.”

a) The Grinch

b) Ebenezer Scrooge

c) Paul Ryan 

10. “Uh-huh. You see, if you shoot pool with some employee here, you can come and borrow money. What does that get us? A discontented, lazy rabble instead of a thrifty working class.”

a) Chuck Grassley

b) Paul Ryan

c) Mr. Potter 

Key: 1:C, 2:A, 3:B, 4:A, 5:A, 6:B, 7:C, 8:B, 9:C, 10:C

Core-PHP vs FrameWorks-in-PHP

PHP can be considered more as a revolution in the web development arena. Beginning with scripting of simple web pages, PHP today has evolved into a language that powers almost 60% of the web. Well, it has been extensively modified to develop frameworks and content management systems to ease the tasks of developers. Essentially, frameworks have some pre-coded functionalities that developers require on a regular basis and content management systems are built with the end user in mind.
We assume that Core PHP means solving a Mathematical problem by using paper and pen. Frame work means solving Mathematical problem by using a calculator.

Core PHP-Solving Mathematical Problem

Only some students can achieve results by using paper and pen as same as in PHP. Only a few of the developers can write the code in an easy way and reliable format.
Core PHP uses the PHP script in its purest form. A developer needs to know the language thoroughly in order to write a clear and concise code using core PHP. Only the experts can write flawless and reliable code using its core form.

Framework – Solving Mathematical problem

Everyone can achieve the result by using the calculator as same as in PHP. Even beginners can write the code in easy way and reliable format.
Frameworks are basically time savers. They have a rich set of functionalities available so that the developer does not have to embed the same code again and again. These frameworks generally have a fixed set of rules and hence the code can be passed on from one developer to another without any hassles. 
In core PHP one developer may not be able to read another developer’s code that easily. Frameworks on the other hand provide consistency in the code and are big time savers when the project needs to be handled by several developers at the same time. Frameworks rarely allow you to write bad code. This ensures less time in debugging and helps you deliver your project faster.
Frameworks Advantages:
  • Framework introduces an extra layer to wrap your business code which in turn provides better manageability and easily workability in teams. If you take an example of any MVC( Model-View-Controller)framework; you can understand that the teams can separately work on Model, Views and controller part. ORM (Object-relational mapping) provides easy scalability.
  • A framework gives you some tools and function to make it easier for yourself. For example the database seeds, the form request classes, the migrations, and so on.
  • In framework everything come as set of predefined codes, helpers, libraries. So, you don’t have to write your own pagination, security code or integrate someone else’s pagination, security scripts. Framework follow specific standard which makes the codes more organized. Besides, frameworks have organized MVC pattern that separate your code into 3 categories, excluding the probability of code.
  • Framework is better because almost everything is provided, you need to write less code and there is less to worry about.
  • Frameworks usually have security classes in the core. Some methods of Input class have flags to clean XSS from _POST or other global array.

Disadvantages:
  • You need to learn more as there is a specific learning curve for specific frameworks.
  • Frameworks are slower than core PHP code.

Core PHP code Advantages:
  • Core PHP offers you a lot of freedom a lot of space for imagination and invention.
  • If code is small; going with procedural PHP/Core PHP is good idea.

Disadvantages:
  • You need to write lots of code that may already be written.
  • There is more to consider about, like security (SQL Injection, XSS), organization of code, separation of business logic, view etc., (that frameworks already do it for you).
Enhance Projects
Everyone wants to move into sophisticated technologies. If any website or web applications have developed in Core PHP, it is difficult to enhance the website components, but if website or web applications has developed in Frame Work PHP, it is very easy to enhance the features.
Lets see some of the widely used PHP Frameworks:

1.Laravel

According to Sitepoint’s recent online survey it is the most popular framework among developers. Laravel has a huge ecosystem with an instant hosting and deployment platform, and its official website offers many screencast tutorials called Laracasts.
Laravel has many features that make rapid application development possible. Laravel has its own light-weight templating engine called “Blade”, elegant syntax that facilitates tasks you frequently need to do, such as authentication, sessions, queueing, caching and RESTful routing. Laravel also includes a local development environment called Homestead that is a packaged Vagrant box.

2.Symfony 

Symfony is a flexible, scalable yet powerful PHP frameworks for MVC application. There are plenty of reusable PHP components that can can be used like Security, Templating, Translation, Validator, Form Config and more. Like Laravel, it’s alss modularize with Composer. Its goal is to make your web application creation and maintenance faster with less repetitive coding.

3.CodeIgniter 

CodeIgniter is a lightweight PHP framework that is initially released in 2006. CodeIgniter has a very straightforward installation process that requires only a minimal configuration, so it can save you a lot of hassle. It’s also an ideal choice if you want to avoid PHP version conflict, as it works nicely on almost all shared and dedicated hosting platforms.
CodeIgniter is not strictly based on the MVC development pattern. Using Controller classes is a must, but Models and Views are optional, and you can use your own coding and naming conventions, evidence that CodeIgniter gives great freedom to developers. If you download it, you’ll see it’s only about 2MB, so it’s a lean framework, but it allows you to add third-party plugins if you need more complicated functionalities.

4.CakePHP 

CakePHP is a PHP framework that support version 4 and above. It is easy to learn with fast and flexible templating. The integrated CRUD (create, read, update and delete) is a handy feature in CakePHP for your database interaction. It also has various built-in feature for security, email, session, cookie and request handling.

5.Yii 2

Yii is a generic Web programming framework, meaning that it can be used for developing all kinds of Web applications using PHP. Because of its component-based architecture and sophisticated caching support, it is especially suitable for developing large-scale applications such as portals, forums, content management systems (CMS), e-commerce projects, RESTful Web services, and so on.
Yii is a full-stack framework providing many proven and ready-to-use features: query builders and ActiveRecord for both relational and NoSQL databases; RESTful API development support; multi-tier caching support; and more.

5. Phalcon

The Phalcon framework was released in 2012, and it quickly gained popularity among PHP developers. Phalcon is said to be fast as a falcon, because it was written in C and C++ to reach the highest level of performance optimization possible. Good news is that you don’t have to learn the C language, as the functionality is exposed as PHP classes that are ready to use for any application.
As Phalcon is delivered as a C-extension, its architecture is optimized at low levels which significantly reduces the overhead typical of MVC-based apps. Phalcon not only boosts execution speeds, but also decreases resource usage. Phalcon is also packed with many cool features such as a universal auto-loader, asset management, security, translation, caching, and many others. As it’s a well-documented and easy-to-use framework.

6.Slim

Slim is a lightweight micro-framework for PHP inspired by Sinatra, a Ruby framework. It has a tiny size without overkill learning curve. It’s built with incredible routing system and focuses on RESTful API with all HTTP methods (GET, POST, PUT, DELETE) supports. To use it, you need at least has a PHP version of 5.2+.

7.Zend

Zend Framework is a scalable and full featured object-oriented PHP framework.It has an online training and certification which make it popular and used by plenty of enterprise organizations. With its OOP (object-oriented programming) and design patterns consistency, you can easily extend custom classes and use only what you need.

8.Nette

The Nette Framework is another player in the world of php web application frameworks – but like most others, it has its right to be here. It comes with great and powerful features, and makes life easier for web developers. Nette uses revolutionary technology that eliminates security holes and their misuse, such as XSS, CSRF, session hijacking, session fixation, etc.
Nette is modern php framework which supports  AJAX / AJAJ, Dependency Injection, SEO, DRY, KISS , MVC, Web 2.0, cool URL

Want to learn Web Technologies?

Dungeons & Dragons today

Dungeons & Dragons is over 40 years old, and I have been playing it for over 35 years. So what is the most surprising aspect of D&D today for me is how popular the game has become suddenly. A streamlined 5th edition and good use of social media, including celebrity support, has moved D&D into the main stream. People now actually watch other people play D&D on Twitch, and not just when it is Vin Diesel or Wil Wheaton. “D&D player on Twitch / YouTube” is now actually a method to become “internet famous”.

I liked 4th edition Dungeons & Dragons. It is a great combination of role-playing game with a balanced tactical combat game for experienced players. But it is not a suitable game for a mass market, it is far too complicated for that. The much less balanced, much quicker, much easier 5th edition is far more suitable for mass popularity.

It also helped that the makers of Dungeons & Dragons stopped shooting themselves in the foot with their internet policy. In the early days of the internet, TSR was notorious for going after fans putting D&D-related materials on the internet. It took a change of owner in 1997 to Wizards of the Coast and then Hasbro in 1999 to get the company to realize that fans on the internet are free advertising. With a game that is hard to explain to somebody who has never played it, a Twitch / Youtube video of interesting people like Chris Perkins running a game with Acquisitions Incorporated at PAX might actually be superior advertising to anything else.

The only people somewhat unhappy by the current popularity of D&D are the makers and fans of Pathfinder. Pathfinder had shoved D&D off the throne of top pen & paper roleplaying game for several years during 4th edition, only to be left in the dust by 5th edition. Now they are planning a comeback with Pathfinder second edition, with a playtest starting in August.

Pope: Fake News Is a Sin

Pope Francis calls on journalists to report correct information, not one-sided reports.

 

 Pope Francis has criticised journalists who dredge up old scandals and sensationalise the news, saying it’s a “very serious sin” that hurts all involved.

Francis, who plans to dedicate his upcoming annual communications message to “fake news”, told Catholic media on Saturday that journalists perform a mission that is among the most “fundamental” to democratic societies.

But he reminded them to provide precise, complete and correct information and not to provide one-sided reports.

The pope said: “You shouldn’t fall into the ‘sins of communication:’ disinformation, or giving just one side, calumny that is sensationalised, or defamation, looking for things that are old news and have been dealt with and bringing them to light today.”

He called those actions a “grave sin that hurts the heart of the journalist and hurts others”.

 

Related Stories

  • Blame the Media? The NY Times Coverage of Clinton v. Trump Was Lacking
  • Watch: Former Navy Officers Tell NY Times They Had a UFO Encounter in 2004
  • Ex-CIA Director Warns ‘Inaccurate, Unprofessional’ Fox News Against Its ‘Conspiratorial Hit Job’ on Robert Mueller and the FBI