Posts

Showing posts from October, 2016

React JS Tutorials for Beginners

Image
React is front end library developed by Facebook. It's used for handling view layer for web and mobile apps. ReactJS allows us to create reusable UI components. It is currently one of the most popular JavaScript libraries and it has strong foundation and large community behind it. If you want to work with ReactJS, you need to have solid knowledge of JavaScript, HTML5 and CSS. Even though ReactJS doesn't use HTML, the JSX is similar so your HTML knowledge will be very helpful. Here, We are posting some React JS video tutorials which will be helpful. React JS - Introduction React JS - Components React JS - Multiple Components and Properties React JS - Children                                  React JS - Events                                  React JS  - Event Handling  React JS - State  React JS - Adding State to Components                               React JS - refs 

Create Desktop Application with PHP

Image
Here we will show you how you can create a web-based desktop application using PHP, CSS, HTML, and JavaScript with the help of PHP Desktop. In fact, PHP Desktop is an easy and simple solution we can use to create very powerful and complex desktop application. What Is PHP Desktop? PHP Desktop is an open source project founded by Czarek Tomczak in 2012 to provide a way for developing native desktop GUI applications using web technologies such as PHP, HTML5, JavaScript and SQLite. Mind you, the development workflow you are used to while creating web applications remains the same. The step of turning an existing website into a desktop application is basically a matter of copy and paste. PHPDesktop is an all-made container that will just swallow your project. With that, you can easily transform an existing website into a desktop application without any modification. When you download PHP Desktop , you will have some set of files and folders; among them you will have a

Simple iPhone Application Development

Image
Here We are going to create a simple iOS App, for this you need a Mac iOS and Xcode IDE. Just follow these steps and you can create a simple “Hello World” program. Step 1  Open XCode and click create new project as shown in below image. Step 2  Select an empty application Step 3  Enter project name and set device family as iPhone. Step 4  Set project location and click create button. Step 5  Your project will be created as shown below. Step 6  Project property windows contains appdelegate files and other supporting files. We need to create a screen/class with xib(user interface). Right click on the project folder and select new file as shown in the below image. Step 7  You have to select Objective-C class and Click next. Step 8  Rename the class to homescreen(what ever you wish) and select UIViewController in the Subclass of dropdown and check the “with XIB for user interface” to include user interface file and click nex

Best Practices to Secure Your Web App

When it comes to application security, in addition to securing your hardware and platform, you also need to write your code securely. This article will explain how to keep your application secure and less vulnerable to hacking. The following are the best habits that a programmer can develop in order to protect his or her application from attack: Input data validation Guarding against XSS attacks Guarding against CSRF attacks Preventing SQL Injection attacks Protecting the file system Protecting session data Proper error handling Guarding included files Input Data Validation While designing your application, you should be striving to guard your app against bad input. The rule of thumb to follow is this: don’t trust user input. Although your app is intended for good people, there is always a chance that some bad user will try to attack your app by entering bad input. If you always validate and filter the incoming data, you can build a secure application.

charanblog: Google 2 Factor Authentication using PHP

charanblog: Google 2 Factor Authentication using PHP : In this tutorial, I have explained how to add Two factor authentication with Google Authenticator and PHP . You can check offic...

Google 2 Factor Authentication using PHP

Google 2 Factor Authentication using PHP In this tutorial, I have explained how to add Two factor authentication with Google  Authenticator and PHP . You can check official Google-Authentication project here. Github Follow the steps. Step 1) Create a unique secret code of length 16 characters. PHPGangsta provides wrapper class for Google Authenticator. You can download using composer. curl -sS https://getcomposer.org/installer | php php composer.phar require phpgangsta/googleauthenticator:dev-master Use the below code to generate the secret code. <?php $authenticator = new PHPGangsta_GoogleAuthenticator(); require 'vendor/autoload.php'; $secret = $authenticator->createSecret(); We need to prepare a QR code using the secret. If you want to read more about QR code generation for Google Authenticator. Github Wiki  echo "Secret: ".$secret; ?> Step 2) Create a QR code withe the generated secret. You can use any QR