Archive for January, 2010

WordPress uploads don’t work properly

On some systems wordpress doesn’t support file uploads out-of-the-box.

A problem can be that the directories are not writable by your web server, to remedy this do:


chown -R www-data /var/www/wordpress

If uploads still don’t work check the following setting: Admin panel -> Settings -> Minscellaneous -> Store uploads in folder. Try to set it to:


wp-content/uploads

(without slash at the beginning)

via http://singhmadhuri.wordpress.com/2009/09/06/unable-to-create-upload-parent-directory-not-writable-by-server/

Tags: ,

Thursday, January 28th, 2010 Uncategorized No Comments

Blender socket communication example

This server/client sample demonstrates how you can connect a Blender model that uses Blender Game Engine to a socket. server.py serves floating point numbers that are manually entered by the user on a socket. socket.blend connects to the socket and adjusts the orientation of a cube according to a quaternion (1,1,0).

Blender socket communication example

Thursday, January 28th, 2010 Uncategorized 1 Comment

apt-get GPG error NO_PUBKEY

When using custom repositories like the the ubuntu Personal Packages Archives (PPA), all updates and installs of packages will give an

NO_PUBKEY 0123456789ABCDEF

error. To fix this the key that is used to digitally sign the packages can be added to your system (indicating that you trust the source):


gpg --keyserver pgpkeys.mit.edu --recv-key  0123456789ABCDEF
gpg -a --export 0123456789ABCDEF | sudo apt-key add -

via http://en.kioskea.net/faq/sujet-809-debian-apt-get-no-pubkey-gpg-error

Tags:

Saturday, January 23rd, 2010 Uncategorized No Comments

No sound from headphone jack for Realtek Audio HD

Sometimes the Realtek ALC888s HD audio codec in laptops has the problem that no sound is coming from the headphone jack. This can be remedied by enabling the ForceDisableJD option in the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet section of the windows registry.

However, when this option is enabled, the speakers don’t work anymore. To quickly enable and disable this fix you can do he following:

Make two registry editor files (one for with ForceDisableJD enabled and one disabled). The numbers on other machines can be different, so it is not guaranteed that these exact examples work on your system.

headphone.reg example:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0015\Settings]
"ForceDisableJD"=hex:01

and

speaker.reg example:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0015\Settings]
"ForceDisableJD"=hex:00

Create two batch files:

headphone.bat:

@echo off
regedit /s headphone.reg
devcon disable HDAUDIO*
devcon enable HDAUDIO*
pause

speaker.bat:

@echo off
regedit /s headphone.reg
devcon disable HDAUDIO*
devcon enable HDAUDIO*
pause

For this to work you need the DevCon utility. You can place this utility in a location that is inside your path, or put the utility in the same directory as the batch files.

You can now quickly switch between speaker and headphone by using the batch files. Take care to only run these batch files when the audio device is not in use, otherwise the re-initialization of the devices will not succeed.

This fix is based on Akolyt0r’s solution found on this forum.

Tags: ,

Sunday, January 17th, 2010 Uncategorized No Comments

Fix audio realtek ALC260 on Acer Aspire 9500

Fix found on the ubuntu issue tracker:

Solution 1

This solution gives very loud speaker volume and normal headphone volume.

in /etc/modprobe.d/alsa-base.conf add:

options snd-hda-intel model=acer

Solution 2

This solution gives normal speaker volume and normal headphone volume.

in /etc/modprobe.d/alsa-base.conf add:

options snd-hda-intel model=will probe_mask=1

Fix 2 is my preference (though they both work).

Tags: , ,

Thursday, January 14th, 2010 Uncategorized 2 Comments