Thursday, 26 April 2018

Web Mp3 Player Part-1 Creating An Static Site With Mp3 Player

Hello guys, after a long time we are back with a new series name "Web Mp3 Player" using PHP, HTML, CSS and JS.

f

This is how the basic front will look.

Github - https://github.com/amankkcc/mp3web.git


Thursday, 22 June 2017

Protect your Android device from malware.




Android, the open-source operating system i.e. led by Google is now found on more than half of all smartphones. This massive use of technology has caught the attention of cybercriminals, who have begun to double down on their efforts to illegally obtain personal information from Android users. Mobile malware can allow cybercriminals to intercept messages, monitor calls, steal personal information, and even listen in with the device's microphone.

One of the upcoming issues among the android users is the list of permissions the app requires in order to work whenever installed. It's tempting to just skip past it, but it’s recommended to resist as one should at least look at them, not to understand what each permissions type means but to understand, why an app is requesting it when you install or update. Even some app requires root i.e. to grant access to the inner workings of your phone’s OS. Apps like ROM Manager and Titanium Backup need root because they're performing system-level tasks on your phone. However, if a clock app or even a new app launcher requests root, make sure you understand why it needs it before you click "Allow."

Everyone wants to protect their privacy, but still want to be participating in things like social media. And even if you trust everything the app developer is doing today, you never know if a new update may contain malware planted by someone else.
Therefore as a precaution you could consider following suggestions:-

1.)  Legitimate app store

When downloading apps, do so from a legitimate app store i.e. from companies like Google, Amazon, Samsung etc. who monitor and scan for potentially dangerous or fraudulent programs. However, fake BBM app recently was able to slip through the cracks and managed to secure more than 100,000 downloads, before being removed. But if people had looked at the reviews they could have avoided that spamming service.
2.)  Settings

Google includes numerous settings in the Android operating system that can prevent malicious attacks. Devices running Android 2.2 or higher, which essentially means all android apps, have access to Google's malware scanner. Prior to installing an application, you downloaded outside of the Play store, Google will scan the app and warn you of any potential threats.
This feature is enabled by default and can be accessed in the Google Settings app in your device's app drawer. Alternatively, devices running Android 4.2 or higher can access the feature by going to Settings, clicking on Security, and scrolling down to Verify apps.
Devices running Android 4.2 or higher are also protected from premium SMS charges. A notification will alert you if an app is attempting to send a text message using a premium service, at which point you can approve or deny the transaction. This feature is built directly into the operating system and does not need to be enabled.
3.)  Software updates
If there is an update for your device make sure you download and install it. Manufacturers are constantly pushing out updates with bug fixes, enhancements, and new features that can make your device more secure.

4.)  Monitor and Tweak App Permissions On Your Own

If you really want to install an app that has questionable permissions, or permissions you don't understand , there are apps that can help. Some will stop intrusive apps from getting the data, others will just monitor the apps you install to see if they're doing anything fishy. For example:
  • Pdroid Privacy Protection -(requires root) is an app that keeps an eye on the types of information that your apps request, and lets you allow or disallow it on a per-app basis. You can block access to personal or identifying information for each app you have installed, and it won't break the app in the process.
  • LBE privacy guard- (requires root) notifying you when an app tries to access data and giving you the choice to allow or deny it. The key is that if you deny something an app needs to function, it may very well crash, so you'll have to think before you tap. Keep in mind people loved the old version and the new version hasn't been as well received at Google Play, so your mileage may vary.
  • PermissionDog- shows you exactly how dangerous your installed apps are at a glance. You can tell just by scrolling through the list which ones are okay and which ones you should pay closer attention to.
  • Pocket Permissions- it’s a complete guide to app permissions. It's helpful for Android beginners or anyone else who's interested in the topic, and wants more detail about what each permissions type means specifically, and what data is available when that permission is granted. You can use the app to research permissions and understand why other apps need them, search by permission to see which apps request it, sort by risk or importance, and more.
  • XPrivacy (requires root)- it’s an open source tool can override a particular permission setting by feeding it junk data. For example, it can feed your Linkedin app fake location information, or your Twitter app an empty address book. And you can do this on an app-by-app basis. So, even if you prevent LinkedIn from accessing your location, you can still offer access to your mapping app. Google removed XPrivacy from the Android Play Store soon after it was made available. But the store still includes a tool that will at least walk you through the installation of the app. According to Bokhorst, creator of app,” I am not building the tool for money. The goal of the XPrivacy project is to offer a free, decent Android privacy solution for as many as possible people," he says.
.
Mostly pirated and cracked apps contain some form of malware. You could spend a bit on that game/app you always wanted, which in the long run will give you hours of entertainment and reward the developer for their hard work, or you can pirate it and put your personal information at risk.
The decision shouldn't be hard.

 In the end, as a user, by taking above precautions you really need to trust the developer with the permissions and as a developer, you have to be transparent about why you need every permissions.

Saturday, 22 October 2016

Remove index.php from url in codeigniter

Step 1. Create a file named " .htaccess " in parent directory of the codeigniter application. (remember the dot before the name of file)

Step 2. Copy and paste the following codes in the file and save.

<IfModule mod_rewrite.c>
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>


Step 3. Check the url of your controller without "index.php". 

If it does not work, read the following instrunctions for further configuration. 

The .htaccess,  you just created, rewrite the url by removing index.php and these lines are defined in regular expression. But for the .htaccess file to work, Apache server( or any of your web server) needs certain configuration. 

To allow apache to use .htaccess file you will have to " Allow Rewrite rule" and if you want to do that follow these instructions step by step.

Step 1. First of all don't mess with the file you created earlier name .htaccess and leave that file as it is. 

Step 2. Go to your apache root folder and open apache2.conf( In linux) and httpd.conf(in windows)

For linux the path is /etc/apache2/apache2.conf

For windows the path is c:/wamp/bin/apache/httpd.conf 
 (you can also directly open the file from windows task bar) 


Step 3. Change inside <Directory /var/www> tag
  AllowOverride None to AllowOverride All



 

Step 4. Save the file and exit. 

Step 5. Open terminal and type commad a2enmod rewrite and your are done.

Congratulations !

Now you apache server is configured to allow .htaccess file to rewrite your URL.


For summer training and workshops 

Visit http://www.cybercreeksolutions.com/
 

 



 

Saturday, 13 February 2016

How Web based online Information System is better than Offline Information System

Until the 1990s, before the widespread adoption of personal computers and the Internet, companies were using information systems to manage data processing and record-keeping activities associated with business transactions like maintaining the general ledger (book keeping), payroll, billing, inventory management, etc. The focus was mainly on maintaining files and databases related to day-to-day operations. Communications, both internal and external, relied on paper, telephone, faxes, and other analog media. Today, companies have eliminated the inaccuracy of paper-based tracking by implementing ERP systems. 63 percent of companies used their ERP software to eliminate inefficiencies in processes such as order tracking.

Drawbacks of offline information system

Many reasons you have to eliminate the offline information system like:-

1. Access Time

One of the primary disadvantages of traditional file systems is the time it takes to access data. It can take minutes if not hours to locate a few files in a large paper filing system. Electronic databases allow for almost instantaneous access to information. Faster data access time can increase the productivity of managers, analysts, accountants and other workers who use data on a regular basis.

2. Editing and Communication


Traditional file systems are cumbersome in that they do not allow users to easily edit files or send information to others. Paper files often cannot be edited directly, forcing users to make new copies to update old files. To distribute data on paper files, users must mail, fax or scan the data. Databases allow users to edit information fields directly, and because information is stored digitally, it is already in a form that can be easily transmitted.

3.Order of data

Data can get out of order in traditional filing systems. If someone accidentally puts a file in the wrong place, or takes a file out of a cabinet and forgets to put it back, it can lead to lost data or the creation of additional copies of files. Electronic filing systems allow users to quickly check whether information already exists somewhere in the system, which helps avoid problems like redundant files and data loss.

Importance of Online Information system in Organizations
As companies try to reduce costs, improve productivity, employers are looking to ERP systems to help them grow and remain competitive globally. Information systems have enhanced productivity for businesses.

Online information system provide key factor to reduce cost and maximize profit to achieve your organization goal. 

1.Communication

Part of management is gathering and distributing information, and information systems can make this process more efficient by allowing managers to communicate rapidly.

2.Operations
How you manage your company's operations depends on the information you have. Information systems can offer more complete and more recent information, allowing you to operate your company more efficiently.

3.Decisions
The company information system can help you make better decisions by delivering all the information you need and by modeling the results of your decisions. A decision involves choosing a course of action from several alternatives and carrying out the corresponding tasks. When you have accurate, up-to-date information, you can make the choice with confidence.

4.Records


Your Company needs records of its activities for financial and regulatory purposes as well as for finding the causes of problems and taking corrective action. The information system stores documents and revision histories, communication records and operational data.

Friday, 12 February 2016

Five Benefits Of Implementing an ERP System to Your Business

There are many advantages of an ERP System for managing a business despite of being small or big. We already know ERP Systems provide thousands of advantages like better productivity, timely delivery, improved efficiency and reduced cost. Still many businessmen are skeptical to implement new ERP system and migrating all their process from old standalone off-line system to the new one. Even when they know all the advantages of implementing an ERP system.

In short we say that ERP helps in integrating all the business processes and management functions togehter, including planning, inventory/material management, order processing, manufacturing, supply chain management, purchasing, accounting and finance , human resource and the most important one sales and marketing. Here I'm listing some critical benefits .........

1. Integrated Business Processes 
As we already got the idea of integration, ERP fills the void partitions between the different departments and business processes. It provides a platform to share all the information flowing thorough the entire enterprise. It improves the real time information availability helping in making quick decessions

2. Improves Efficiency
ERP reduces the redundancy of data and repetition of tasks. The output from one department is directly available to process further in other departments. It also streamline business processes and increase the speed of over all production.

3. Reduced Cost
ERP immidiatelty reduces operating cost by reducing the time and avoiding repetition of tasks automatically reduces cost of production. It helps in better management of the available resources. It reduces inventory cost, production cost and marketing cost.

4. Real-time Reporting
The very fist visible results are the real time report generation capabilities of an ERP system. You no longer needs to wait for the end of the quarter for your acountant and finance manager to prepare report for. Now with ERP system you can get what you want to know about your company at anytime and anyplace. It provides better visiliblity ot day to day tasks of the organization.

5. Standerdized Business Processes
ERP systems are developed after integrating many years of experience of the processes of large successfull companies. Thus they follow standard business processes and best practices already proved in the market. So by implementing an ERP system also helps standerdizing the business processes of the organization. ERP also provide security with mulity layer of access permission and authorities depending upon the designation of the users.


Wednesday, 21 October 2015

How to write managed code with PHP.

I was recently exploring some projects available on Internet built with php. There are tons of small projects, extensions and plugins easily available on Internet with specific tasks. Many newbies can easily get these codes and use them in their project, that is how PHP are said to be easy as there is thousands of extensions and plugins available ready to be used.

What do I mean by Bad practice and unmanaged codes ?

However Its very easy to build a website with these codes but using different kind of coding practice form different sources from different modules of your application is gonna get you nowhere. For example if you want to display a page and using "echo" to display html codes line by line and using built in functions directly on the front-end page then it will creates confusion with the front end and back functionality. It may be easy and faster way to design small pages with little server side scripting but as your website grow, its gonna be a nightmare for you to debug it if you get trapped with some bugs.

How should we actually write PHP codes ?

The answer is simple 'keep front end and server side scripts completely separate'. But thats not all. Try to develop with MVC even with the smallest project. Keeping your model, view and controller in separate files and folders will give you better speed and control. It also lets you easily scale your project and applications are gonna be likely anomaly free. I would also suggest to use framework there are many good framework available for both small and large systems.

some popular PHP frameworks are..
1. Codeigniter
2. Cakephp
3. Yii
4. Zend

Common mistake while using framework

Using an MVC framework isn't gonna solve all your problems. People still tends to use library functions available for front end designing like forms etc. This kind of practice is bad for responsive web site specially if you want your website to open smoothly of different devices (Mobile , Tab and different browsers). So I would suggest to develop the front end using only front end technology like HTML5 , CSS.  Jquery or Angular js. And keep all the back-end codes in separate files.

Benefits of Using PHP framework

  •  Easy to debug.
  •  Increase scalability of applications.
  •  Fast development with the help of libraries.
  •  Secure Codes and best practice enforced.
  •  Better designing and demonstration of application.

Have a great time with PHP ......... 
 


Tuesday, 14 October 2014

Object Serialization in JAVA

To Download this presentation Click on the link given below:
https://drive.google.com/file/d/0B5LuFOmkORZnRVFzSlpLU09sNHM/view?usp=sharing
Click Here to download presentation.