Useful WordPress plugins

On October 28, 2011, in Wordpress, by lucasterdev
  • W3 Total Cache / WP Super cache (for caching)
  • All in one SEO Pack (for SEO optimization)
  • Google XML Sitemaps (for SEO optimization)
  • SI CAPTCHA Anti-Spam (for spam)
  • SyntaxHighlighter Evolve (for syntax highlighint)
 

Make PlayOnLinux work in Ubuntu 11

On October 26, 2011, in PlayOnLinux, Ubuntu, Ubuntu 11, Wine, by lucasterdev

Do NOT install PlayOnLinux from the Ubuntu Software Center!

First, install/update some required libraries:

sudo apt-get install debhelper libpq-dev libwxgtk2.8-dev libxml2-dev

Then, update the repo:

wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -

sudo wget http://deb.playonlinux.com/playonlinux_natty.list -O /etc/apt/sources.list.d/playonlinux.list

sudo apt-get update

Finally, install PlayOnLinux:

sudo apt-get install playonlinux

 
 

Make Web Services work with JBoss AS 7

On October 25, 2011, in JBoss AS 7, Web Service, by lucasterdev

1. Use JBoss AS 7, (the one with EVERYTHING), not the Web profile version. The Web profile version doesn’t support Web Services.

2. Open standalone.xml and add the following:

<extension module="org.jboss.as.webservices"/>

and the following:

<subsystem xmlns="urn:jboss:domain:webservices:1.0" xmlns:javaee="http://java.sun.com/xml/ns/javaee" xmlns:jaxwsconfig="urn:jboss:jbossws-jaxws-config:4.0">
    <wsdl-host>
        localhost
    </wsdl-host>
    <modify-wsdl-address>
        true
    </modify-wsdl-address>
    <endpoint-config>
        <jaxwsconfig:config-name>
            Standard-Endpoint-Config
        </jaxwsconfig:config-name>
    </endpoint-config>
    <endpoint-config>
        <jaxwsconfig:config-name>
            Recording-Endpoint-Config
        </jaxwsconfig:config-name>
        <jaxwsconfig:pre-handler-chains>
            <javaee:handler-chain>
                <javaee:protocol-bindings>
                    ##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM
                </javaee:protocol-bindings>
                <javaee:handler>
                    <javaee:handler-name>
                        RecordingHandler
                    </javaee:handler-name>
                    <javaee:handler-class>
                        org.jboss.ws.common.invocation.RecordingServerHandler
                    </javaee:handler-class>
                </javaee:handler>
            </javaee:handler-chain>
        </jaxwsconfig:pre-handler-chains>
    </endpoint-config>
</subsystem>

Some links, as reference:

http://community.jboss.org/message/631303?tstart=0

 

How to enable remote access to JBoss AS 7

On October 21, 2011, in JBoss AS 7, by lucasterdev
Set the following in JBOSS_AS_7_HOME/standalone/configuration/standalone.xml
<interfaces>
    <interface name="management">
        <inet-address value="127.0.0.1"/>
    </interface>
    <interface name="public">
        <any-address/>
    </interface>
</interfaces>
 

http://community.jboss.org/thread/169073

https://issues.jboss.org/browse/RF-10978

 

Edit: they fixed it in version 4.1.0-SNAPSHOT

 

Using JSF 2.0 templates with f:metadata

On October 14, 2011, in Facelets, JSF, JSF 2.0, by lucasterdev

(from http://javaserverfaces.java.net/nonav/docs/2.0/pdldocs/facelets/f/metadata.html)

In the template.xhtml:

<html xmlns="http://www.w3.org/1999/xhtml"
  	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xml:lang="en" lang="en">

	<body>
		<f:view>
			<ui:insert name="metadata"/>
			<div id="container">
				<ui:insert name="content"/>
			</div>
		</f:view>
	</body>
</html>

In the page:

<ui:composition template="template.xhtml">
	<ui:define name="metadata">
		<f:metadata>
			<f:viewParam name="id"/>
		</f:metadata>
	</ui:define>
	<ui:define name="content">
		<h1>The big news stories of the day</h1>
	</ui:define>
</ui:composition>
 

Edd the following to web.xml:

<context-param>
	<param-name>org.richfaces.enableControlSkinning</param-name>
	<param-value>false</param-value>
</context-param>