вторник, 19 января 2016 г.

When using Font-Awesome, prevent CKEditor 4.x from removing

https://www.drupal.org/node/1908696

среда, 13 января 2016 г.

htacess image not found resolver for modern frameworks



.htaccess :

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule \.(gif|jpe?g|png|bmp) /image404.php [L]
</IfModule>


image404.php :

<?php
header("HTTP/1.0 404 Not Found");
exit;

вторник, 5 января 2016 г.

upwork cover letter

Generally I'm working with Drupal version 7 and usually I use pantheon service for development. I have a few my own modules, but due very weird Drupal's contributing mechanism they are not at Drupal.org, but you can find them at my bitbucket account https://bitbucket.org/inri13666
for example
https://bitbucket.org/inri13666/akuma_core
https://bitbucket.org/inri13666/akuma_metadata
https://bitbucket.org/inri13666/akuma_tokenfield

In my work I prefer to use Drupal's hooks standards to extend or override default functionality (:

Here the samples of my work:
https://reggieintheraw.com/
http://www.thestemnet.com/

Much of my works is private, and unfortunately I'm unable to share them

My Skype ID : makarov.nikita.13

Composer proc_open(): fork failed errors


proc_open(): fork failed errors#


If composer shows proc_open() fork failed on some commands:


PHP Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork failed - Cannot allocate memory' in phar


This could be happening because the VPS runs out of memory and has no Swap space enabled.

free -m
total used free shared buffers cached
Mem: 2048 357 1690 0 0 237
-/+ buffers/cache: 119 1928
Swap: 0 0 0

To enable the swap you can use for example:
/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
/sbin/mkswap /var/swap.1
/sbin/swapon /var/swap.1

or add to "etc/fstab"

/var/swap.1   none    swap    sw    0   0

php5dismod xdebug

http://www.coderblog.de/how-to-install-use-configure-xdebug-ubuntu/

понедельник, 4 января 2016 г.

Drefault Dev config for SF2

<VirtualHost *:80>
        ServerName irs-sf.akuma.in

        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/irs-sf

        <Directory "/var/www/irs-sf">
            <IfModule env_module>
                SetEnv APPLICATION_ENV development
            </IfModule>
            <IfModule mod_headers.c>
                Header set X-Robots-Tag: "noindex, nofollow, noarchive, nosnippet, noimageindex"
            </IfModule>
            DirectoryIndex app_dev.php
            AllowOverride None
            Allow from All
            <IfModule mod_rewrite.c>
                RewriteEngine On

                RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
                RewriteRule ^(.*) - [E=BASE:%1]

                # Sets the HTTP_AUTHORIZATION header removed by apache
                RewriteCond %{HTTP:Authorization} .
                RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

                RewriteCond %{ENV:REDIRECT_STATUS} ^$
                RewriteRule ^app_dev\.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,END]

                RewriteCond %{REQUEST_FILENAME} -f
                RewriteRule .? - [L]

                # Rewrite all other queries to the front controller.
                RewriteRule .? %{ENV:BASE}/app_dev.php [L]
            </IfModule>
        </Directory>


        LogLevel error
        ErrorLog ${APACHE_LOG_DIR}/irs-sf/error.log
        CustomLog ${APACHE_LOG_DIR}/irs-sf/access.log combined
</VirtualHost>