Feed

Posts

  • Applying design principles to my website - visual hierarchy

    I realized that my website’s article view looks weird. Here’s the screenshot:

    There are a few things that can be improved here but I recently realized how important visual hierarchy is to a design.

    The problem here is, there’s no one element that particularly stands out when the page is viewed. The user will either look at the logo or the title. …

  • Code Snippets #0: Deploy when port exists using recursion

    I’m starting a new category of posts called “Code Snippets” where I share code I find interesting.

    In this first installment is a simple code snippet I originally wrote in Powershell to scan a local port continuously and do something when the port is found:

    1function deploy(): 
    2	if ( port_exists(port) ):
    3		do_something()
    4	else: 
    5		deploy()
    6
    7…
  • Programming tip

    Programming tip: differentiate indexes and counts in code. Index starts at 0, count starts at 1. Count is also equal to array length. In python, one can do this

    1for count, fruit in enumrate(fruits, start=1):

    This has saved me a lot of confusion.

  • Blog redesign complete!

    Just finished the redesign of the blog. It’s missing a lot of features (no dark mode) but I’m really itching to get this out. Here’s a comparison before and after image:

    Before vs After of the blog redesign

  • Reply demo

    replying to blog.bhread.com/how-to-comment

    Hey it works! 🙂

  • Posting to a group

    replying to bhread/tech

    Hello There!

  • I should have used the debugger

    A week ago I was implementing a dynamic logo in a website which would change if the navbar has a dark background and change back if it’s light.

    My approach was to add two <img> tags, overlapping each other and toggling the front element (greater z-index) when the conditions are right.

    Seems good right?

    Well, It worked as expected but after s…

  • My first year of being a professional programmer

    I met my goal. #

    I posted a blog post on August 6, 2021 stating that I want to get a job before april 2022. During that time, I was creating projects for my resume. I was reading up on what people in the industry have to say about landing a job without a degree. The most common advice is to have projects that demonstrate my skills to potenti…

  • mutlithreading bug

    &gt; This is the worst multithrading bug of my life \n &gt; so far The worst of your life threading multibug

  • TIL: `tac` command

    tac is like cat but the output is reversed.

    I used it for finding the most recent error log:

    
    tac err.log | grep -m 1 ERROR

    source

  • I posted a project on HN that got some (~<10) attention
  • Building a New Social Media Platform

    I recently created a /shorts/ page in my blog . This page is intended for shorter content. It’s a place I can use to share memes, tips, and small stories.

    My blog’s shorts page.

    I liked the idea of this. I thought it’s a good way to use the blog as my own twitter of sorts.

    And then I had an idea: If I encourage people to create a /shorts/…

  • search
    None
  • The Philippines can't survive without Facebook

    Note: this is an unorganized, low-effort rant of how I feel about Facebook and how the Philippines’ depends too much on it.

    Public Information Office #

    In the Philippines, updates for most cities will come from the city’s own “Public Information Office” which posts updates on their Facebook page. They do not have their own website. Sometimes…

  • Applying design principles to my website - visual hierarchy

    I realized that my website’s article view looks weird. Here’s the screenshot:

    There are a few things that can be improved here but I recently realized how important visual hierarchy is to a design.

    The problem here is, there’s no one element that particularly stands out when the page is viewed. The user will either look at the logo or the title. …

  • Blog redesign checklist

    I recently posted this: New plans for the blog

    To summarize, I’ll be redesigning this blog.

    In this article, I’ll list the things that I want my blog to have.

    Must haves #

    • User-clickable anchors for each post’s headers (h1,h2,h3,h4,h5,h6)
      • If possible, must highlight if scrolled or by clicking table of contents.
    • Dark mode
    • Table of co…
  • New plans for the blog

    I recently saw Gwern’s blog . The design and content are great. I want my blog to be like this — a page in the internet that has its own personality and feels crafted. Currently, It’s just a dump of my thoughts and it’s using the default Jekyll theme. Though I like the look of it, I want to add more quality of life features to it while keepi…

  • Things I Use

    I’m used to being frugal. Because of that, most of my equipment and tool decisions are focused on being economical. Most of my hardware is second hand. I rarely pay for software.

    The Phone - LG V20 #

    A highly-repairable phone with good camera hardware and software.

    It’s already 2023. LG has left the smartphone market, and this phone was rele…

  • Process

    I’ve been developing applications for around 3 years now. Mostly just for fun, and for my personal use. But now, with a new job, I have to work with a team.

    In this job, I noticed myself making a lot of small mistakes repeatedly: Forgetting to push commits before asking for code review, forgetting to set a variable to False before pushing, or outr…

  • Introducing Shorts

    Every platform has shorts now. It’s new, it’s addicting, and I want it on my blog!

    Introducing Shorts #

    This site is going to get a lot more updates from now on. Social media platforms are unstable right now. It’s time for blogs to rise!

    See https://elpachongco.github.io/shorts

  • Prevent pinky strain caused by typing all day

    Typing all day makes my pinky sore. This is how I got rid of it:

    Superuser.com: How do I hit the “Ctrl” key without straining my pinky?

    I press both ctrl keys with the edge of my palm. It’s perfect; I don’t have to stretch my pinkies, and my fingers don’t have to move away from where they’re supposed to be.

    Only downside is that this technique wo…

  • About this site

    About this site #

    This site contains notes, thoughts, images and code by me (unless specified otherwise. Also, memes are excempted to this rule). The articles I write are mainly for my own reference. From time to time, I aim to reach an audience. It’s also an excuse for me to call myself a writer.

    Design #

    I wanted this website to capt…

  • Thinking of creating /uses

    Found this post on hn . I’m thinking of adding a /uses page on the site…

    I will also include a workspace setup like found on this site . But right now I work on the dining table so… 🤔

    See also this site and this setup by Aaron Schwartz .

  • Code Snippets #1: What the heck is hardhat's console.log?

    I was tasked to create ethereum smart contracts in my previous job.

    the library most recommended by other developers to create smart contracts was hardhat.

    to create and debug the smart contracts, I developed them using test-driven-development methods. The tests gave me a way to print out and inspect variables.

    just as I was done with the develop…

  • Animated favicons

    I was looking at uses.tech website . I wondered how I can have an animated favicon because this is probably the first time I saw one.

    Then I came accross this: an arcade game played in the favicon . How cool is that!

  • About the author

    About the author #

    I’m a software developer based in the Philippines. I like inventing stuff. I like seeing new things come from my work.

    Editor #

    I use Neovim with NVChad as my editor. I don’t need a lot, I only write Python, and some JS and CSS for my day job. In the past, I’ve used VSCode and Emacs. VSCode is nice but I hate that th…

  • Introducing Myself

    Hi. Starting today, I’ll start this blog as a personal log of everything that I want to say. I mainly plan to add my opinions on some topics that interest me (I’ll stay away from rants) and helpful things that I learn and encounter as I go.

    Since I am coming into the computer industry without formal education on the topic, this blog could also be …

  • Tracking my expenses using CSV

    I woke up one day and realized that I need to be more responsible financially. I wanted to start by tracking my expenses.

    Tools #

    I started by sticking to my usual tools, Markor on Android, Synthing and a CSV file expenses.csv.

    I can say it works really well. Entering expenses is quick on mobile, maybe because I’m used to working with CSV. T…