define('DISALLOW_FILE_EDIT', true); define('DISALLOW_FILE_MODS', true); Blog | WP Hosting

Blog

Broadcast Servers

Posted by on 3:41 am in Featured | 0 comments

Broadcast Servers

Dedicated FTP Hosting for TV

read more

How to disable update notifications in WordPress

Posted by on 1:42 am in Knowledge Base, Plugins | Comments Off on How to disable update notifications in WordPress

Sometimes “new” doesn’t always mean “better” or “suitable”. Sometimes we require older versions of plugins and I’d rather WordPress would not tell me that there’s a newer version available. After all, I might accidentally update a plugin – or perhaps my clients do, breaking the site or overwriting customisations. Let’s take a look at how we can disable those notifications, both for single plugins and for the entire site. Disable update notifications for a single plugin You can...

read more

How to add a Custom Button in Plesk

Posted by on 11:21 pm in Knowledge Base | Comments Off on How to add a Custom Button in Plesk

Plesk allows you to create custom buttons to the control panel, complete with logo and URL. Since Plesk 11.5 you can even choose in which part of the panel your buttons shall be displayed. To do this, login as administrator and head over to Tools & Settings under Panel Appearance, choose Custom Buttons click Add Link to Service give your button a Display Title and enter a URL select an image (I find 100×100 works well) select where you’d like the button to appear from the drop-down You have several self explanatory options in...

read more

How to display an RSS Feed in Plesk 11.5

Posted by on 11:08 pm in Knowledge Base | Comments Off on How to display an RSS Feed in Plesk 11.5

One of the many new features in Plesk 11.5 is that you can customise the Panel appearance for your customers even more than before. For example, Parallels allow us to display any RSS Feed in the control panel in the right sidebar. Adding it isn’t as easy as it perhaps should be. In this article we’ll examine how to do it. Here’s what an RSS Feed looks like inside Plesk 11.5 How to we add a feed? I had expected this to be a simple copy and paste session inside Plesk Panel itself. But that’s not the case. You’ll...

read more

How to fix permission problems when restoring folders from Time Machine Backups

Posted by on 3:40 am in Knowledge Base | Comments Off on How to fix permission problems when restoring folders from Time Machine Backups

I had an odd problem the other day: I wanted to restore a fairly large folder from my new AirPort TimeCapsule. But the restore always stopped at one particular file, with an error message about permission problems. The folder in question was about 4GB in size and contained just over 10.000 files in total. I was baffled! Time Machine had never failed me before, so what was going on out of a sudden? Well I guess it’s a computer, and things just go wrong sometimes. Thanks to Apple Support this problem is now solved – and I thought...

read more

How to use yum-complete-transaction

Posted by on 10:13 pm in Knowledge Base | Comments Off on How to use yum-complete-transaction

Every once in a while it can happen happen that use use “yum update” to update your Linux system. Usually this works without a hitch, but you may have come across a message such as this: Setting up Install Process Resolving Dependencies There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them. The program yum-complete-transaction is found in the yum-utils package. But what does this mean, and how do we alleviate this? This message means that yum didn’t quite finish...

read more

How to mount additional disk space in 1&1′s Cloud Server

Posted by on 2:45 pm in Knowledge Base | Comments Off on How to mount additional disk space in 1&1′s Cloud Server

I’ve just ordered a new Dynamic Cloud Server with 1&1 with a total of 800GB disk space. They rock, but they come with a minor inconvenience: due to the way these server instances are allocated, 1&1 do not automatically extend the partition for you – so you can’t actually start using the full amount you’ve ordered. Here’s how to make use of the full disk space on a current file system: df -h shows all partitions we want to grow, in my case /var is mounted on /dev/mapper/vg00-var so that’s the one I want to grow pvs shows us how much...

read more

How to use Targets in Xcode

Posted by on 2:50 pm in Knowledge Base | Comments Off on How to use Targets in Xcode

Targets are an extremely yet totally undocumented feature of Xcode. They allow you to write code once, and then build multiple “versions” of the same code base. This makes maintenance and code updates extremely easy across more than “product”. I use those quotation marks because usually an “Xcode Project” equals a “Product” (such as one iPhone app, or one Mac app). But really it’s the Target that defines the product, and it is feasible to write code once and use it to create several...

read more

How to define Preprocessor Macros in Xcode

Posted by on 2:13 pm in Knowledge Base | Comments Off on How to define Preprocessor Macros in Xcode

I’ve often wondered how to use those efficiently, and I’ve just found out how to do it. As always, they’re not difficult to implement – but not documented in a way that simple folk like me can understand it. Be that as it may… Preprocessor Macros can be useful if you’d like to compile two different versions of the same Xcode Project, such as a Lite and a Pro version, or a separate iPhone and an iPad version. Rather than create separate Xcode Projects for each version, you have one project with two targets....

read more

How to check if your app is running on an iPad or an iPhone

Posted by on 2:14 am in Knowledge Base | Comments Off on How to check if your app is running on an iPad or an iPhone

Here’s how we check that: // if we're an iPad if ([[UIDevice currentDevice]userInterfaceIdiom] == UIUserInterfaceIdiomPad) { // do some iPad or iPad Mini specific stuff } else { // we're on iPhone or iPod Touch } Alternatively you can check the same method for UIUserInterfaceIdiomPhone instead, which is returned when you’re on an iPhone or iPod touch.

read more