Skip to main content

Liferay - RSS Portlet - Removing 'Opens New Window'

Add below css to remove 'Opens New Window' from Liferay's RSS portlet

.opens-new-window-accessible {
display:none 
}

Comments

Popular posts from this blog

Testing Restful API with Spock - groovy

Spock is a testing and specification framework for Java and Groovy applications. Here we will use groovy RestClient along with Spock to test Restful Services. import groovyx.net.http.RESTClient import spock.lang.Specification import spock.lang.Shared class MyApiSpec extends Specification { @Shared RESTClient restClient def setupSpec() {                 restClient = new RESTClient('hostnamewithport') restClient.handler.failure  = restClient.handler.success }  def 'test get method'(){  given:  restClient.headers.Accept = 'application/json'  when:  def resp = restClient .get(path: 'path(ex:/api/list/'), query:[param1:'param1value',param2:'param2value'] )  then:  resp.status == 200  resp.data.somejsonobject == 'expectedjson'  }  def 'test post method'(){  given:  restClient .headers.Accept = 'appli...

How to check which application is using port on windows?

Run the below command on Command Prompt to get the PID netstat -ao Note down the PID number and execute below command to know the application that is actually using the port.  tasklist /fi "pid eq <PID>"

Removing Authorized keys & history from AWS instance

AWS recommends to delete authorized keys and and history from your instances before creating and publishing AMI. You might get below error when you submit your AMI for scanning without removing the keys. Authorized keys found Authorized key(s) found in the following location(s): /home/ec2-user/.ssh/ authorized_keys:1 /root/.ssh/authorized_keys:1 To find authorized keys : find / -name "authorized_keys" -print -exec cat {} \; To remove keys: find / -name "authorized_keys" –exec rm –f {} \; To remove history : find /root/.*history /home/*/.*history -exec rm -f {} \; For more information refer to  https://aws.amazon.com/articles/0155828273219400