EngineeringWay

Shaping the great minds.

Showing posts with label Tutorials. Show all posts
Showing posts with label Tutorials. Show all posts

Saturday, 3 June 2017

Send data to server database from Android Application. | server side connectivity in android | PHP | MySQL | Android | Free hosting for android

6/03/2017 10:03:00 pm
First of all, create account on www.hostinger.in. That provides free sql server database and phpMyAdmin. then after create new hosting account using your cpanel. after that click on "Manage" link, under the Hosting account tab. by clicking on that you will redirect to admin panel of your hosting plan. now on that page, you will find out MySQL database field under database category. click on that and create new database. now go to the admin panel of your hosting plan and click on phpMyAdmin field under database category and enter into phpMyAdmin.


www.hostinger.in

In PHP MyAdmin click on create new table and create database table.

Now download fileZilla from https://filezilla-project.org. and run fileZilla application. and do 'quick connect' using host,username and password. After that open notepad and do copy-paste code given in below link.

you will get information about servername, username, password and dbname from your dashboard of admin panel. after that save that notepad document as .php file and upload it on public_html folder from filezilla(Drag and drop).


FileZilla
Now server side work is done. you can test service by putting hosting IP on URL tab of browser.
now create new android app on android studio to send data on server. copy code given in below link.

and paste it on java file of android activity from where you want to send the data. 
i.e mainactivity.java. just modify link on httppost.

done.

phpMyAdmin
Android App

Sunday, 19 March 2017

OpenStack installation only in 7 steps in Ubuntu 16.04 LTS using Devstack. - IAAS, Private Cloud, Devstack

3/19/2017 01:24:00 am
  • Openstack is a free and open-source software platform for cloud computing, mostly deployed as an infrastructure-as-a-service (IaaS).

  • The goals of the Openstack initiative are to support interoperability between cloud services and allow businesses to build Amazon-like cloud services in their own data centers.


  • It is often referred to in the media as "the Linux of the Cloud" and is compared to Eucalyptus and the Apache CloudStack project. Let's come to the point, How to install Openstack on ubuntu 16.04 LTS or on any other ubuntu version.

Steps To install OpenStack.

Install ubuntu with at least 2GB RAM and 100GB harddisk. And after installation open terminal by using ctrl + a/t  + T

Step 1: Now in terminal type ' sudo -i ' command, it will leads you to the root. now type command ' visudo '. it will open sudoers.tmp file. in that after 
' %sudo ALL=(ALL:ALL) ALL ' line write ' stack ALL=(ALL) ALL ' and save it by ctrl + x.



Step 2: now after making change on sudoers.tmp file, add new user in system by typing command ' add stack '.


Step 3: After creating user named stack. shut down the system and login into system as stack user. after that open terminal again and type command ' sudo apt-get install git ' it will install package installer into your system.


Step 4: After setting up git. fire command 
' git clone https://git.openstack.org/openstack-dev/devstack ' It will clone into devstack and download all the required package for openstack into your system.


Step 5: after that type command ' cd devstack' then ' cd samples '  and  ' cp local.conf ../ '. it will copy local.conf file at root folder  devstack. now fire ' cd ../ ' command. after that type ' nano local.conf ' command. it will open local.conf file into editor.

 

Step 6: In that file just define your local IP address like as shown in below image. and save the file by ctrl + x.


Step 7: Now fire command ' ./stack.sh '. it will start openstack installation. It will take up to 2 hrs. depends on internet connection speed.  after installation finish you can access openstack services by IP address. just write your IP address on url box and enjoy. the default ID is 'admin' and 'demo' and password is 'nomoresecret'.



Sunday, 12 March 2017

How to host your website for free and upload your SQL server database to server - godaddy, bigrock, somee

3/12/2017 12:46:00 am
What is web hosting?

Web hosting is place where you can store your website stuff like html, config or aspx file and also your website database.the term “web hosting” refers to the company that rent out their computer/servers to store your website (hence the word, host) and providing Internet connectivity so that other computers can access to the files on your website. so let's see how to do it for free.

How to do hosting for free?

As per your requirement hosting provider charge for the hosting service but some service provider provide service for free up to some limited amount of data. www.somee.com provides free hosting up to 150mb of data and support ASP, ASP.Net, MS Access, MS SQL database. Single third level domain. and Single addon web domain.

Steps:- 
    
     1.Create account at somee.com and order your free hosting plan. 

Just visit https://somee.com/FreeAspNetHosting.aspx and at bottom of  the page you will find out 'order now' option click on that and create account and order free plan by clicking on checkout button from Shopping cart page.


2. Define domain and Create website.

After checkout, in next window, you have to define your site domain name, site title and zone name as well as server OS. then click on create website. it will create one empty site. and that you can see under 'Websites' category. which resides under 'managed products' of 'User' category.

  

3. Upload your website with config file

Locate 'File manager' under your created website name, here you can upload every file of your project except your database file. that is .mdf file and resides in app_Data folder if you are using asp.net. and also you can create folder if your project is divided into folders by clicking on 'new dir'.


To upload file click on 'upload' option and select files and click on Upload files.

4. Upload Database file.

To Create database go to User -> managed product ->ms sql ->Databases and in that click on 'create'.

 

After creating database, to upload your already created db file, select your newly created DB and go to the bottom of the page. you will find out attach Database link. click on that and upload database file that is .mdf file and log file that is .ldf file and click on upload.


5. Reset Connection string.

Click on database that you have just created and copy the connection string that is define in that page. now go to your config file of project that is under 'File manager' and click on edit text link of config file. now search for connectionString tag and paste new connection string in that. remove the old one.


Done. now you can run your project by domain name. and store data directly at server storage.

Saturday, 4 March 2017

Create and deploy Application using Google App Engine. -PAAS and IAAS

3/04/2017 03:28:00 am
Google App Engine is a cloud computing platform for developing and hosting web applications in Google-managed data centers. Applications are sandboxed and run across multiple servers. Google app engine provide platform as a service and infrastructure as a service for developers. just create application in eclipse and deploy it on app engine.
so let's get started!

Requirements:
  1. JDK.
  2. Eclipse 3.7 + Google Plugin for Eclipse.
  3. Google App Engine Java SDK 1.6.3.1.
  4. Install Eclipse
Steps:
1. Install google plugins for Eclipse.


2. Create new application project in eclipse.
In toolbox of eclipse, click on google icon or GDT pulldown and select 'new web application project.
now deselect Use GWT checkbox under Google sdks field. and link your GAE Java SDK via the “configure SDK” link.


 now click on finish.

3. Hello World
Check the project directory, nothing is new in it. it is same as android studio and normal java web project structure. you can do java coding in java file under 'src' folder, that is highlighted in below picture. 



The new part is appengine-web.xml file which is under 'war' folder. Google App Engine need this to run and deploy the application.




4. Run Application locally.
To run application locally, right click on project and go to run as option and select web application. now open browser and open http://localhost:8888/  here you can see all your projects. click on project name to see servlet of it.



5. Deploy it to Google app engine
Register an account on https://appengine.google.com/, and create an application ID for your web application.In this demonstration, I created an application ID, named “helloworld-160509”, and put it in appengine-web.xml


Now click on Click on GAE deploy button on the toolbar.
Sign in with your Google account and click on the Deploy button.If everything is fine, the hello world web application will be deployed and provide you the URL. to Access application like http://helloworld-160509.appspot.com/

Sunday, 26 February 2017

Mobile app analytics, website analytics- learn how your application is used and Measure Your App Campaigns.

2/26/2017 01:50:00 am
Google Analytics is a free Web analytics service provider that provides statistics and basic analytical tools for search engine optimization (SEO) and marketing purposes. The service is available to anyone with a Google account. Google launched the service in November 2005 after acquiring Urchin. It's most widely used web analytics service on the Internet.

Google Analytics also offered three additional versions:

  • Google Analytics 360.
  • Google Analytics Premium.
  • Google Analytics for Mobile Apps.

Google Analytics features include:

  • Data visualization tools, That includes  dashboard, scorecards and motion charts, which display changes in data over time.
  • Custom reports, That use to view customize data accordingly user's requirement.
  • Email-based sharing and communication.
  • Integration with other Google products, such as AdWords, search console and Website Optimizer.

Few Awesome things you can do with google Analytics:

  • See your most important analytics data first.

you can create multiple dashboards, each containing multiple widgets. To create a new dashboard, simply go under Dashboards in the menu bar of your analytics and then select New Dashboard. Then add your widgets. You can choose from widgets that show you one particular metric, a pie chart comparing metrics, a time line of one to two metrics, or a table showing a dimension with two specific metrics. Each type of widget can also be filtered. the fantastic thing you can do is, you also can view data by date vise. you can change the date range and see all of your widgets update with that date range’s data.

  • Find out which Ad campaigns is giving you more traffic.

To create an advanced segment, click on the Audience and then custom dropdown and then the Custom Variables. now select custom Variable key and click on Secondary dimension dropdown and filter data according to your requirement. 

Saturday, 11 February 2017

How to Unlock bootloader of Android Phone - HTC

2/11/2017 10:40:00 am
If you are looking to root your Android phone then first thing you need to do is to unlock bootloader of  your android phone.by default, almost every handset company lock down the bootloader  to avoid tampering with system software that may permanently damage the phone if used incorrectly.

by default, almost every handset company lock down the bootloader  to avoid tampering with system software that may permanently damage the phone if used incorrectly.

For rooting it is necessary  to access those very same files which is why unlocking the bootloader is required for rooting most android phone.

Please keep this thing in mind that Unlocking the bootloader will eliminate your  phone warranty.

Disclaimer: Engineeringway is not responsible for any damages that may occur through following these steps. These steps are correct at the time of writing. Unlocking the bootloader is your responsibility and Engineeringway is not responsible in any way. Please back up the smart phone completely before performing any of these steps.

Unlocking steps of bootloader may varies of your phone according to your phone company. So here I’m going to demonstrate steps of HTC smart phones.

Requirements:
  1.  The HTC phone with locked bootloader.
  2. Access to a PC of phone using USB cable.
  3. Install the Android SDK in your PC. You can download it from here.
Steps:
  • Visit the www.htcdev.com and select Unlock Bootloader and click on get Started option.


Now select your device and click on Begin Unlock Bootloader button. it will redirect to the login page. so login into your account or create new account. After doing so it will show you some Legal terms,select all and click on proceed to unlock button.

  • Now power off your Android phone. after power off press volume down button and while pressing it, press power on button. by doing this your device will open in bootloader mode.


  • Now by using volume up and volume down button navigate 'fastboot' option. and use power button to select that option. after selecting it connect your phone with your PC using USB and keep proceeding through the HCTDev wizard until you get to step 8.

  • On your PC, open a command prompt in the folder where you installed the Android SDK and Fastboot window and type and press enter:

          fastboot oem get_identifier_token


  • If all goes properly the token ID will appear. This ID is unique for every device.

  • Now,You only need to select the letters as shown above.

  • Inside the HTC Developer unlock bootloader wizard paste the your ID where asked and then click Submit.

  • After a few moments you will get an email from HTC Dev website on your registered email ID.

  • The email will contain an attachment, a file called unlock_code.bin


  • Download this file from the email and save it to your computer in the same folder that you installed ADB and the Android SDK.

  • Once you have done that (remember the HTC phone is still connected to the PC via USB running Fastboot mode) type the following and press Enter when done.

  • fastboot flash unlocktoken Unlock_code.bin

  • After pressing Enter, on the HTC device itself you will see confirmation screen.

  • Tap Yes (use the Volume Up and Down key to select and Power to confirm).

  • Once the phone has booted up the bootloader on the HTC device will have been unlocked so you are now ready perform advanced tasks on the phone such as root the device or install a custom ROM.


Saturday, 28 January 2017

Adsense Tricks and SEO - Adsense approval in just few days and google rank index improvement

1/28/2017 01:30:00 am
An advertising placement service by Google is Adsense is very popular now a days. Adsense designed for publishers who want to publish targeted text, video or picture advertisement on website or blog and earn money when site visitor view or click the ads. Earning depends on Clickthrough rate(CTR), Cost-per-click (CPC), Cost-per-thousand (CPM), and Revenue perthousand impressions (RPM).
Now the question is that why Adsense is so popular? There are so many advertisements publishing company who is providing same service but still most of people is preferring Adsense. So the reason behind that is

1.   It is very easy to setup, once you got approval by Adsense . All you need to do is add a code to your website theme file and that’s it.

2.  Adsense means recollection, once you have Active Adsense account means that you have authorized blog or website. However, this may not be possible in all the case.

3.  Well pleased payout, the major problem you will face with small advertising companies is the issue of payment. You might get obstacle to receive your payment and in other hand, Adsense is very crystalline and transparent. And is also offer very well amount on CTR, CPC, and CPM.


Blogger SEO and Adsense

Saturday, 21 January 2017

How to Add live chat customer support in your website.

1/21/2017 02:46:00 am
To increase selling of your products, customer satisfaction is foremost ingredient. And to effectuate this objective you have to provide key services and customer support to your customers. now the question is how? 
Live chat for website

Saturday, 14 January 2017

What is security Attacks in cryptography? and it's concepts!

1/14/2017 09:19:00 pm

What is Data security?

Data security is referred as prevention of data uses from the unauthorized users or to add constraints on data to prevent unauthorized use of data.

Now after the definition, question may arise in mind that what is need of security, how to archive it and which are the ways that hackers use to break the security. so here I will clear all the concept of security step by step.

before getting started let me tell you the type of message and what it means in security terms.

  1. Plain Text :  Plain text is human readable form of message, that can be read and understandable by any one.
  2. Cipher text: Cipher text is encoded or encrypted information that can't be readable by anyone. we can archive it by applying various algorithm on plain text.

What is Data encryption and decryption?


Data encryption is the process to convert plain text into meaningless text or cipher text.

And decryption means to convert cipher text again into plain text.

Now the question is that how to convert plain text into cipher text?  or which are the algorithm is used to do so?

now in data security algorithm is of two types:

  1. Symmetric - There is one key both for encryption and decryption or else one key can be calculated using the other. The keys must be distributed in secret.
  2. Public Key - One key is public and is used for either encryption or decryption depending on whether the public party is sending a message or receiving it. The other key is private and allows only encryption or decryption. One key cannot be used to calculate the value of the other key.
Here is the few algorithm for data encryption.

  • block cipher 
  • Cipher Block Chaining (CBC)
  • Cipher block chaining mode (CBD)
  • Counter with CBC-MAC
  • Cipher FeedBack
  • Chinese Lottery
  • Electronic Code Book.
  •  Synthetic Initialization Vector and much more.
Now, type of security attacks that used by the hackers.

there is mainly three types of security attacks. 

  1. Active - A common attack of this type is the man in the middle attack. During this attack the attacker may try to convince the victim that they are communicating with another party when they are really communicating with the attacker. The attacker may use the attack to gain passwords or other vital information.

Friday, 13 January 2017

What is Meta tags and Keywords used for SEO in blogger and HTML? - web technology, SEO

1/13/2017 01:59:00 am
Meta tegs and keywords are very useful terms for SEO and it helps so much in SEO. To find your site’s rank better in search engine, you have to add meta tags or keywords in every page of the website. But when you want to put keywords in every blogger posts, you can’t because there is only meta description place in blogger. There you cannot find keywords adding space.So if you want to add meta tags or keywords also, you have to add some codes on your template. Meta tags are also as important as meta description. Meta tags help you to increase healthy and better traffic.

How to add meta tags in each blog post?

It is very important to take backup of your template before doing changes on it. so take backup of it.
now,
Step 1: Login into your blogger.
Step 2: Choose your any blog.
Step 3: Go to template and select edit html.
Step 4: press ctrl+F key and search for
Step 5: then paste the below codes below the above code.

Step 6: now paste above code every time when you add new post!

Thursday, 12 January 2017

How to use reddit effectively for SEO?

1/12/2017 12:57:00 am
Reddit is a social news aggregation, web content rating, and discussion website. it's A Social news and media aggregation type of site that is founded on June 23, 2005.  Reddit's registered User can submit content, such as text posts or direct links. Registered users can then vote submissions up or down to organize the posts and determine their position on the site's pages. The submissions with the most positive votes appear on the front page or the top of a category. Content entries are organized by areas of interest called "subreddits". The subreddit topics include news, science, gaming, movies,Technology, music, books, fitness, food, and image-sharing, among many others.

As of 2016, Reddit had 540 million monthly visitors (234 million unique users), ranking #11 most visited web-site in US and in the world it's rank was #25. Reddit was founded by University of Virginia Student Steve Huffman and Alexis Ohanian in 2005,They was roommates. As of August 2012, Reddit operates as an independent entity, although Advance is still its largest shareholder.Reddit is based in San Francisco, California. In October 2014, Reddit raised $50 million in a funding round led by Sam Altman and also including Marc AndreessenPeter ThielRon ConwaySnoop Dogg, and Jared Leto.

Surprisingly you can use reddit as a SEO & Content Marketing Research.

It all starts with the concept of subreddits. Reddit is made up of “subreddits” – which are small communities organized around a topic where subscribers can submit, vote up or down, and comment on posts and links relevant to a specific subreddit. There is a subreddit organized around every conceivable topic.

The primary challenge is finding subreddits relevant to your website or audience. The easiest way to search for subreddits is to search, then follow “related subreddit” links.


1. Research content ideas

Use subreddits relevant to your industry, field, readership to find content topics and ideas that tend to do well – then imitate & improve. To find content ideas that have worked well, filter subreddits by “Top” – and then by time period (ie, all-time, monthly, this week, etc). By default, the front page of a subreddit is determined by how “hot” a post is, so you’ll see a good bit of new & popular right now posts.Use relevant subreddits to find unanswered questions – and use them to build content on your site. If someone is posting to a subreddit for help, chances are they’ve already Googled once, twice, probably 3+ times to find the answer. Again, look for submissions that have a question mark. You can also filters by If you can build content around those questions, you’ll rank for not only those searches, but also have content that answers similar questions other people are also asking.




2. Get keywords


One of the toughest (and most essential) parts of doing SEO is choosing the right keywords. Aligning the language of your website with the language your audience actually uses to search for your products & services is a core part of SEO

The problem lies with finding keywords that you know you don’t know about. There are plenty of tools that SEOs will use to find these keywords but often they simply can only go as far as your research about an industry will go (and people in the industry won’t realize those keywords are unknown because to them, they are obvious.

It’s like studying the inside of a house where you know there’s a hidden closet somewhere, but you have no idea where it is. But also, the homeowners doesn’t know what closet you’re talking about until you do find it. The only real way to find all the closets is just to watch the homeowners use the house until they stumble on the missing closet.

Subreddits allow you to do just that – watch your audience interact and talk about products & problems in a normal way. It may take some research, but simply reading threads on the right subreddit will give you some golden keywords that simply would not have cropped up otherwise.

The goal with this step is to find the right subreddit, identify posts with a lot of comments & discussion – and read them with an eye towards terms and phrases that have not yet cropped up in your research.

You can also take links to extensive comment section and paste them into Google Keyword Planner.

There’s a new tool called Keyworddit that can automate this process to a degree.

Sunday, 8 January 2017

Virtual RAM - Create or increase virtual RAM and processing power.

1/08/2017 11:33:00 pm


Often a sudden performance-degradation on your computer may be attributed to the last-installed software, or an update to your operating system or drivers. There are many other factors which can cause a steep or a gradual decrease in your computer performance.

Here are some other factors that decrease your performance.

  1. Some software that loads at the startup. 
  2. Some security software. 
  3. Recently installed software update. 
  4. low size of O.S drive (C drive) 
  5. A lot of items starting at the startup 
  6. And the common problem 'The virus infection'. 
So in this blog I will tell you how you can create virtual memory or virtual RAM and increase your system performance and boost up PC speed.

So first of all go to the control panel in your system and in that open 'system' settings so you will get your system configuration window. you can open that window also by right clicking on 'My computer' and then selecting 'properties'. now in that at the left side you will see the 'Advanced system settings' option. click on that.
                                  

Now select the 'settings' option under the Performance option. after that select 'Advanced' tab. if your program runs slow then select 'programs' radio-button, but if your computer gets slow due to many installed programs then select ' background services' radio button. and now click on 'change'.


In that unchecked the 'Automatically manage paging file size for all drives'. now select the 'Custom size' radio button and define initial size and maximum size and click on 'set' now click on OK. save all the settings. remember that initial size and maximum size must be greater then Currently allocated size. system will ask to restart your system, you can restart the system or you can select 'restart later'.
                            
                   



now press windows+R button or 'Run' and type mscofig then hit 'OK'. it will lead you to the System configuration. in that select 'Boot' tab and further select 'Advanced options' and checked number of processors checkbox, now select maximum numbers of processor available for your system and click on OK. restart your system and you are done. 👍😊



How to host own website using wampserver, step by step explanation.

1/08/2017 03:29:00 am
Hello everyone, 

In this blog I will tell you how you can host your website using wampserver. for that first of all you have to download latest version of wampserver. you can download wempserver from the below link.
http://www.wampserver.com/en/ . select your system format like 32 bit or 64 bit and download wempserver. you also have to download Visual C++ Redistributable for Visual Studio, that you can download from http://www.microsoft.com/en-us/download/details.aspx?id=30679

After downloading both the files install both the files in your system. and start wampserver. you can start wampserver by clicking on shortcut that is created on desktop. after start of wampserver you will find out wampserver symbol at below of your screen in taskbar  near to date and time. now wait till that symbol turns into green from red. when turns into green it means now you can use the wempserver.

Now open any browser, and in address-bar just type 'localhost'. now to convert this 'localhost' to any virtual domain name, run notepad as administrator and locate host file in 'C' drive that is at
C: > Windows > System32 > drivers > etc > host.  and open it.

Now in the last of that file just add '127.0.0.1 domainname'. for example 
127.0.0.1 engineeringway.com

Now go to the C: > wamp64 > bin > apache > apache2.4.23 > conf > extra and open httpd-vhosts file as a notepad. and in the end of that document just put code mention below.

     order deny,allow
     allow from all

    DocumentRoot "E:\wamp\www\first"
    Servername engineeringway.com

here documentroot property define your folder in which you have stored your webpages.

now save it and go to E:\wamp64\bin\apache\apache2.4.23\conf and open 'httpd' file and open it, after that find out 'virtual hosts' section and remove comment from that. now you are done with all the settings for wamp server, open browser and just type ur defined domain name it will load your site from your local server.


Saturday, 7 January 2017

How to add custom domain to blogger - godaddy

1/07/2017 01:45:00 am
Today i'm gonna discuss how you can connect your purchased domain from godaddy or bigrock to your blogger.
First of all visit any internet domain register website like godaddy.com or bigrock.com and search for your desire domain name. select domain name, term and make payment of it.