CentOS crontab – Automate System Tasks

CentOS crontab – Automate System Tasks

We’ll show you, how to use CentOS crontab. How to automate system tasks on CentOS 7, using Centos crontab. Crontab software utility, is a time-based job scheduler in Unix-like operating systems. Cron is driven by a crontab (cron table) file, a configuration file that specifies shell commands to run periodically on a given schedule. The crontab files are stored where the lists of jobs and other instructions to the cron daemon are kept. Users can have their own individual crontab files and often there is a system-wide crontab file (usually in /etc or a subdirectory of /etc) that only system administrators can edit.


1. Connect via SSH and update the system software

First of all, connect to your Linux VPS via SSH and update all your system software to the latest version available. You can use the following command to do that:

sudo yum update

2.  Verify if cronie package is installed

To automate the system tasks, or better known as jobs under Linux, you can use an utility called Cron. Using Cron you can run scripts automatically within a specified period of time, create backup of your databases or other important files, monitor the services running on your server and many other things. To use the Cron utility, you need to install the cronie package on your system. It should be already installed on your server. To confirm, issue the following command:

sudo rpm -q cronie

3. Install cronie package

If it is not installed, you can use yum to install it. Yum is a package manager which you can use to install and manage software on CentOS 7. Run the command below:

sudo yum install cronie

4. Check if  crond service is running

The cron jobs are picked by the crond service. To check whether the crond service is running on your CentOS VPS, you can use the following command:

sudo systemctl status crond.service

5. Configure cron jobs

To configure cron jobs you need to modify the /etc/crontab file. Please note that it can only be modified by the root user. To check the current configuration, you can use the following command:

sudo cat /etc/crontab

The output should be similar to the one below:

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root

# For details see man 4 crontabs

# Example of job definition:
# .---------------- minute (0 - 59)
# |  .------------- hour (0 - 23)
# |  |  .---------- day of month (1 - 31)
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# |  |  |  |  |
# *  *  *  *  * user-name  command to be executed
37 * * * * root run-parts /etc/cron.hourly
23 5 * * * root run-parts /etc/cron.daily
19 3 * * 0 root run-parts /etc/cron.weekly
23 0 6 * * root run-parts /etc/cron.monthly

As you can see the crontab file already contain explanation about how to define your own jobs. The syntax is the following:

minute hour day month day_of_week username command

An asterisk (*) in the crontab can be used to specify all valid values, so if you like command to be executed every day at midnight, you can add the following cron job:

0 0 * * * root /sample_command >/dev/null 2>&1

Your cron job will be run at:

2016-06-10 00:00:00
2016-06-11 00:00:00
2016-06-12 00:00:00
2016-06-13 00:00:00
2016-06-14 00:00:00
...

Specific users can create cron jobs too. The cron jobs for specific users are located in /var/spool/cron/username. When you create cron jobs for specific users you do not need to specify the username in the cron job. Therefore the syntax will be like the one below:

minute hour day month day_of_week command

6.  Restart the crond service

After you make the changes restart the crond service using the command below:

sudo systemctl restart crond.service

For more information you can check the man pages:

man cron

and

man crontab

If it is difficult for you to set up correct cron jobs at the beginning, you can use some cron job calculator to generate the cron job expression. There are several good cron job calculators available on the Internet.

Read Also: Ubuntu crontab


Of course you don’t have to use CentOs crontab, if you use one of our CentOS VPS hosting services, in which case you can simply ask our expert Linux admins to help you with crontab on CentOS to Automate system tasks. They are available 24×7 and will take care of your request immediately.

PS. If you liked this post, on how to use the CentOS crontab,  please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.

THE TRUTH ABOUT YOUR TAX DEBT

THE TRUTH ABOUT YOUR TAX DEBT

There are approximately 8 million* individuals and business owners who have tax debt, and the IRS is going after them with unprecedented levels of aggression – for instance, property seizures have increased by 230%** in the last decade.

  • The IRS likely has access to all of your financial information, including both personal and business assets. They are also constantly mining social media data, travel, and credit card and debit transaction records.
  • The IRS has begun to add delinquent taxpayers to the government no-fly list and may revoke your passport when you try to fly out of the country under a new law called FAST Act (section 7345 of the tax code).
  • Collecting Tax debt takes priority over all your other legal rights, once the IRS is ready to move on your assets, you may lose your retirement funds, paychecks, home, cars, and even your business without much time for you to take action.
  • The IRS has already begun to build their case against you. Evading tax debt comes at a heavy price: felony conviction, 5 years’ imprisonment, a $250,000 fine and the cost of prosecution***(26 USC 7201).

It’s more important than ever to have an experienced professional who can take the IRS head-on by your side, armed with a vast knowledge of the tax debt law and IRS proceedings. Dealing with the IRS can be daunting, but with the right help you can get your life back on track and your financial house in order.

Minimum Balance You Need To Maintain In Your Bank Account: SBI, ICICI Bank, HDFC Bank Penalty Charges Compared

Minimum Balance You Need To Maintain In Your Bank Account: SBI, ICICI Bank, HDFC Bank Penalty Charges Compared

Banking majors SBI (State Bank of India), ICICI Bank and HDFC Bank charge their customers a penalty fee for non-maintenance of the minimum stipulated balance in their savings bank accounts. This penalty fee, for failing to comply with the banks’ separate monthly average balance or MAB requirements, ranges from Rs. 5 to Rs. 600 (excluding taxes and other charges). SBI, for example, has set a monthly average balance requirement of Rs.3,000 for customers holding a savings bank account with its metro branch. Similarly, the other two major banks have also set different minimum balance average limits, failing to meet which attracts a penalty charge. Here’s a lowdown of different minimum balance requirements set by these banks and the penalty charges applicable.

Minimum balance required: SBI vs ICICI Bank vs HDFC BankSBI

MetroUrbanSemi-urbanRural
SBIMAB of Rs.3,000MAB of Rs.3,000MAB of Rs.2,000MAB of Rs. 1,000
ICICI BankMAB of Rs.10,000MAB of Rs.10,000MAB of Rs.5,000MAB of Rs. 2,000
HDFC BankMAB of Rs.10,000MAB of Rs.10,000MAB of Rs.5,000AQB of Rs. 2,500 or FD of Rs. 10,000 (minimum 1 year 1 day)
(Source: SBI, ICICI Bank, HDFC Bank websites)

SBI requires its customers holding savings bank accounts in metro and urban branches to maintain a monthly average balance of Rs. 3,000, according to the bank’s website – sbi.co.in. For accounts in semi-urban branches and rural branches, this requirement has been set at Rs.2,000 and Rs. 1,000 respectively.

ICICI Bank

ICICI Bank has set the minimum monthly average balance at Rs. 10,000 for its branches in metro and urban locations, according to the bank’s website – icicibank.com. For semi-urban branches, the stipulated monthly average balance amount has been set at Rs. 5,000. For rural and ‘gramin’ branches, the bank has set minimum monthly average balances of Rs. 2,000 and Rs. 1,000 respectively, according to the bank.

HDFC Bank

HDFC Bank requires customers holding savings bank accounts with it in metro and urban branches to maintain a minimum monthly average balance of Rs. 10,000 in a month. For semi-urban branches, the bank has set a monthly average balance requirement at Rs. 5,000, according to the bank’s website – hdfcbank.com. The bank requires its customers holding accounts in rural branches to either maintain an average quarterly balance of Rs. 25,000 or keep a fixed deposit (FD) of Rs. 10,000 for a minimum tenure of one year and one day, according to the bank.

Penalty charges for non-compliance with monthly average balance (MAB) rules: SBI vs ICICI Bank vs HDFC Bank

SBI

For non-compliance with MAB requirement by a customer holding a savings bank account in metro or urban branch, SBI charges a penalty amount ranging from Rs. 10 plus GST to Rs. 15 plus GST, according to its website. The amount of penalty depends on the degree of shortfall from the required amount. For example, in case of a shortfall of less than 50 per cent from the required MAB, SBI charges a penalty charge of Rs. 10 plus GST, according to its website.

For customers in semi-urban branches, SBI charges a penalty amount ranging from Rs. 7.5 plus GST to Rs. 12 plus GST. For savings bank accounts in rural branches, the penalty ranges from Rs. 5 plus GST to Rs. 10 plus GST.

ICICI Bank

ICICI Bank charges a penalty amount of Rs. 100 plus 5 per cent of the shortfall from the required monthly average balance from customers failing to maintain the monthly average balance in savings bank accounts in metro, urban, semi urban and rural branches.

For shortfall in savings bank accounts in ‘gramin’ branches, the bank charges 5 per cent of the amount of shortfall as penalty, according to its website.

HDFC Bank

HDFC Bank charges a penalty amount of Rs. 150 plus taxes from savings bank account holders in metro and urban branches maintaining a monthly average balance of Rs. 7,500 up to Rs. 10,000, according to the bank’s website. For the monthly average balance of Rs. 5,000 up to Rs. 7,500, the penalty amount has been set at Rs. 300 plus taxes. For savings bank accounts in semi-urban branches, the bank charges a penalty amount of Rs. 150 plus taxes and Rs. 300 plus taxes, depending on the shortfall.

For rural branches, the penalty amount has been set at Rs. 270 plus taxes for balances of Rs.1,000 up to Rs. 2,500, and Rs. 450 for balances below Rs. 1,000, according to the bank’s website.

Source by ndtv

Common OpenCart Errors and How to Solve Them

Common OpenCart Errors and How to Solve Them

There is nothing more excited then try to build your own ecommerce store. Installing OpenCart extensions and themes, modificate them to your need and learn new thing during development. But most OpenCart users know how frustrating it can be get an unexpected error and not be able to find a solution for it.

Most OpenCart issues are solvable. If you got an error, don’t fret because other OpenCart user had the same problem and already gotten it solved. This tutorial collecting most common errors that repeatedly asked by OpenCart users at community forum. Sometime the same error have different error messages, that why we organize the error variant and solution for it.

Before continue, you need to know that an error usually trigger another errors. This is commonly happen because when your code breaks, the rest of code will not work and cause another error. No need to be confuse, the first error is the key. Recognise the error, find issue in your code and try to solve them with solution as suggested on this tutorial.

1. Blank White Pages or 500 Internal Server Error

Blank white pages is a PHP errors that for some reason the error messages isn’t show because your server is not setup to display the errors. While the 500 Internal Server Error means something has gone wrong but the server cannot specifically state what the exact problem is.

The similiarity of both issue is it doesn’t give us a clue what exactly happen, or what files triggering the errors. So, first step before we try to solve the errors is try to show the error messages. Then use the error message as starting point to investigate what is the error cause. Here are a few ways to show the error messages:

  1. Set your “Output Compression Level” to 0 in the System > Settings > Server tab.
  2. Then open php.ini and add code below: 1 2 3 display_errors = 1;error_reporting = E_ALL;log_errors = 1;
  3. If your server not read the php.ini, we will use an alternative method. Open index.php and add code below at the top (line 2): 1 2 3 ini_set('display_errors', 1);ini_set('log_errors', 1);error_reporting(E_ALL);
  4. When you have fixed the problem, remove code line above.

2. Undefined Index / Variable

The error appears when you referencing variable that not been declared. In programming approach set the variable or use isset() to checks if the variable has been set will solve the issue. But for an application to get this issue mean there is a bugs in it, whether it’s OpenCart or extensions files. Or you do some modification on unappropriate way.

Error variant:
  • PHP Notice: Undefined index: company in /path/public_html/catalog/model/account/customer.php on line 8
  • PHP Notice: Undefined variable: order_id in /path/public_html/catalog/controller/account/order.php on line 149
  • PHP Notice: Undefined variable: product in /path/public_html/vqmod/vqcache/vq2-catalog_view_theme_default_template_product_product.tpl on line 272
Solution
  1. If you get this issue on clean OpenCart installation, share the bugs at OpenCart forum. It will help OpenCart developer to develope bugs fix.
  2. When you get this issue after installing an extension, disable the extension then report it to the developer.
  3. If the error refer to file inside the “/vqmod/vqcache” folder, it’s mean the error caused by vQmod file. Disable the vQmod file by rename it to vqmod_file.xml_ and report the bugs to the developer.

3. Undefined Function / Method

If you get “Fatal error: Call to undefined function” or “Fatal error: Call to undefined method” means you try to call the function/ method that doesn’t exist. Commonly happen if files is not uploaded properly or the extensions is not compatible with your OpenCart version; or it’s really doesn’t exist. Here, I will try to classify the problem based on error message.

Error variant:

Related to OpenCart core files

  • Fatal error: Call to undefined function utf8_strlen() in /path/public_html/system/helper/utf8.php on line 39
  • Fatal error: Call to undefined method Customer::isLogged() in /path/public_html/catalog/model/catalog/product.php on line 8
  • Warning: require_once(/path/public_html/system/library/customer.php) [function.require-once]: failed to open stream: No such file or directory in /path/public_html/index.php on line 22
  • Fatal error: require_once() [function.require]: Failed opening required‘/path/public_html/system/library/customer.php’ (include_path=’.:/usr/lib/php’) in /path/public_html/index.php on line 22

Related to vQmod files

  • Fatal error: Call to undefined method ModelAccountCustomer::getPaymentAddress() in /path/public_html/vqmod/vqcache/vq2-catalog_controller_checkout_confirm.php on line 38

Related to PHP built-in functions

  • Fatal error: Call to undefined function imagecreatefromjpeg() in /path/public_html/system/library/image.php on line 34
  • Fatal error: Call to undefined function mysql_connect() in /path/public_html/system/database/mysql.php on line 6
Solution

Related to OpenCart core files

  1. Some file is not uploaded or it’s corrupted during upload process. Reupload the files to your server with ASCII mode, not binary.
  2. In some case, this issue appear because server path is not configured properly at config.php. So recheck your server path in config.php and admin/cofig.php
  3. “Warning/ Fatal error: require_once” mean the file is not available. You need to reupload the file mentioned on the error message or fix the server path at config.php as mentioned above.

Related to vQmod files

  1. vQmod fails to generate new cache from the extensions vQmod files. Check vqmod/cachefolder permission, make sure it’s writable and clear all cache files.
  2. Enabled / disabled one by one vQmod files you have. Once you get the cause, contact the developer.
  3. The extensions is not compatible with your OpenCart version or it have a bug. Contact the developer.

Related to PHP built-in functions

  1. PHP have lot of built-in functions, you can check it here. Errors related to PHP built-in function is server issues. Contact your host to solve this.

4. Headers Already Sent

You get an error message “headers already sent” right after installing, modificating, updating OpenCart or vQmod files. There is a good refference explaining the issue.

Error variant:
  • Warning: Cannot modify header information – headers already sent by (output started at /path/public_html/config.php:31) in /path/public_html/index.php on line 175.
  • Warning: session_start() [function.session-start]: Cannot send session cookie – headers already sent by (output started at /path/public_html/config.php:31) in /path/public_html/system/library/session.php on line 11.
  • Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /path/public_html/config.php:31) in /path/public_html/system/library/session.php on line 11.
Solution:

Download the file stated at the error message then apply solution bellow:

  1. Remove spaces at begining and end of file. 1 2 3   <?php //contain spaceecho"remove all space or line-break before <?php and after ?>";?>
  2. Resave the file with Notepad++ or other editor (encode file as ANSI or UTF-8 without BOM).
  3. Reupload to server through FTP in ASCII mode, not binary.

5. Session Issue

PHP session store user information on the server for later use (i.e. login status, shopping items, etc) across the page requests. Session is temporary information and will be deleted after the user left the website. OpenCart use session on lot of aspect like login status, product cart, compare etc. In most case, session issue will throw error messages. But there is time when it’s not show any error message; to recognise it, here is some indication of session issue:

  1. Product on the cart is self-cleared.
  2. Product on the cart is cleared after user logged in.
  3. No items stored at product compares.
  4. OpenCart admin always asking to login and get message “Invalid token session. Please login again”.
Error variant:
  • Warning: session_start () [function.session-start]: open (/tmp/sess_41abirkdiesf9efwej46wtib2, O_RDWR) failed: No such file or directory (2) in /path/public_html/system /library /session.php on line 11
  • Warning: session_start () [function.session-start]: open (/tmp/sess_41abirkdiesf9efwej46wtib2, O_RDWR) failed: Permission denied (13) in /path/public_html/system /library /session.php on line 11
  • Warning: session_start() [function.session-start]: open(/tmp/sess_41abirkdiesf9efwej46wtib2, O_RDWR) failed: No space left on device (28) in /path/public_html/upload/system/library/session.php on line 11
Solution:

No such file or directory issue

  1. Open php.ini and add code below: 1 session.save_path = /tmp;
  2. If solution above not work, contact your host and ask them how to set session.save_path.

Other errors

  1. “Permission denied”, ask your hosting to check the session directory permission.
  2. “No space left on device”, ask your hosting is it server issue or you need to upgrade to larger hosting space.

6. Allowed Memory Size Exhausted

This error happen because your memory is not enough to execute the php code (uploading large image, delete lot of products, send mass mails etc). Increasing the memory allocated for PHP will solve the issue.

Error variant:
  • Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 47200 bytes) in /path/public_html/system/library/image.php on line 34
  • Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 13069817 bytes) in /path/public_html/system/library/mail.php on line 144
  • Fatal error: Out of memory (allocated 33554432) (tried to allocate 14024 bytes) in /path/public_html/library/image.php on line 34
Solution:

Apply one of solutions bellow to increasing the limit to 64MB, 128MB, 256MB or 512MB -depends on your host.

  1. Edit php.ini 1 memory_limit = 128M;
  2. Or put code below to .htaccess 1 php_value memory_limit 128M
  3. If you oftenly get this error and solution above isn’t work, contact your host. In most shared hosting, there is maximum memory_limit. You can’t set memory-limit to 64Mb if you get max 32Mb.

7. Restriction in effect

You get an error message “SAFE MODE Restriction in effect”. This is a PHP restriction issue, and your server account is trying to run a -builtin PHP- functions but doesn’t have access to run it. This issue is nothing to do with OpenCart, but related to your server configuration.

Error variant:
  • Warning: session_start() [function.session-start]: SAFE MODE Restriction in effect. The script whose uid is 10025 is not allowed to access /path/public_html/system/library/session.php on line 11
  • Warning: imagejpeg() [function.imagejpeg]: SAFE MODE Restriction in effect. The script whose uid is 10305 is not allowed to access /path/public_html/image/cache/data owned by uid 48 in /path/public_html/system/library/image.php on line 44
  • Warning: is_dir(): open_basedir restriction in effect. File(/path/public_html/image/87cngmlc22pe96fof5fhmq9c290phri7) is not within the allowed path(s): (/path/server/) in /path/public_html/catalog/controller/checkout/confirm.php on line 248
Solution
  1. Safe Mode and open_basedir restriction is a server issue, ask your host to turn off the restriction is the best way to fix the issue.
  2. But in case you wanna try to resolve it, try this solution: 1 2 3 4 5 6 7 // Put code bellow at php.inisafe_mode = Off;--- or---// Put code bellow at .htaccessphp_value safe_mode off

Usefull Tools

System Information

System Information provide server information, PHP built-in functions and file/ folder permission that required or recomended by OpenCart. This extension will help you to monitor that your site / server meet OpenCart requirements to work well. You can download it at OpenCart Marketplace.

vQmod Manager

vQmod Manager allows users to managing vQmod files. This extension display vQmod file information and help you to manage (Upload, delete, install, uninstall and backup) and monitor the vQmod files through the admin panel. You can download it at OpenCart Marketplace.

The Top 3 Reasons an Application Hangs

The Top 3 Reasons an Application Hangs

Do you experience application hang problems? If so, read this article to discover the top 3 reasons applications hang and cause slow performance.

If you have been in the IT industry long enough, you probably know this story well. The application works fine, then, suddenly, the application hangs with no apparent reason. You restart the application and it all goes away.A week passes, maybe two, and then the application hangs again. Another restart and you’re back. It doesn’t crash or fail (no crash dump or thread dump)—it just sits there and hangs. No users are being served.

Eventually you decide to just restart every night hoping it will not hang again. It doesn’t matter if you’re using a Tomcat application server, WebSphere, WebLogic, JBoss or whatever — if you have been in the software development business long enough, you must have experienced this problem. This is where application monitoring can help.

Below are the top 3 reasons why an application server hangs:

Reason #1: it’s a database problem.

This may sound strange, but the main reason an application server hangs is not directly related to the application server itself. The location of the symptom is rarely the location of the root cause. The following scenario is quite common:

  • The database is bottlenecked, causing queries to run slower than usual.
  • Requests that used to take 1 second, now take 5 seconds to complete.
  • The average number of concurrent requests slowly increases (due to backlog).
  • The server runs out of threads and the application server hangs.

If you manage to get a thread dump, you’ll just see a bunch of threads waiting and another group that’s actually running. Another possibility is that the number of waiting threads (or queued threads) will gobble up all available memory and, eventually, lead to an OutOfMemory error.

Reason #2: deadlocks.

If it seems that the application server is doing nothing, look for deadlocks. These can be database deadlocks that cause your SQL queries to hang, or seek the update statements. For example, a transaction log that is written to the database for each request may easily hang the entire application if the log table is locked. It can also be a deadlock of the application re-accessing itself. Do you have any HTTP SOAP calls from one application server to another? Also check for shared objects—an operating system file that is written to from multiple threads at once.

Reason #3: run-away thread.

In cases where the application server is indeed to blame, you should look for a run-away thread. These are hard to detect because they hardly show up on logs since they are usually only written when the request has completed. A run-away thread will probably not return until it has already affected the entire application. Therefore, the hanging request will not be written to the log. These ‘runaway’ threads typically include infinite loops in code. For example, a query that should show results that does not include the option of paging between result pages suddenly needs to display a large number of results. The page takes forever to render and clobbers the application server, eventually causing it to hang.

These types of application hangs are extremely difficult to diagnose and detect. The hardest part is isolating the root cause of the problem. If the application server hangs, it doesn’t necessarily mean that the problem resides there. It usually doesn’t. End-to-end transaction management tools, such as SharePath by Correlsense, helps to pinpoint the reasons for an application hang by providing a real-time view into the entire application behavior.

how to install laravel

how to install laravel

Install Composer

Laravel utilizes Composer to manage its dependencies. First, download a copy of the composer.phar. Once you have the PHAR archive, you can either keep it in your local project directory or move to usr/local/bin to use it globally on your system. On Windows, you can use the Composer Windows installer.

Install Laravel

Via Laravel Installer

First, download the Laravel installer using Composer.

composer global require "laravel/installer=~1.1"

Make sure to place the ~/.composer/vendor/bin directory in your PATH so the laravelexecutable is found when you run the laravel command in your terminal.

Once installed, the simple laravel new command will create a fresh Laravel installation in the directory you specify. For instance, laravel new blog would create a directory named blog containing a fresh Laravel installation with all dependencies installed. This method of installation is much faster than installing via Composer.

Via Composer Create-Project

You may also install Laravel by issuing the Composer create-project command in your terminal:

composer create-project laravel/laravel {directory} 4.2 --prefer-dist

Via Download

Once Composer is installed, download the 4.2 version of the Laravel framework and extract its contents into a directory on your server. Next, in the root of your Laravel application, run the php composer.phar install (or composer install) command to install all of the framework’s dependencies. This process requires Git to be installed on the server to successfully complete the installation.

If you want to update the Laravel framework, you may issue the php composer.phar updatecommand.

Server Requirements

The Laravel framework has a few system requirements:

  • PHP >= 5.4
  • MCrypt PHP Extension

As of PHP 5.5, some OS distributions may require you to manually install the PHP JSON extension. When using Ubuntu, this can be done via apt-get install php5-json.

Configuration

The first thing you should do after installing Laravel is set your application key to a random string. If you installed Laravel via Composer, this key has probably already been set for you by the key:generate command. Typically, this string should be 32 characters long. The key can be set in the app.php configuration file. If the application key is not set, your user sessions and other encrypted data will not be secure.

Laravel needs almost no other configuration out of the box. You are free to get started developing! However, you may wish to review the app/config/app.php file and its documentation. It contains several options such as timezone and locale that you may wish to change according to your application.

Once Laravel is installed, you should also configure your local environment. This will allow you to receive detailed error messages when developing on your local machine. By default, detailed error reporting is disabled in your production configuration file.

Note: You should never have app.debug set to true for a production application. Never, ever do it.

Permissions

Laravel may require one set of permissions to be configured: folders within app/storagerequire write access by the web server.

Paths

Several of the framework directory paths are configurable. To change the location of these directories, check out the bootstrap/paths.php file.

Pretty URLs

Apache

The framework ships with a public/.htaccess file that is used to allow URLs without index.php. If you use Apache to serve your Laravel application, be sure to enable the mod_rewrite module.

If the .htaccess file that ships with Laravel does not work with your Apache installation, try this one:

Options +FollowSymLinks
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

Nginx

On Nginx, the following directive in your site configuration will allow “pretty” URLs:

location / {
    try_files $uri $uri/ /index.php?$query_string;
}

6 Essential Tips on How to Become a Full Stack Developer

6 Essential Tips on How to Become a Full Stack Developer

How to become a full stack developer? As one of the hottest topics for developers, the discussions have never stopped. On LinkedIn and Facebook, lots of people put their job title as a full stack developer. Besides, it seems that the “Full Stack” topic has already become a new job trend. An article on Medium has discussed the full stack designer getting both praise and blame. Some people think that the full stack is just a title, what he/she should focus on is the real personal ability and technology.

Essentially, I think the discussion about the full stack is also a kind of argument relating to the all-rounder and expert in the IT industry, and debate on the depth and breadth of development skills.

You can’t have your cake and eat it too. While the full stack developers and full stack designers seem like they are challenging this possibility. Because their horizontal skills tree gives them the ability to both have and eat the cake. There is another saying is that jack of all trades, but master of none. So it’s necessary to think about how to become a real full stack developer but not an empty title.

1. What is a full stack developer?

Simply put, full stack developer is a kind of people who master a variety of skills and use these skills to complete a product independently. A top voted answer on Quora explained that what is a full stack developer:

A full stack developer is an engineer who can handle all the work of databases, servers, systems engineering, and clients. Depending on the project, what customers need may be a mobile stack, a Web stack, or a native application stack.

In fact, “full stack” refers to the collection of a series of technologies needed to complete a project. “Stack” refers to a collection of sub-modules. These software sub-modules or components combined together to achieve the established function while without the need for other modules.

2. Why has the full stack developer been controversially discussed?

As it mentioned above, the discussion about full stack developer is actually the debate on the depth and breadth of skills. Especially at the OSCON conference, a Facebook engineer said they only hired a “full stack developer.” This topic came as a result of a heated discussion about the strengths and weaknesses of being a full stack developer.

Advantages: The full stack developers involved in a horizontal technical requirement, so that he/she can make a prototype design for a product very rapidly with his wide range of techniques. With the full stackability, they have a broader angle of views and a more active mindset. Moreover, they will be more sensitive to techniques and products. So, this kind of people can always have his/her opinions towards the product or design.

From another aspect, he/she can provide help to everyone in the team and greatly reduce the time and technical costs of team communication, technology docking. So many of them become entrepreneurs or as technical partners in start-up companies.

Disadvantages: It is precisely because of the horizontal technology development, some the full stack developers cannot be expert in one skill. Most of them who claim to be “full stacks developer” are only know a little about the multiple skills. As for how to make the architecture more suitable for the modular development, that’s a question.

3. Even so, there are still people asking, how to become a full stack developer?

A qualified full stack developer should have functional knowledge and capabilities for all aspects involved in building the application.

1) Programming languages

You need to be proficient in multiple programming languages, such as JAVA, PHP, C #, Python, Ruby, Perl, etc. As most of your core business processes need to be written in these languages.Maybe not all need. But you also have to master the language grammar, and to be very familiar with how to structure, design, implementation, and testing of the project based on one language or more languages. For example, if you choose JAVA, then you need to master the object-oriented design and development, design patterns, J2EE-based components of the development and so on.

Where to learn: Git/GitHub — You have to know how to use Git to manage and share your code.

2) Use development frameworks and third-party libraries

The popular development languages are generally accompanied by a good development framework, such as JAVA Spring, MyBatis, Hibernate, Python Django, PHP thinkphp, yin, nodeJs express and so on.

Where to learn15 free Python ebooks

3) Front-end technology

Front-end technologies are becoming more and more important in today’s project and product development. In addition to product features, the user experience is also one of the criteria to test the success of a product. All that depends on the implementation of the front-end technology, soyou need to master some basic front-end technologies such as HTML5, CSS3, JavaScript, and further study the front-end frameworks or third-party libraries such as JQuery, LESS, SASS, AngularJS, or REACT.

Where to learn: You don’t know JS

4) Database and cache

Any product or project needs a database to store data. As a full stack developer, you also need to have at least one or two databases and know how to interact with the database. Currently, the popular database is MySQL, MongoDB, Redis, Oracle, SQLServer and so on. As a document-type database, MongoDB, is being used more widely in Internet products. As for larger projects, Ialso recommend using MySQL or commercial Oracle as the back-end database. While memory databases, such as Redis, can be used for caching to improve system performance.

Where to learn: MongoDB MERN tutorial seriesRedis tutorial

5) Basic design ability

Most of the articles or discussions about the full stack developer are rarely related to the design requirements. But I think the design skill is very important, the principle and skill of basic prototype design, UI design, UX design are also needed to understand.

Where to learn: UX blog

6) Self-requirements are also an essential factor to become a full stack developer:

  • Global thinking
  • Good communication skills
  • Creativity
  • Curiosity
  • Time management skills

Wrap Up

According to Gladwell’s 10,000 hours of law, it will spend 10 years to master the front-end, back-end, client-oriented knowledge content to be a full stack developer. Therefore, the full stack developer is by no means to accomplished overnight. What you need to do is laying the technical foundation, strengthen the core skills, and keep learning for more challenges.

What does the term “full-stack programmer” mean? What are the defining traits of a full-stack programmer?

What does the term “full-stack programmer” mean? What are the defining traits of a full-stack programmer?

A full stack developer is capable of performing tasks at any level of the technical stack in which they reside. It means:

  • Working with systems infrastructure (knowing what hardware to ask for , what OS to install, how to prepare the system and dependencies for all software)
  • Understanding, creating, manipulating, and querying databases
  • API / back-end code in one or more languages, e.g. Ruby, Java, Python, etc.
  • Front-end code in one or more languages, e.g. HTML, JavaScript, Java, etc.
  • Project management / client work, e.g. gathering requirements, creating technical specifications and architecture documents, creating good documentation, managing a project timeline (e.g., someone who knows Agile/SCRUM/Kanban)

In general a full-stack developer has knowledge that is a mile wide, but not necessarily very deep, and has core competencies in the pieces of the stack in which they work most.
In my work I have core competencies in Linux (Debian, CentOS, Amazon Linux), Database design, manipulation, and query (PSQL and MySQL), back-end technologies (Java, Ruby, and Python), and some front-end design (HTML, vanilla JavaScript, and jQuery), as well as act as SCRUM-master and lead Agile development for my team, interfacing with clients both internal and external to the business to gather requirements, execute tasks, and document all efforts.

Typically these skills are developed over many years in the contexts of different jobs, so as Ian mentioned being a full-stack developer means being pushed outside of your comfort zone to constantly learn new skills.

Want to have a good credit score? Avoid this costly mistake when paying credit card bills

Want to have a good credit score? Avoid this costly mistake when paying credit card bills

Want to have a good credit score? Avoid this costly mistake when paying credit card bills

It’s natural to fret about your credit score. Most Americans would do almost anything to improve it. Mistakes, of course, are bound to happen.

More than one in five credit card users have carried a balance to help improve their credit scores, according to a study released Monday by CreditCards.com. But carrying a balance is not one of the factors that comprises a credit score—and doing so could lead to more harm than good.

Leaving a balance past a payment due date causes cardholders to pay unnecessary interest, and could even negatively affect their credit score if the balance pushes their credit utilization too high.

Twenty-eight percent of millennials with a credit card said they have made this mistake, while only 25 percent of Gen-Xers and 16 percent of those age 54 and older admit to the same blunder.

The survey was conducted for the online marketplace CreditCards.com by market-research firm GfK, which gathered data last month from 1,000 Americans aged 18 and older.

“The fact of the matter is that carrying a balance will never improve your credit,” said CreditCards.com senior industry analyst Matt Schulz. “With interest rates at an all-time high, cardholders should aim to pay off their bills in full every month, and, more importantly, pay on time.”

Lower earners and those without a college education are also likely to fall victim to the misconception. Thirty percent of credit card users making under $50 thousand dollars per year have tried to improve their credit scores by carrying a balance, compared to 19 percent of those who earn over that amount. And 27 percent of cardholders without a college degree have done the same, compared to only 12 percent with a college education.

Many Americans are simply struggling to pay their credit card bills on time. Forty-two percent admit to paying a credit card bill late. And, once again, millennials tend to be the most habitual late-payers, with 10 percent reporting they have paid a late fee five or more times.

More than half of millennials said they paid a bill late because they did not have enough money at the time.

Source by financialexpress

Train Cancelled? IRCTC To Credit Entire Amount To Your Bank Account

Train Cancelled? IRCTC To Credit Entire Amount To Your Bank Account

Train Cancelled? IRCTC To Credit Entire Amount To Your Bank Account

When your train is cancelled from the start station to the destination, then the passenger name record (PNR) is automatically cancelled and the credit is transferred to the bank account. The refunds are made in the same bank accounts from where the booking has been made. However, the passengers must note that when they cancel the tickets on their own, then some cancellation charges apply. For instance, in case of first AC/ executive class, the cancellation charges are Rs. 240.

In case the passenger traveled by the second A/C or first class, the cancellation chargeslevied by the IRCTC would be Rs. 200. In case of third AC/ACC/3A economy, the cancellation charges that IRCTC (Indian Railways Catering And Tourism Corporation) levies amount to Rs.180. However, for the second sleeper class, the IRCTC levies Rs. 120 as cancellation charges. When the passenger is cancelling the second class, the cancellation charges are Rs. 60.

When the cancellation is done anytime between 48 hours and 12 hours before the scheduled departure of the train, the charges are 25% subject the minimum as mentioned above.

And when the cancellation happens between 12 hours and 4 hours before the scheduled departure of the train, the cancellation charges will be 50% subject to the minimum charge.

There will be no refund after the above prescribed time limit which means if the ticket is cancelled anytime within four hours of the scheduled departure, there would be no refund of the ticket amount.

In a similar development, NDTV had reported that IRCTC, the e-ticketing arm of Indian Railways, has introduced a new payment mechanism for booking e-tickets, including Tatkal tickets. Now, IRCTC e-wallet users can book rail e-tickets including Tatkal quota tickets through mobile app IRCTC Rail Connect. IRCTC e-wallet is a payment mechanism which enables users to deposit money in advance with IRCTC. This money can be used as a payment option.

Source by:-ndtv