A collection of tech essays and notes.

notes

Export your Kindle book highlights

24 January 2024

If you want to export your Kindle book highlights without the page location and color information, you can follow these steps:

  • Export the content in any format you prefer.
  • Paste the content in Visual Studio Code or any other text editor that supports regular expressions.
  • Use the regular expression Highlight \(yellow\) - Location [0-9]+ in the Find and Replace tool to replace Highlight (yellow) - Location 01.
  • Replace all the matches with an empty string.

This will remove the unwanted details from your highlights and leave only the text you want to keep.

essay

Default Apps 2023

21 January 2024
Read the Defaults app of Chris Coyier and found interesting.
notes

Name attribute in input tag

15 January 2024

The name attribute specifies the name of an <input> element. It is used to reference elements in a JavaScript, or to reference form data after a form is submitted to the server.

Only form elements with a name attribute will have their values passed when submitting a form.

<form action="http://localhost" method="POST">
    <label for="User">User name</label>
    <input type="text" id="User" name="Name" value="bino" />
    <input type="submit" value="submit" />
</form

When you submit the above, server localhost will recive a content like below:

Name=bino
References

w3schools

essay

Set up a feed/ archive page in Hugo to display all posts

7 January 2024
This website contains various types of blogs, both technical and non-technical, that can be accessed through the variuos links. I wanted to have a single page...
notes

Firebase rules update

5 January 2024

To read and write without authenticaton in firebase, you need to updated the rules in the database as below.

{
  "rules": {
    ".read": true,
    ".write": true
  }
}

Please note that this allow anyone to fetch and write the data to the database.

essay

Beginners notes about TypeScript: Part 2

4 December 2023
This is the second note in the TypeScript series. In this post, we will explore the fundamentals of TypeScript.
essay

Beginners notes about TypeScript: Part 1

2 December 2023
Programming languages can generally be categorized into two types: dynamically typed and statically typed...
essay

Codbix No.7

30 November 2023
Welcome to Issue #7 of The Codbix! This week: Habits of great software engineers, Decision Making at Netflix and How to get your brain to focus.
essay

Codbix No.6

31 October 2023
Welcome to Issue #6 of The Codbix! This week: Use code visibility to illuminate unfamiliar code, Laravel community and How to Get Your Brain to Focus.