Place this code in functions.php /** * Modify the domain name for page in all the pages **/ function append_query_string( $url, $post, $leavename=false ) { return str_replace(“vps.students.uit.yorku.ca”,”vpstudents.yorku.ca”,$url); } add_filter( ‘post_link’, ‘append_query_string’, 10, 3 );

Open “sites/default/settings.php” and added the following line: ini_set(‘max_execution_time’, 0);

Moving ahead and assuming you have Xcode and the command line tools installed, launch Terminal and enter the following commands as shown. First, use curl to download the latest wget source: curl -O http://ftp.gnu.org/gnu/wget/wget-1.16.3.tar.xz Or to use an older version (prior versions of OS X) curl -O http://ftp.gnu.org/gnu/wget/wget-1.13.4.tar.gz (sidenote: a new version of wget may […]

Recently, I updated from Netbeans 7.4 to Netbeans 8.0. No real reason, other than it was available. Upon updating I noticed that PHP function/method/class information wasn’t being included in the Netbeans Navigator window. After a bit of researching, I stumbled on the idea that, perhaps, the file extensions were not migrated during the upgrade. Here’s […]

It is because white space in  admin-ajax.php. So go to your wordpress /wp-admin/admin-ajax.php , then put “?>” at the end of the file. Reload the page after that. This will fix the problem

Where is mysql.sock in XAMPP Mac /Applications/XAMPP/xamppfiles/var/mysql/mysql.sock Then, sudo mkdir /var/mysql sudo ln -s /Applications/XAMPP/xamppfiles/var/mysql/mysql.sock /var/mysql/mysql.sock

Download the app called FinderPath from https://bahoom.com/finderpath/ Install the app, and it might ask to change settings in order to run the application. After installation, open Finder and press CMD + G and there it is… Usage Press Command+G or click on Finder’s titlebar item to activate the FinderPath address bar.Shortcuts Tab/Return Complete highlighted suggestion & […]

Just go to the page that has the video. Right click anywhere on the page. click on “view page info” Click on “Media” Inside the scroll down box, find and select the swf file you want. Click on “save as”. then select type of the file mp4 ….. Done.

In Drupal 7, it is not necessary to call drupal_install_schema(), or drupal_uninstall_schema(); that is automatically done from Drupal. It is enough to implement hook_schema(), and the database table is created. There are many modules for Drupal 7 implementing that hook, and their database tables are created. Two possible causes for the database table not being […]

Go to Task Scheduler Find NT TASK\Microsoft\Windows\UpdateOrchestrator\Reboot Its actually just named Reboot but you have to go inside those folders Right Click > Properties > Conditions Uncheck Wake the computer to run this task Also, I disable all wake timers for my computers inside Power Options.

1) Open terminal and type sudo su and then put in your password 2) Then type ps aux | grep mysql (just copy and paste this) 3) You will need to get the process id of mysql. There should be number near the top, something like 739 or 8827 4) Kill the process using kill […]

Animation is everywhere in OS X, and it is not possible to disable all animation with one global setting, which makes this a very complicated question to answer completely. I would advise you to try disabling things one at a time as you find animations that annoy you. Check System Preferences to start. For example, […]

Introduction Drupal is a popular content management system (CMS) that is used to quickly deploy websites on sites in an easy to use framework. This guide will cover how to deploy multiple sites from within a single Drupal installation. We will be installing the latest version of Drupal as of this writing (7.23), on an […]

Changing the userdir You can specify the new location for the .netbeans userdir via the –userdir <path> startup option when starting NetBeans. New userdir location cannot be in Netbeans folder. See: FaqNetbeansConf. The <path> argument may refer to an existing or a new folder name. If pointing to an existing dirctory, it will be reused. […]

Open Terminal found in Finder > Applications > Utilities In Terminal, paste the following: defaults write com.apple.finder AppleShowAllFiles YES Press return Hold the ‘Option/alt’ key, then right click on the Finder icon in the dock and click Relaunch.

In a case after you install a module, try to access admin page (http://localhost/drupal/admin/modules), but keep getting this error : How to Fix: Add the following to the end of httpd.conf to increase the Apache stack size to 8MB. <IfModule mpm_winnt_module>    ThreadStackSize 8388608 </IfModule> Restart services and your good to go using any version […]

After a bit of researching, I stumbled on the idea that, perhaps, the file extensions were not migrated during the upgrade. Here’s how to do that on a Mac: Choose NetNeans > Preferences > Miscellaneous > Files Next to File Extension, choose New… Enter module for the File Extension. Select text/x-php-5 for Associated File Type […]

Press the Windows + R button on your keyboard and type GPEdit.msc. or Open Start and type gpedit.msc and hit enter Unfold Administrative Templates under Computer Configuration. Unfold Windows Components. Click on the Windows Update folder. Double-click on No Auto-Restart with logged on users for scheduled automatic update installations. Check the Enabled box. Click on […]

Original link : here If you are calling a function such as wp_update_post that includes the save_post hook, your hooked function will create an infinite loop. To avoid this, unhook your function before calling the function you need, then re-hook it afterward. <?php // this function makes all posts in the default category private function set_private_categories($post_id) […]

So after hours of tinkering with my oneplus one knowing full well my display was NOT going bad and reading many threads on this forum about it, i figured out how to fix the screen wake issue. if your screen wont wake up with power button or double-tap, do the following.. 1. Settings 2. Display […]