Wednesday, 15 September 2010

FCKEditor background color

An issue with the FCKeditor is that if you chance the background color for your main site, the editor background also changes, which makes editing a pain.

http://www.glfusion.org/forum/viewtopic.php?showtopic=30761

First find and edit

/public_html/fckeditor/fckconfig.js

Originally

FCKConfig.EditorAreaStyles = 'body { color:#000;margin-bottom:30px;} h1 {background:transparent;color:#000;font-size:1.4em;font-weight:700;margin:0 5px 0 0;} ul { list-style-position:outside;margin-left:5px;padding-left:15px;list-style:disc;vertical-align:middle;}' ;

Change to ( background:#FFFFFF ) is the main item

FCKConfig.EditorAreaStyles = 'body { background:#ffffff;margin-bottom:30px;} h1 {background:transparent;color:#000;font-size:1.4em;font-weight:700;margin:0 5px 0 0;} ul { list-style-position:outside;margin-left:5px;padding-left:15px;list-style:disc;vertical-align:middle;}' ;

The drupal boys also have some notes

http://drupal.org/node/204242

Friday, 3 September 2010

JPA 1.0 Spring Context for an Embedded Derby DB




          
 
  
  
 
 
 
  
   
    create
    org.hibernate.dialect.DerbyDialect
    true 'T', false 'F'
    true
    5
    20
    600
    50
    false
   
  
 
  




    
    


          
          

          
               
                    
                    
                    
                    
               
          

          
               
                    
                    
                    
                                                
               
          

          
               
          

    
    
     
       
       
     

    
    
    
        
    
    
                    com.xx.xx.common.index.entity.CellEntity
                  


com.xx.xx.common.index.entity.APNEntity






CELL



APN





















the associated persistence.xml

 
    

Wednesday, 1 September 2010

Add RestFB jars to maven

First download the restfb api and run the following maven command from the extracted dir.

mvn install:install-file -Dfile=restfb-1.5.3.jar 
-DgroupId=com.restfb -DartifactId=restfb -Dversion=1.5.3 -Dpackaging=jar -DgeneratePom=true

this installs the jar in your local mvn repo, and then add the following dependency to your pom


  com.restfb
  restfb
  1.5.3