Openoffice: “[context="bundled"] caught unexpected exception!” error

I noticed the error “[context="bundled"] caught unexpected exception!” on a OpenOffice installation on a terminal server. I noticed that OpenOffice have some issues with running on a terminal server, which i have noticed the hard way.

The solution is to update OpenOffice`s bootstrap.ini*  and tell it where a user`s profile path is located.

So, change bootstrap.ini from:

UserInstallation=$SYSUSERCONFIG/OpenOffice/3

To:

UserInstallation=File:///h:/path/to/openoffice/userinfo

You should find Bootstra.ini under: C:\Program Files\OpenOffice3\program\bootstra.ini for example

Posted in Software | Tagged | 3 Comments

Two Crucial C300 in RAID0 on a M4A87TD motherboard causes BSOD`s, hangs in Win7

So i have tried to use Two Crucial C300 in RAID0 on a M4A87TD motherboard for a while now. After a while i started experiencing BSOD`s, hangs, crashes, freezes etc. I tried to debug -everything- until i came over multiple complaints about the same on the Crucial forums. (Not exactly the same, but enough to check it out)

I decided to simply remove the RAID and only use one drive for Windows 7. So far it appears to be very stable again, so hopefully the issues was related to the combination of two SSD`s in RAID0 on a AMD-RAID controller.

Time will tell.

Posted in Hardware, Windows | Tagged , , , , , | Leave a comment

Saniplus toilet pump that wont stop pumping

Time for something completely different here, so how about a toilet pump guide.

I have a Saniplus toilet pump at home that decided to keep pumping constantly even when all the water was pumped out. After much Googling a tip appeard that was impressivly simple. Try tapping the box just around the place where the power cord goes in, if that work

Posted in Everything else, Real life | Tagged , | Leave a comment

WordPress: Image could not be processed. Please go back and try again.

This is a rather cryptical error message WordPress gives when trying to upload a header image and it fails.

The solution is to make sure your server has php(5)-gd installed.

Ubuntu:

apt-get install php5-gd

Red Hat:

yum install php-gd
Posted in Linux, Software | Tagged , , | 22 Comments

jpackages error: Missing Dependency: /usr/bin/rebuild-security-providers

Jpackages on Red Hat has a nifty bug that causes dependency errors.

Luckily, somebody has created a fix as a rpm package :)

wget http://plone.lucidsolutions.co.nz/linux/centos/images/jpackage-utils-compat-el5-0.0.1-1.noarch.rpm
rpm -ivh jpackage-utils-compat-el5-0.0.1-1.noarch.rpm

And then jpackages works.

Posted in Development, Java, Linux, Red Hat, Software | Tagged , | 1 Comment

ImportError: No module named trac

When working with a new Trac installation you can bump into the error message “ImportError: No module named trac”. This is usually caused by Trac installation not unzipping all the needed files.

The following one liner should fix the issue:

1
cd /usr/lib/python2.4/site-packages;unzip Trac-0.12.2-py2.4.egg
Posted in Linux, Software | Tagged , , | 3 Comments

package subversion-1.6.12-0.1.el5.rf.x86_64 (which is newer than subversion-1.4.2-4.el5_3.1.i386) is already installed

Package conflict that can appear some times, a simple fix then is to downgrade first, then upgrade:

 

yum --downgrade update subversion
yum update subversion
Posted in Linux, Red Hat | Tagged , | Leave a comment

Tips for implementing a custom JAAS login module for Jetty

1) jetty-web.xml

You can gather all specific settings for Jetty in the file WEB-INF/jetty-web.xml, remember to also specify paths for the role principals if you use your own classes for that.

Example jetty-web.xml file:

<!-- Jetty specific config file -->
<Configure>
 
<!-- Tell jetty where to find login config -->
<Call name="setProperty">
	<Arg>java.security.<strong>auth</strong>.login.config</Arg>
	<Arg>WEB-INF/login.config</Arg>
</Call>
 
<!-- Bug fix for Jetty to properly handle login config in a per-project setup -->
<Set name="serverClasses">
	<Array type="java.lang.String">
		<Item>-org.mortbay.jetty.plus.jaas.</Item>
		<Item>org.mortbay.jetty</Item>
		<Item>org.slf4j.</Item>
	</Array>
</Set>
 
<!-- Create login realm -->
<Get name="securityHandler">
	<Set name="userRealm">
		<New>
			<Set name="name">*NAME OF YOUR REALM*</Set>
			<Set name="LoginModuleName">*NAME OF YOUR LOGIN CLASS*</Set>
			<Set name="roleClassNames">
				<Array type="java.lang.String">
					<Item>*PATH TO YOUR ROLE PRINCIPAL CLASS*</Item>
				</Array>
			</Set>
		</New>
	</Set>
</Get>
</Configure>

2) Adding roles to a user in commit

When you want to give a user roles(like admin, moderator etc), you can add those to the user when he or she is authenticated and commit is called upon:

	public boolean commit() throws LoginException {
		MyUserPrincipal user = new MyUserPrincipal("username");
 
		//Add logged in user as first principal
		subject.getPrincipals().add(user);
 
		//Add roles for the logged in user
		subject.getPrincipals().add( new MyGroupPrincipal("admin") );
		subject.getPrincipals().add( new MyGroupPrincipal("moderator") );
	}
Posted in Java | Tagged , | Leave a comment

List of people twittering about Libya

Blog post last updated 16:04 GMT, 23.february 2010

This is a manually updated list of people twittering about the clashes that have now spread to Libya

Note: please comment if you miss anybody/anything here.

Twitter accounts updated within the last hour:
feb17voices, tweets about ti
alihabibi1, tweets about it
F_albinali, tweets about it
BBC World news, tweets about it
AJEnglish, tweets about it
Jnoubiyeh, tweets about it

Twitter accounts updated within the last three hours:
n/a

Twitter accounts updated later:
n/a

Hashtags:
#Tripoli

Posted in Twitter, Web | Tagged , | 1 Comment

Debugging GWT: Did you forget to inherit a required module?

You will receive this error if you are using classes in your GWT project that GWT does not have access to. Make sure that you have added something like this in your gwt.xml file, within your module element:

    <source path="path.to.classes" />
Posted in Java | Tagged | Leave a comment