Blog
Journal, ideas, learning journey, tutorials, reviews, etc.
Odoo External API Integration Demo with Docker
in Software Development · 12 min read · tagged: Odoo, Docker, addonsA step-by-step demonstration of the instructions provided by Chapter 9 of the Odoo 15 Development Essentials (5th Edition) book, about learning the working of Odoo’s external API by installing a custom Odoo app (also called module or addon) and its client app which utilizes Odoo’s external API to communicate with the custom Odoo app on the server side. The custom Odoo app code is taken from the source code attachment of the book.
Finding a Better Method for Hiding Page Metadata Using Front Matter Variables
in Web Dev · 4 min read · tagged: Hugo, Theme DevelopmentI was trying to solve a problem related to the option of displaying and hiding metadata of a page. This is useful in cases where some data in the metadata is irrelevant to be displayed. The metadata I’m talking about here is the information of a page that is commonly displayed on top of or below the page’s main heading or title such as date and word count. In my case, this metadata is generated by two partial templates in partials/article/metadata.
Choosing Between Cheatsheets and Snippets Sections: They Are Redundant(?)
in Miscellaneous · 2 min readI’ve been thinking about it for quite some time. That the existence of “Cheat sheets” and “Snippets” page type in this blog is redundant. It makes me feel like something is not right. I need to clear this up. So, do I need to pick one, or keep them both? I guess I’ll go for “cheat sheet” if I need to pick one. Here’s my argument. “Snippets” can be included in cheat sheets.
Introducing My Hugo Theme, Elementary
in Web Dev · 1 min read · tagged: Hugo, ThemesElementary is a Hugo theme I created for my blog, this very blog. It is built based on another Hugo theme called smol. The design of some parts of it is inspired by a fork of smol. Note that Elementary is still a work in progress. You can visit its project repository on GitHub.
Hugo Tips: Render shortcode syntax as plain text
in Web Dev · 2 min read · tagged: HugoIn this post I’ll share with you a tip on how to render shortcode syntax as plain text in Hugo and a little bit of background story behind this tip.
Create a Simple Shortcode in Hugo for kbd tag
in Web Dev · 5 min read · tagged: HugoIn this post I explain about creating a simple custom shortcode in Hugo.
But, before starting off, we need to know what shortcodes are and the way they works. So firstly I’m going to walk us through a little bit explanation of that.
CSS and JS trick for sticky or fixed header overlapping targeted element
in Web Dev · 2 min read · tagged: CSS, JavaScript, sticky elementsAssume you have an HTML page with sticky/fixed non-scrolling header on top.
Then how should I solve the issue of the header overlapping a targeted element with an anchor (
#element-id
) i.e. make the browser scroll to the element but still respect the height of the fixed header as not to overlap the element?My First Post
in Miscellaneous · 1 min read · tagged: QuotesAt first, I didn’t know what to type in this very first post. But then I remembered a saying from an ad that I thought was inspiring and relevant to this post and just wanted to share that. So, here it is. “You don’t have to be amazing to start. But you need to start to be amazing.”