Skip to main content

Posts

Showing posts from 2011

Warning: Bluehost's 'Unlimited' isn't quite so unlimited

If you're considering Bluehost as a webhost provider please read this regarding their 'unlimited' hosting as advertised. Today I received an email from my hosting provider, Bluehost, with the heading " Server Performanc e Warning for [mysite.com] ".   Reading further, I discovered it was a nice automated email stating " It has come to our attention that your site is using an excessive amount of MySQL resources on your BlueHost.com account. This is causing performance problems on your website as well as for other customers that are on this server. It can cause our servers to crash and cause additional downtime. " On their website they advertise Unlimited hosting space and unlimited databases. As it turns out, if you read the fine print that they kindly sent me in the email, this comes with a catch that they can basically take down your site if it reaches limits that they say degrade server performance.    To help you out,  t hese limits ar

How to fix Piwik not working when https protocol is enabled

If you noticed that your Piwik has stopped working when enabling SSL or it never worked in the first place using https, you may be having issues with the protocol. Most hosts only allow SSL for one subdomain (usually www) unless you order an expensive package so if you happened to install Piwik on a subdomain (say analytics.example.com) while SSL will work, an exception will need to be made as the certificate doesn't match the exact URL.  Because of this, piwik will not load the scripts correctly.  Luckily this is simple fix. Overview : Make sure SSL is the problem Update the tracking script Step 1: To make sure that SSL is a problem you have to try to load the piwik.js file from your installation folder using both https and http.  By default, mine was trying to use https and it was showing something similar below in firebug. If it shows the piwik.js source code then this is not your issue. Alternatively you can open the file in the browser by going to: https://a

How to fix a PHP Fatal error: Allowed memory size of XXXXX bytes exhausted

If you're working with a PHP website, Magento in my case, and you get a page that is half blank when loading it's possible that you're experiencing a fatal PHP error.  This quick post will show you how to fix this in Magento 1.6.1.0. Overview Verify that you're getting a fatal PHP error related to memory size Update your .htaccess file Update your php.ini configuration Step 1:   Verify the error To verify that you are experiencing a fatal PHP error related to the memory size available you must first find your PHP error log file.  My host provides this through cPanel but if you're using your own Apache server it can usually be found in /var/logs/apache2/errors.log (see below). Open using whatever editor you like (geany in my case), when opened, I was seeing this: Apache2 error.log file showing a PHP Fatal error My log was giving this error: [23-Nov-2011 17:13:12] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to all

How to add a static block to a specifc category in Magento 1.6.1.0

Here's a simple tutorial on how to add a static block to any category page in Magento. Overview Create a static block Configure the custom layout for the category to show the block Refresh the block cache Free shipping static block on the left side of a category page To create a static block, login to the backend and go to CMS->Static Blocks. Click Add New Block from the top right. Enter whatever content you want the block to display, I'm creating a free shipping block for the left column. <div class="block block-list block-shipping">     <div class="block-title"><strong><span>Shipping</span></strong></div>     <div class="block-content">         <h4>Free shipping on every order!</h4>         <p><img width="64" style="float:right;" src="{{skin url=images/box.png}}"> We now offer free USPS Parcel Post shipping on every order! No min

How to increase the Magento admin session timeout

By default Magento sets the admin session to expire after 3600 seconds (1 hour).  So if you're working on adding a product and get distracted and have to leave, when you come back you're session may very likely be expired and all changes lost. Luckily this is simple to fix, simply go to: System->Configuration->Admin->Security Set the Session Lifetime to a larger number (see below). Next we have to make sure the session cookie doesn't expire.  Go to System>Configuration->Web->Session Cookie Management Set the Cookie Lifetime to a larger number such as 14400. This method worked for Magento v 1.6.1.0 Thanks!

How to 'fix' flash not maximizing on the correct screen in Ubuntu 11.10

If you use two monitors or a separate TV screen in Ubuntu you may have noticed that when trying to maximise a flash video it maximises on the wrong screen.  Initially when you plug a second monitor the display manager will look something like the following. I've not found documentation on this, but it seems as if Ubuntu assumes that the screen the furthest to the left is considered the primary screen.  So all you have to do is drag the second monitor to the left of the original monitor as below. Click apply.  Now Ubuntu will use the second monitor as the primary screen (all dialogs will open there) and flash videos will maximise in this screen as well. Good Luck!

How to reload sound drivers in Ubuntu 11.10

Every now and then I happen to get my sound to stop working in Ubuntu 11.10.  Sometimes this occurs when suspending and then resuming but most recently it stopped after switching the sound output from my laptop to an HDMI port.  Here's a quick way to fix this without restarting. Open a terminal (ctrl+alt+t) and type: sudo /sbin/alsa force-reload Enter your password and it'll reload the ALSA sound drivers (see below).  Now go back into the sound settings and everything should work! More info can be found here: http://ubuntuforums.org/showthread.php?t=1861174

Perfect Windows and Ubuntu Unity Integration

Running MultiSim through Windows in Ubuntu One of the biggest issues with switching over to Linux is the fact that a lot of applications are only supported on Windows (XP, Vista, or 7).  Ubuntu 11.04 and 11.10 use the Unity desktop that by default has no panel at the bottom.  This makes Ubuntu integrate perfectly with Windows running under VirtualBox with a few minor tweaks.  Read more to find out how. In order to do this you will need: A version of Windows (XP, Vista, 7) VirtualBox Step 1: Install VirtualBox. Using the instructions here: https://www.virtualbox.org/wiki/Linux_Downloads#Debian-basedLinuxdistributions For Ubuntu 11.10: 1. Open the Software Center. Choose Edit -> Software Sources. Click the Other Software tab, then Add... 2. Enter: deb http://download.virtualbox.org/virtualbox/debian oneiric contrib Adding the VirtualBox Source 3. Open a terminal (ctrl+alt+t) and enter: wget -q http://download.virtualbox.org/virtualbox/debian

Penn State wireless 2.0 with Ubuntu Linux

The problem If you go to one of Penn State's campus' and have a laptop running ubuntu linux  it's pretty easy to log on to the internet.  For security reasons, Penn State protects their wireless connections using either a VPN or user authentication.  Most of the 'tech' guys don't know how to do much more than run an installer program, which is all that is necessary if you have a windows or mac os but when it comes to linux, they're clueless. The benefit If you use ubuntu, your in luck.  Ubuntu 10.04 comes ready right out of the box to connect to psu's v2 network.  I would say it's even easier than on windows because it connects you automatically every time you open your laptop. The solution So how do you set it up? Click on the wireless icon on the top panel and select the psu ssid. A dialog will open up, fill in the following information under the wireless security : Network nam