Thursday, January 30, 2014

Working on Phonegap

Phonegap:

Phonegap  is a mobile development framework. It is used to build applications in HTML5, Javascript, CSS. All the applcations are build in it is based on only these components. We don't used any another programming languages in it, just like obejective c or else. The applications are developed in it are hybrid. It means its not purely native and not purely web based.

Main components of phonegap which is used for development app:
1. HTML5
2. CSS
3. Javascript

Operating System that supports Phonegap:
1. ios
2. web os
3. android
4. symbion
5. blackberry
6. ubuntu touch
7. windows phone

Working on it:

For starting to work on it , we are in need of a file named index.html. In this file we can simply write our html5 as in need. We can also used javascript, jquery and css on it also used some images with assets. After this we will create a zip file of this whole folders and files and will upload it on phonegap.com with using adobe account or github account. Now it will produces files for ios, android, windows phones application. Just download it and installed them in your phone accordingly .  It will work .

Thursday, January 23, 2014

Working on ubuntu with some usefull command

ubuntu:

ubuntu is a Linux Operating System which is freely available. It is composed of many software packages, the majority of this are free software. All the software are installed is basically developed of linux operating system. Besides this we can also installed some of windows softwares by using Wine or virtual machine. 

For installing any software in ubuntu we can use Ubuntu Software Center.
 We can also installed them using its Terminal. In terminal we can installed them by some of commands.

There are some of basic commands which are commanly used and also some of commands for installing Apache, Mysql, Phpmyadmin, Php5.

These commands are following:


for show icon on right top - sudo apt-get install sni-qt:i386
for giving permissioon - sudo chmod 777 -R /opt/lampp/htdocs
for checking its working or not - ps -ef | grep mysql
for checking service status - sudo service mysql status
for start any thing in opt -  sudo /opt/lampp/lampp start
for stop any thing in opt - sudo /opt/lampp/lampp stop
for status any thing in opt - sudo /opt/lampp/lampp status
for kill services - sudo kill -9 8787
for removing lampp server - sudo /opt/lampp/uninstall
for get updates - sudo apt-get update
for install apache2 - sudo apt-get install apache2
for install mysql server - sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
for install mysql db - sudo mysql_install_db
for install finally mysql - sudo /usr/bin/mysql_secure_installation
for install php5 - sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
for install phpmyadmin - sudo apt-get install phpmyadmin
for install jdk environment - sudo apt-get install openjdk-6-jdk


 

Thursday, January 9, 2014

Working With Cron

Cron:
Cron is a software which is used for time based job scheduling. It is basically used in Unix/Linux operating system. Those who want to set up software environment can use cron to scheduling job. Its script run automatically after a time of interval which we set . We can use this cron for connecting the internet or receiving the email at a regular interval.

Cron is driven by crontab file which is a configuration file used for run the script accordingly its schedule. Every line in crontab file represents a job. In these lines we add a time interval in which a particular task will be performed.

Examples of Cron:

1. If we want to perform any job at the mid - night (00:01) of every day of week, then we can write it as

1 0 * * *  printf > /var/log/apache/error_log

2. If we want to perform any job at after 2 hours like 2am, 4am, 6am and so on

0 */2 * * *  /home/username/test.pl
00 20 * * * /home/oracle/scripts/export_dump.sh

These five position which is currently define as * having there own values

These are following as accordingly :

# * * * * *  command to execute
# ┬ ┬ ┬ ┬ ┬
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ └───── day of week (0 - 7) (0 to 6 are Sun to Sat, or use names; 7 is Sun, the same as 0)
# │ │ │ └────────── month (1 - 12)
# │ │ └─────────────── day of month (1 - 31)
# │ └──────────────────── hour (0 - 23)
# └───────────────────────── min (0 - 59)

Cron Permissions:

There are basically two files , which are used for it permissions.

1. /etc/cron.allow - If this file exists, it must contain your username for you to use cron jobs.
2. /etc/cron.deny - If the cron.allow file does not exist but the /etc/cron.deny file does exist then, to use cron jobs, you must not be listed in the /etc/cron.deny file.

Thursday, January 2, 2014

How to Work on Wordpress

Introduction

Wordpress is an open source blogging tools. It is also used as Content Management System. It is fully based on PHP and MySql. It is used for creating websites, web applications, blogs.

There are some of its features which are used to creating these sites and web application.

1. Theme: Theme is used for appearance purposes. We can change look and functionality of any site due to this theme part. This part includes PHP, HTML  and CSS . 

2. Wizard: This part is act as a module. We can just put this part where we can put anywhere on the website. If we want to put a pic on the sidebar , then we will use this feature.

3. Plugin: Plugin is act as a functionality. If we want to give any kind of functionality to any part , then we will use this feature.

4. Form: This part including its all the forms. If we want to create any kind of form for the website , this feature will be used.

5. Pages: Pages are basically used for create any kind of page for the websites.

6. Posts: This part of wordpress is used for posting purposes. If we used any kind of posting of blogs then we will use this one.

7. Media: All the media parts like images, audio file, video file etc. are used through this feature.

8. Events: Any kind of events can be put through this part.

9. Appearance: It includes some of part like theme, wizard etc. Those all are used for its looking purposes.

10. Users: It includes all the users list of the website.

11. Settings: This part includes all the settings of the website. We can change all the setting according to our need.

These are the basic things/features for creating any kind of websites, web applications, blogs using Wordpress