Search the Wiki

Viewing 61 to 70 of 233 items

Create a Cron Job to start MySQL if it Stops

Sometimes server act weird and stop some services due to any issue. I faced this issue with my CSSJockey.net WordPress demo sites server, where MySQL service stops after running the clean script to remove demo demo sites after three days. So I created a Cron Job on my DigitalOcean Ubuntu Droplet to check if and start MySQL service if its  Full Article…

0

Magento – Abandoned carts report doesn’t work

Solutions: Yes this is known bug caused by the middle name attribute in recent versions of Magento. Here is the solution for this issue, we need to insert records for middle name attribute for old customers, here is the script to update database table   require 'app/Mage.php'; Mage::app('default'); $db_read = Mage::getSingleton('core/resource')->getConnection('core_read'); $tablePrefix = (string) Mage::getConfig()->getTablePrefix();  Full Article…

0

Request Google to re-crawl website

There are two options. The first (and better) one is using the Fetch as Google option in Webmaster Tools. Here are detailed instructions: Go to: https://www.google.com/webmasters/tools/ and log in If you haven't already, add and verify the site with the "Add a Site" button Click on the site name for the one you want to manage Click  Full Article…

0

Magento – Filtering results using LIKE

When you want to filter collection result by using like, you can use the following code: $collection->addAttributeToFilter('name', array( array('like' => '% '.$needle.' %'), //spaces on each side array('like' => '% '.$needle), //space before and ends with $needle array('like' => $needle.' %') // starts with needle and space after )); Passing the second parameter as an  Full Article…

0

Ubuntu – Set ulimit parameters

By default the number of open files  pro user in Ubuntu 8.04   is 1024. In my case this number was  too small so I have to increase it.This is done with the  ulimit command: $ulimit -a   # see all the kernel parameters $ulimit -n   #see the number of open files $ulimit -n 9000  #  set the number  Full Article…

0

How to style checkbox using CSS?

You can achieve quite a cool custom checkbox effect by using the new abilities that come with the :after and :before pseudo classes. The advantage to this, is: You don't need to add anything more to the dom, just the standard checkbox. Note this will only work for compatible browsers, I believe this is related to the fact that  Full Article…

8

Change the color of selected radio button’s center circle

You can bind radio-button to label, than you can hide radio-button and style label whatever you like.Example. div { background-color: #444444; display: flex-column; display:webkit-flex-column; } input { margin: 10px; position: absolute; left: 100px; } label { box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; margin: 10px; display: block; width: 30px; height: 30px; border-radius: 50%; -webkit-border-radius: 50%; background-color:  Full Article…

0

Centos – Install latest GIT version

I found this nice and easy-to-follow guide on how to download the GIT source and compile it yourself (and install it). If the accepted answer does not give you the version you want, try the following instructions: http://tecadmin.net/install-git-2-0-on-centos-rhel-fedora/ (And pasted/reformatted from above source in case it is removed later) Step 1: Install Required Packages Firstly we  Full Article…

0

Apache and httpd running but I cant see my website

If you have installed apache on my server however you can not browse your website through your server's IP. Here is some reasons: firewall, iptables configuration apache listen address / port More information is needed about your configuration. What distro are you using? Can you connect via 127.0.0.1? If the issue is with the firewall/iptables, you  Full Article…

0