Menu

Attention-based models | Generative AI | Artificial Intelligence

Attention-based models help focus the network on important features of the input and ignore less important features.

Create local tunnel to access localhost over internet | ngrok | serveo

As a developer very frequently we need to test the things over internet that are under development and running locally on localhost for real time testing. To expose the localhost or local machine over internet we need to create tunnels, that are crearting redirect to local application. In respect to this there are few easy tools avaiable in the market that can quickly create this tunnel for testing and provides a subdomain url. Few of them are listed below.

  1. Ngrok is one the prominent tools that come with limited free access and for more use we have to go for premium. Please refer the ngrok getiing started document for quick setup https://ngrok.com/docs/getting-started.

    Command to start a tunnel using ngrok: ngrok http http://localhost:8080

  2. Serveo is the one the best and quick tool, that doesnt required any installation. We just need to run a ssh command and our tunnel is ready. The only prequisite is we should have ssh installed in our machine, and I assume, every developer machine have this via putty, git, powershell, and many other tools. For quick reference and setup guide please refer https://serveo.net.

    Serveo command to start a localhost tunnel: ssh -R 80:localhost:4503 serveo.net







Node type cq:ReplicationStatus2 does not exist | AEM Replication Error

AEM SDK is throwing error "Node type cq:ReplicationStatus2 does not exist" in replication queue when publishing assets from AEM author to publish. Below is the complete error message from error log.  

*ERROR* [sling-threadpool-f2a3ac99-xxx-(apache-sling-job-thread-pool)-11-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish << error: com.day.cq.replication.ReplicationException: Repository error during node import: Node type cq:ReplicationStatus2 does not exist.


Resolution (ReplicationStatus2 does not exist):

1. Make sure both AEM author and publish sdk are on the same version.

2. Check the affected file and and compatibility with AEM.


References:

  1. https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/what-is-the-mixin-type-quot-cq-replicationstatus2-quot-used-for/m-p/646929/highlight/true#M162219
  2. https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/com/day/cq/replication/ReplicationStatus.html