Development / On the Web / Tips March 2, 2012 @ 09:20

WordPress Non-FTP Upgrades

Annoyed by having to enter FTP credentials every time you update WordPress or any of it’s plugins? Put this in your wp-config.php:

define('FS_METHOD', 'direct');

Might not work for you, but you could try, it did for me. Thanks to this post.

By the way, if you still have problems updating, make sure you set the correct access rights for your directories in wp-content.

Development / Tips March 13, 2011 @ 16:07

Script: Connect Maya Nurbs Curves


This simple python script does not actually attach two curves.
Instead, it matches the first and last two control vertices to ensure continuity in translation and velocity.
Which ends will be connected is determined by selection order and curve direction.

EDIT: Ignorant me, I just discovered that Maya already has a built-in command for this: alignCurve.
Read the rest of this entry…

Tips March 4, 2011 @ 11:40

MP4 Files in Adobe Premiere

If you’ve used Premiere, you’ve probably had the problem of not being able to open MP4 files. “Unrecognized file format” or something similar.

The solution is simple: Rename the movie to change the extension to .mov and Premiere will import the file properly.

Development / Tips February 7, 2011 @ 00:46

Setting up SVN on Ubuntu

On my quest to get a proper version control system installed on a cheap low-spec machine that’s always running, this is what I came up with so far. I’ll try to write a quick tutorial, just highlighting the steps you need to get it up and running. Shouldn’t be too difficult.

Before, I set it up using Apache2 on my Ubuntu machine, accessible from port 80 with a regular web browser, easy. But after a while it started being really slow and unresponsive.  After some poking around, I discovered 10 to 20 apache processes, each taking up about 5 mb. My little media-playing Atom pc was choking.

The solution I found was to get rid of Apache altogether for this purpose and just run svnserve. Much easier to set up a and quick as a bunny!

First, install Ubuntu. Leaving that up to you. You should probably know how to open a console: CTRL+ALT+F1 from the ‘desktop’ (ALT+F7 to go back to the desktop). Now we can tell the computer to do things.

Install Subversion (SVN):

sudo apt-get install subversion

Now create a repository to store our actual data. Replace “/path/to/svnRepository with the path you want to use:

svnadmin create /path/to/svnRepository

You might want to set up some protection by requiring a username and password. Type this in the console:

nano /path/to/svnRepository/conf/svnserve.conf

Nano is a simple text editor, use your arrow keys to navigate. Look for this line

# password-db = passwd:

and change it to this:

password-db = passwd:

Also, make sure you change this line

# anon-access = read

to this:

anon-access = none

Press CTRL+X to exit Nano. It will ask to save the file, press Y to confirm that.

Then we set up a password by editing the passwd file:

nano /path/to/svnRepository/conf/passwd

You’ll see some lines of text there, add one line at the end. I’ll assume your name is ‘John‘ and your password ‘ILikeLOL‘:

John = ILikeLOL

You can add more users if you like. Then again, exit with CTRL+X and press Y to confirm the write.

Protect the file:

sudo chmod 600 /path/to/svnRepository/conf/passwd

The only thing we need to do now, is start the actual svn server every time the computer boots up by creating a script as such:

sudo nano /etc/init.d/svnserve

Type in this command that will start the server as soon as the script is run:

svnserve -d -r /path/to/svnRepository

You know the drill, exit (CTRL+X) and save (Y). All done! Well, almost. Now we reboot the computer and you should have your own SVN server!

There is a fair chance that I missed something or this doesn’t work at all. If so, drop a comment below.

Development / Tips February 6, 2011 @ 22:27

Version Control

A version control system is a server-based system on which you can store multiple versions of files without having to rename them or sacrificing too much disk space. Initially designed to store text files (code), it can also store binary assets, like pictures or audio files just fine. So why not just backing stuff up with whatever came with your computer? Many people working with computer files have the problem of having filenames like this:

SomeDesign.psd
SomeDesign1.psd
SomeDesign2.psd
SomeDesign1_New.psd
SomeDesign1_New_Final .psd

To solve this you could add dates to the file (SomeDesign_2010_01_01.psd) names or just keep adding numbers.
Not too practical because you’d need to keep a description of every file somewhere. I used to name files like this and tried all sorts of naming methods. But you work fast, save an extra version that your client likes and eventually, it becomes a mess.

This is where a version control system comes in. You just keep the same name, add a short description and throw it on the server that stacks it neatly into it’s database, keeping all older versions. At any time you can get an older version by number, date or description without having to move around stuff. And it’s easy to back up as well.

For teams it has even more benefits. If you’re working together on the same set of files, a website or a game for example, you try to keep in sync by copying files over a network, figuring out which ones are updated. Version control lets you update a project, just altering the new files and warning you if somebody has been working on the same file as you did. You could even lock the file that you’re working on to make sure nobody else can write it meanwhile.

There are numerous version control systems available. To name a few from the top of my head: CVS, SVN, GIT, Perforce, etc. Some of them are commercially available and very good. Perforce for example is a fantastic system that handles all kinds of files really well and is extremely easy to set up, but it has a price tag. Git seems to be very good, but I haven’t looked at it (yet).

In short, if you’re creating a lot of file versions and your harddrives and your usb pen drives are becoming a relic of human chaotic organization… it’s probably worth looking into this.

If you want to use a version control system, you need some place to store your stuff. This can be done at a globally accessibleGoogle, Sourceforge, GitHub or whatever free or payed service you can find. Or better and more fun, you can set up your own at home or in your company’s network. I’m using Ubuntu on an low-spec Atom/ION-based mini computer, attached to my TV, that also plays my music and videos. I’ve written a quick guide to set up Subversion (SVN) on such a machine here.

Tips September 12, 2010 @ 18:14

Windows 7 freezes when choosing Winamp’s Send-To

Disable your virtual (cd) drives, fixed it for me.

Tips September 6, 2010 @ 20:02

Google Talk Freezes when receiving Message

Almost strangled the cat while trying to figure this one out.

Every once in a while when someone sent me a message, GTalk would hang for a couple of seconds or more. It only seems to happen when GTalk doesn’t run in the foreground. Some people apparently ‘solved’ the problem by disabling some feature on another application like Winamp. But for me, the following (more simple) solution proved effective:

In GTalk:
Settings > Audio > Notifications – Rings and Dings
change ‘All Devices’ to ‘Default Device’. (Or another device that works for you)

My guess is that GTalk tries to play the incoming message sound through a device that is not available, and then locks until the device is available or a timeout has been exceeded.

Anyway, the cat is still alive, see?