Composer: PHP Fatal error: Allowed memory size of … exhausted…

advertisement

phpIf you are using composer in your php project, you might encounter the the same error as mine.

PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 71 bytes) in phar:///sf2projects/myproject/composer.phar/src/Composer/DependencyResolver/RuleWatchGraph.php on line 47

To solve this PHP fatal error allowed memory size exhausted problem, refer to the solution below:-

Continue reading Composer: PHP Fatal error: Allowed memory size of … exhausted… »

Bootstrap 3: Responsive image align center

advertisement

bootstrapIf you are using Bootstrap 3, you might come into a problem where you can use .text-center to align text to center but not image. There are many different work around to solve this issue including wrapping the image within a .text-center div or overriding the .img-responsive class. Although there are many different work around to align image to center in Bootstrap 3, i just found a very convenient way to solve this issue.

bootstrap-center-image

To align image to center in Bootstrap 3, you can try the code below:-

Continue reading Bootstrap 3: Responsive image align center »

CentOS 7: How to setup TUI Firewall settings?

advertisement

centos-logoFor clean minimum CentOS 7 installation, have to manually install the system-config-firewall-tui. Bad news is that after you install this TUI firewall settings you still can’t execute it instantly, you need to do a little bit more in order for system-config-firewall-tui to be executable.

centos-7-tui-firewall-settings

To setup TUI Firewall settings in CentOS 7, follow the steps below:-

Continue reading CentOS 7: How to setup TUI Firewall settings? »