Drupal site just sits there loading and eventually times out? Check sites/default/settings.php. In particular, you may be loading stuff that will slow you down/bring your site to a halt. For instance, try commenting out: $conf[‘cache_backends‘] = ‘sites/all/modules/memcache_storage/memcache_storage.inc‘; $conf[‘cache_default_class‘] = ‘MemcacheStorage‘; $conf[‘cache_class_cache_form‘] = ‘DrupalDatabaseCache‘; $conf[‘cache_backends‘] = “sites/all/modules/memcache/memcache.inc“; $conf[‘cache_default_class‘] = ‘MemCacheDrupal‘; $conf[‘cache_class_cache_form‘] = ‘DrupalDatabaseCache‘; Or any one that […]
To update drupal manually, download and unzip drush, then go into the directory where you unzipped, and run: ./drush pm-update projects drupal-7.33 -r <path to your drupal installation> I later had to rebuild content access permissions. With drush: sudo ./drush php-eval ‘node_access_rebuild();’ -r<path to your drupal installation> -y -l http://<url> -v I had […]
if you have a large file that is too large to pass to xargs, you can bring it up into chunks. For instance: cat file.txt | xargs -L 3 echo will execute echo on 3 lines at a time.
1. make feeds refresh (otherwise it seems cached); in wp-content/themes/ready-review/functions.php, add at the end: add_filter( ‘wp_feed_cache_transient_lifetime’, create_function(‘$a’, ‘return 1;’) ); //1 is timeout value 2. edit wp-includes/feed-rss2.php Go to where it has the description tag and make changes accordingly. Make sure in wp-admin -> settings -> reading -> For each article in a feed, show, you […]
sudo apt-get install compizconfig-settings-manager sudo apt-get install compiz-plugins Open compizconfig-settings-manager with alt-F2, type ccsm. Scroll down to “Ubuntu Unity Plugin”. Choose the tab “Switcher”. Disable the alt-tab and shift-alt-tab key bindings. (“Key to start the switcher” and “Key to switch to the previous window in the Switcher”. Click the “Back” button. Scroll down to the […]
If you’re finding that your Mac fans are running a lot more than they used to, you might want to check out whether a couple of Spotlight processes are consuming more than their fair share of CPU cycles. Ever since the latest Mavericks update, I found that my MacBook Pro seemed to be running hot […]
If your permissions in windows 7 get messed up, you can: 1. take ownership of all files, recurse, specify default answer to whether or not take ownership to y takeown /f . /r /d y 2. give everyone read permission icacls . /grant:r everyone:r /t /c /q 3. grant and replace existing permissions and give […]
killall Dock from terminal.
comm -23 file1 file2 shows lines only in file1 (-2 don’t show unique lines in file2, -3 …rtfm)