Menu

Add a custom action/option in AEM Assets

AEM Assets browser or asset editor have too many options to quickly perform the action like publish, edit, properties, download and many more. Today in this blog we will explore and implement how we could customoze this ribbon add a similar action in asset editor.

All these action items are coming from the libs path  /libs/dam/gui/content/assets, if a developer wants to add a custom action then developer have to create the same overlay assets directory so sling merger will read the custom action and load with the other options in Assets editor.  

Libs directory



Apps directory

Under the assets >> jcr:content >> actions >> selection add a node of type nt:unstructure, as shown here in below image.




Here we have added the action Translation as option, and this is how it will appear in the AEM Assets browser.



References:

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

Earth doesn't revolve around the Sun | New Facts by NASA

Recently, National Aeronautics and Space Administration (NASA) declared that Earth is not revoling around the Sun.

Undrerstand the orbit/barycenter in English


Understand the orbit/barycenter in Hindi



References:

  1. https://www.nasa.gov/science-research/earth-science/nasa-funded-studies-explain-how-climate-is-changing-earths-rotation/
  2. https://www.firstpost.com/tech/earth-doesnt-revolve-around-the-sun-nasa-explains-new-insights-into-planets-motion-13793818.html

Did you know these interesting facts about Japan?

Did you know Japan? Some of the facts about Japan and Japanese.

  1. Japan is made up of over 14,000 islands.
  2. Japan has the fastest train.
  3. Japan's literacy rate is 99 percent.
  4. Japan is also named Nippon or Nihon which mean Land of rising Sun.

Japan the Earth of rising Sun
Japan | Src: nohurrytogethome.com


Petroglyphs | Ancient Rock Carvings

Petroglyphs are ancient rock carvings created by pecking, hammering, or chipping away the surface of a rock to create an image or symbol. These carvings can be found on natural rock surfaces and are often created by removing the top layer of rock to reveal a different colored layer beneath. Petroglyphs are one of the oldest forms of human expression and communication, providing valuable insights into the cultures and societies that created them.


History of Petroglyph Painting

The history of petroglyphs dates back to the earliest days of human civilization, with some of the oldest known petroglyphs estimated to be over 40,000 years old. These ancient carvings are found on every inhabited continent and span a wide range of cultures and time periods. Petroglyphs have been used to document everything from daily life and hunting practices to religious beliefs and astronomical observations.


Origins

Petroglyphs likely originated as a means of communication before the advent of written language. Early humans used these carvings to convey information, tell stories, and mark significant locations. Over time, the practice of creating petroglyphs evolved and became more sophisticated, reflecting the changing needs and capabilities of the societies that produced them.


Major Architecture or Heritage Sites with Petroglyph Paintings

Several notable sites around the world are renowned for their petroglyphs. These sites provide valuable insights into ancient cultures and are often protected as UNESCO World Heritage Sites or national monuments.

  1. Valcamonica, Italy

    Valcamonica, located in the Lombardy region of Italy, is home to one of the largest collections of petroglyphs in the world. With over 140,000 symbols and figures carved into rock faces, this site offers a fascinating glimpse into the lives of ancient peoples from the Neolithic to the Iron Age. The carvings depict a variety of scenes, including hunting, dancing, and religious rituals.

  2. Petroglyph National Monument, USA

    Located in New Mexico, USA, Petroglyph National Monument protects a large collection of petroglyphs created by Native American and Spanish settlers. The site features over 25,000 images carved into volcanic rocks, many of which are believed to hold spiritual significance.

  3. Gobustan Rock Art Cultural Landscape, Azerbaijan

    The Gobustan Rock Art Cultural Landscape, located in Azerbaijan, contains an extensive array of petroglyphs dating back to the Upper Paleolithic period. These carvings depict scenes of hunting, dancing, and various symbols, providing a rich record of prehistoric life in the region.

  4. Bhimbetka Rock Shelters, India

    The Bhimbetka Rock Shelters in Madhya Pradesh, India, are home to numerous petroglyphs and rock paintings that date back to the Paleolithic era. These shelters, which are a UNESCO World Heritage Site, offer a unique window into the lives of early humans in the Indian subcontinent.

  5. Alta, Norway

    The rock carvings at Alta in Norway are some of the most significant examples of prehistoric petroglyphs in Scandinavia. Dating back to around 4200 BC, these carvings include depictions of humans, animals, boats, and various abstract patterns. The site is protected as a UNESCO World Heritage Site and is considered one of the most important cultural heritage sites in Norway.



Conclusion

Petroglyphs are an invaluable record of human history, providing insights into the lives, beliefs, and practices of ancient cultures. From the intricate carvings in Valcamonica to the spiritual symbols at Petroglyph National Monument, these ancient rock carvings offer a fascinating glimpse into our shared human heritage. Preserving these sites is crucial for future generations to appreciate and understand the rich tapestry of human history and cultural expression.


References

- Valcamonica: UNESCO World Heritage Centre. (n.d.). Retrieved from [UNESCO](https://whc.unesco.org/en/list/94/)

- Petroglyph National Monument: National Park Service. (n.d.). Retrieved from [NPS](https://www.nps.gov/petr/index.htm)

- Gobustan Rock Art Cultural Landscape: UNESCO World Heritage Centre. (n.d.). Retrieved from [UNESCO](https://whc.unesco.org/en/list/1076/)

- Bhimbetka Rock Shelters: Archaeological Survey of India. (n.d.). Retrieved from [ASI](https://asi.nic.in/asi_monu_whs_rockart_bhimbetka.asp)

- Alta Rock Art: Norwegian Directorate for Cultural Heritage. (n.d.). Retrieved from [Riksantikvaren](https://www.riksantikvaren.no/en)

How to generate public URL for a blob or file in Azure Storage Container

Shared access signatures (SAS) offer a secure way to grant temporary access to specific resources within your storage account. SAS provides granular control over how clients interact with your data. This includes:

  • Resource access: You can define which resources (blobs, files, queues, etc.) the client can access.
  • Permission level: You can determine the level of permission granted to the client (read, write, delete, etc.).
  • Validity period: You can set an expiration time for the SAS, ensuring access is only granted for a specific duration.

Below are the step by step guide to generate SAS token or URL in Azure. 

  1. Go to storage browser, select the container or folder and got to the file for that you need a public accessible URL. Click on the options(...) of the file. Below is the screenshot for better clearity.
    Generate SAS or public URL of a file stored in Azure storage

     
  2. Now click on the Generate SAS (shared access signatures). This will open a popup model where we need to configure the SAS to generate the public URL.
    Generate SAS steps in Azure storage


  3. After filling the Generate SAS form, simple click on Generate SAS token and URL. Once a user clcik on this, Blob SAS token or URL will be generated and populate below Generate SAS token and URL button from where you could can and share with your team or external users.
Hope this help you. Thank you!

How scientists study the composition of the Universe?

Scientists study the composition of the Universe using a variety of methods. Let’s explore a few:


Spectroscopy:

  1. Astronomers use spectroscopy to determine the composition of stars, planets, and other celestial objects.
  2. Instruments spread out light from an object into a spectrum based on wavelength.
  3. By analyzing this spectrum, scientists identify the elements present in the object.

Multimessenger Astronomy:

  1. Instead of relying on just one type of messenger (like light), scientists now combine information from different messengers.
  2. These messengers include light, particles, and gravitational waves (ripples in space-time).
  3. By using multiple messengers, astronomers gain deeper insights into cosmic phenomena.

Dark Matter and Dark Energy Research:

  1. Most of the matter in the Universe is invisible (dark matter), and dark energy remains mysterious.
  2. Observatories like NASA’s Chandra X-ray Observatory and the Very Energetic Radiation Imaging Telescope Array System (VERITAS) study dark matter.
  3. The Baryon Oscillation Spectroscopic Survey (BOSS) charts galaxy distribution to understand dark energy.
  4. Upcoming projects like the Dark Energy Spectroscopic Instrument (DESI) and the Large Synoptic Survey Telescope (LSST) will further our knowledge.

BEM methodology in HTML and CSS

The Block, Element, Modifier (BEM) methodology is a popular naming convention for classes in HTML and CSS. Developed by the team at Yandex, its goal is to help developers better understand the relationship between HTML and CSS in a given project. Here’s how it works:

  1. Block: A top-level abstraction of a new component (e.g., a button). It acts as a parent and is represented by a class like .btn.

  2. Element: Child items placed inside the block. They are denoted by two underscores following the block’s name (e.g., .btn__price).

  3. Modifier: Changes the style of the block without affecting unrelated modules. Modifiers are appended with two hyphens (e.g., .btn--orange).

By following BEM, developers can create reusable components, easily see existing modifiers and children, and maintain consistent naming for better communication within the team.

References:

  1. https://css-tricks.com/building-a-scalable-css-architecture-with-bem-and-utility-classes/
  2. https://css-tricks.com/bem-101/
  3. https://en.wikipedia.org/wiki/CSS


10 best destinations to travel in Tamilnadu | Travel India Series

Tamil Nadu, a state located in the southern tip of India, is a land steeped in tradition, culture, and architectural marvels. From ancient temples that whisper stories of bygone eras to serene beaches lapped by turquoise waters, Tamil Nadu offers a captivating experience for every traveler. Here are 10 of the best destinations to visit in Tamil Nadu:

  1. Madurai:  Madurai, a vibrant city and a major pilgrimage center, is famous for the magnificent Meenakshi Amman Temple, a sprawling complex adorned with intricate sculptures and colorful gopurams (gateway towers) . Witness the vibrant celebration of Meenakshi Thirukalyanam, a ten-day festival that reenacts the wedding of Goddess Parvati and Lord Shiva. Explore the bustling markets of Madurai, known for their handloom textiles, spices, and souvenirs.
    Meenakshi temple Madurai
    Meenakshi Temple, Madurai | © journeysinternational.com


  2. Chennai: Chennai, the capital of Tamil Nadu, is a city that blends historical charm with modern vibrancy .  Visit the Fort St. George, a legacy of British colonial rule, or stroll along the Marina Beach, the second longest urban beach in the world. Immerse yourself in the cultural heritage of Chennai by visiting temples like Kapaleeshwarar Temple and San Thome Basilica. Don't miss the opportunity to savor the delicious South Indian cuisine, known for its use of aromatic spices and fresh ingredients.
    Chennai Central Railway Station, Chennai or Madras Tamilnadu
    Chennai Central | © holidify.com



  3. Thanjavur: Thanjavur, once the capital of the Chola dynasty, is an ancient city renowned for its magnificent temples and exquisite bronze sculptures . Explore the Brihadeeswara Temple, a UNESCO World Heritage Site known for its towering vimana (tower) and intricate carvings. Witness the Thanjavur Maratha procession, a vibrant festival that showcases the city's rich cultural heritage. Admire the exquisite craftsmanship of Thanjavur paintings, known for their vivid colors and detailed figures.

  4. Thanjavur, Tamil Nadu

  5. Mahabalipuram: Mahabalipuram, also known as Mamallapuram, is a UNESCO World Heritage Site famous for its captivating Pallava era shore temples and monolithic monuments carved from granite .  Explore the Group of Monuments, a collection of temples, caves, and rathas (chariots) that stand as testaments to the architectural prowess of the Pallavas. Witness the Shore Temple, a captivating structure that seems to rise from the Bay of Bengal. Don't miss the opportunity to witness the mesmerizing sunrise over the ocean.

  6. Mahabalipuram, Tamil Nadu
  7. Kanyakumari: Kanyakumari, also known as Cape Comorin, is the southernmost tip of mainland India where the Arabian Sea, the Bay of Bengal, and the Indian Ocean converge . Witness the spectacular sunrise and sunset over the confluence of the three water bodies. Visit the Vivekananda Rock Memorial, a towering structure dedicated to the Indian philosopher Swami Vivekananda, and the Kanyakumari Bhagavathy Amman Temple, a renowned pilgrimage site.
  8. Kanyakumari, Tamil Nadu

  9. Ooty: Ooty, a hill station nestled in the Nilgiri Hills, is known for its picturesque landscapes, serene lakes, and colonial-era architecture . Take a ride on the Nilgiri Mountain Railway, a UNESCO World Heritage Site, that offers stunning views of the hills. Explore the Ooty Lake, a popular spot for boating and picnicking.  Immerse yourself in the colonial charm of Ooty by visiting historical sites like the Government Museum and the Ooty Club.

  10. Ooty, Tamil Nadu

  11. Kodaikanal: Kodaikanal, another hill station located in the Periyar Hills, is a popular getaway for its cool climate, breathtaking scenery, and natural beauty . Explore the Kodai Lake, a haven for boating and bird watching.  Embark on a trek through the Shola forests or visit scenic waterfalls like Silver Cascade and Bryant Park. Kodaikanal is also a hub for adventure activities like paragliding and mountain biking.

  12. Kodaikanal, Tamil Nadu
  13. Trichy (Tiruchirappalli): Trichy, also known as Tiruchirappalli, is a city steeped in history and religion .  Visit the Rock Fort Temple, a sprawling complex perched on a massive rock, and explore the ancient temples like Srirangam Temple and Jambukeswarar Temple. Witness the vibrant celebration of the Trichy Rockfort Pongal, a harvest festival that marks the beginning of the Tamil New Year.

  14. Trichy (Tiruchirappalli), Tamil Nadu

  15. Kanchipuram: Kanchipuram, also known as the "City of Thousand Temples," is a sacred town famous for its silk sarees and ancient temples . Explore temples like Ekambareswarar Temple, Kanchi Kamakshi Amman


  16. Rameshwaram: Rameshwaram, an island town located off the coast of Tamil Nadu, is a popular pilgrimage destination renowned for its Ramanathaswamy Temple, one of the largest Hindu temples in India . Walk through the long corridors lined with intricately carved pillars, and witness the unique architectural marvel. Visit Dhanushkodi, a ghost town that was destroyed by a cyclone in 1964, offering a glimpse into the past. Rameshwaram also boasts pristine beaches like Pamban Beach, perfect for relaxation and enjoying the scenic beauty.

Tamil Nadu offers a plethora of destinations that cater to diverse interests. From historical and cultural experiences to scenic landscapes and spiritual journeys, this South Indian state has something for everyone.  So, pack your bags and embark on an unforgettable exploration of Tamil Nadu!

Best Medical Facilitator in India | Al Hind Cure

At Al Hind Cure, we understand that seeking medical treatment can be a stressful and overwhelming experience. Especially for international patients, navigating a new healthcare system in a different country can add another layer of complexity.

That's where Al Hind Cure comes in. We are your trusted medical facilitator, here to bridge the gap and make your healthcare journey in India seamless and successful.

Why Choose India for Medical Treatment?

India has emerged as a global leader in medical tourism, offering several advantages:Highly Skilled Doctors: India boasts a vast pool of highly qualified and experienced doctors trained at top universities around the world.
Advanced Medical Facilities: Modern hospitals are equipped with cutting-edge technology and infrastructure, ensuring top-notch medical care.
Cost-Effective Treatments: Compared to Western countries, medical treatments in India are significantly more affordable, making quality healthcare accessible to a broader range of patients.
Focus on Holistic Care: Many Indian healthcare providers integrate traditional wellness practices with modern medicine, offering a more comprehensive approach to healing.

Al Hind Cure: Your Partner in Healthcare

We take the stress out of seeking medical care in India by providing a comprehensive range of services:Hospital Selection: We help you find the right hospital and doctor based on your specific medical needs, ensuring you receive the best possible treatment.
Treatment Coordination: We handle all communication and logistics between you, the hospital, and the doctors, keeping you informed throughout the process.
Visa Assistance: We guide you through the visa application process to ensure a smooth entry into India.
Accommodation and Travel Arrangements: We can assist with finding comfortable accommodations and reliable transportation to make your stay in India convenient.
Language Support: If needed, we provide language interpreters to bridge any communication gaps.

Your Wellbeing is Our Priority

At Al Hind Cure, we are dedicated to providing personalized care and ensuring your comfort and well-being throughout your medical journey in India.

Ready to Take the Next Step?

Contact us today for a free consultation! We'll discuss your medical needs and answer any questions you may have.

Contact Al Hind Cure:

Website: www.alhindcure.com
Email
alhindcure@gmail.com
Phone: +91 971 67 74575 

Together, let's embark on your path to healing.



Which LLM is more powerful for code generation

It is definitively difficult to say which LLM is the most powerful for generating the code as both capabilities and benchmarks are constantly evolving. However, here's a breakdown of some leading competitors to help you choose the right LLM:

1. Codex (OpenAI): This is a powerful LLM specifically designed for code. It can generate different programming languages, translate code, write unit tests, and more. It's closed-access, but limited access might be available through research collaborations.


2. Bard (Google AI): I am a large language model trained on a massive dataset of text and code. While I can't claim to be the absolute best, I can generate different programming languages, translate code, write basic comments and documentation, and follow your instructions to complete specific coding tasks.


3. Code Llama (Meta AI): This is a state-of-the-art LLM focused on code generation. It excels at generating code from natural language descriptions and code comments. It's open-source and readily available for experimentation.


4. Github Copilot (Microsoft/GitHub): This is a code completion tool powered by OpenAI's Codex. It integrates with various IDEs and suggests relevant code snippets as you type, improving development efficiency. While not a standalone LLM, it showcases Codex's capabilities in a practical application.

Choosing the Right LLM:


The best LLM for you depends on your specific needs:
Openness: If open-source availability is a priority, Code Llama might be a good choice.

Task focus: For tasks like code completion and translation, Github Copilot or Codex could be strong options.

Research and experimentation: If you're exploring cutting-edge capabilities, Codex or Bard might be worth investigating (considering access limitations for Codex).

Experiment with multiple LLMs: 

If possible, try out different LLMs for your specific coding tasks. Each LLM may have strengths and weaknesses depending on the context.

Remember, the field of LLM code generation is rapidly evolving. New models and advancements are constantly emerging. Stay updated on the latest developments to find the best tool for your coding needs.

Tourism in Karnataka

Karnataka has been ranked as fourth most popular destination for tourism among states of India. It has the highest number of national protected monuments in India, at 507.

Kannada dynasties like Kadambas, eastern Gangas, ChalukyasRashtrakutasHoysalasVijayanagaras and the Kingdom of Mysore ruled from what is today Karnataka. They built great monuments to Buddhism, Jainism and Hinduism. These monuments are preserved at BadamiAiholePattadakalMahakutaHampiLakshmeshwarSudiHooliMahadeva Temple (Itagi),DambalLakkundiGadagHangalHalasiGalaganathaChaudayyadanapuraBanavasiBelurHalebiduSringeriShravanabelagolaSannatiNanjangudMysoreNandi HillsKolarMudabidri,Gokarna, Bagali, Kuruvatti and many more. Notable Islamic monuments are present at BijapurBidarGulbargaRaichur and other part of the state. Gol Gumbaz at Bijapur, has the second largest pre-modern dome in the world after the Byzantine Hagia SophiaKarnataka has two World heritage sites, at Hampi and Pattadakal. Bellary one of the historical place to see and charist, we can see the forts which were built by the great Tippu Sultan for protection.
Karnataka is famous for its waterfalls. Jog falls of Shimoga District is second highest waterfalls in Asia. This state has 21 wildlife sanctuaries and five National parks and is home to more than 500 species of birds. Karnataka has many beaches at KarwarGokarnaMurdeshwaraSurathkal. Karnataka is a rock climbers paradise. Yana in Uttara Kannada, Fort in Chitradurga, Ramnagara near Bengaluru district, Shivagange in Tumkur district and tekal in Kolar district are a rock climbers heaven. Utsav Rock Garden in Shiggaon, Uttar Kannada.

List of Palaces:

Hill Stations:


List of Wildlife Sanctuaries:

Tourism In Bihar

Bihar is one of the oldest places in the world with history of 3000 years. The rich culture and heritage of Bihar is evident from the innumerable ancient monuments that are dotted all over this state in eastern India. This is the place of AryabhataGreat AshokaChanakya and many other great historical figures.


Attraction Sites:

  • Patna – The capital of Bihar, famous for its rich history and royal architecture
  • Gaya – Known for Bodh Gaya the place at which Gautama Buddha attained enlightenment
  • Muzaffarpur – Famous for its education
  • Kesariya – Location of the world's largest Buddhist Stupa
  • Nalanda – Location of one of the world's oldest university
  • Sasaram – Tomb of Sher Shah Suri, the great Emperor of medieval India
  • Sonepur Cattle Fair – The Sonepur cattle fair or Sonepur Mela, it is the biggest cattle fair of Asia and stretches on from fifteen days to one month
  • Takht Sri Patna Sahib – One of the famous Sikh pilgrimage known for the birthplace of Sikh's Tenth Guru Sri Guru Gobind Singh Sahib
  • Darbhanga – It is among the oldest cities of Bihar. Famous for the Maharaja forts and Kali Mandir.
  • Munger – Home to the only Yoga University in the world, Bihar School of Yoga. Religious places such as Shakti Peethas.
  • Deoghar- One of the famous Hindu pilgrimage known for the Satsang Ashram of Sri Sri Thakur Anukul Chandra situated at Satsang Nagar
  • Vaishali- Lord Mahavir was born on the outskirts of this ancient city.