Highlights # Got offered half of the price agreement we had for the OSS project but it’s okay since I’ll be paid to learn I’m still having problems with my sleeping schedule. Can’t seem to sleep earlier than 2AM. Got my Tonik Bank debit card Got to learn more Golang stuffs Contemplating on subscribing to GPT-4 or Claude. It’s still $20 and I’m still able to…
Highlights # Celebrated my birthday 🎉 Got a Ukelele Got offered to work on an open source project. But this is still something that isn’t sure coz I’m still not paid, and I can get ditched anytime. Father visited, and we ate at SM food court Bought 2 Beyblades after seeing posts about it on social media. My inner child got excited and bought more of it the next day, and ordered a…
Highlights # Had a meeting with one of the clients at my current job, and it horrendously failed. Well, we were expecting it to fail at some point since it was still in beta, but it failed at the first attempt because of the number of characters. Changed from presenterm to sli.dev for my talk. It didn’t have a code runner, but I just improvised and moved on. Good thing I had a back up ready…
Highlights # Refined my talk around python metaprogramming I didn’t expect it to be this complicated for a topic that you aren’t going to use 99% of the time :/ Got accepted to be a volunteer for PyCon Mini Want to submit a talk about navigating through a python code base but I’m still hesitant as it might not be of “trend”
Highlights # Talk about Metaprogramming got accepted and will be presenting on August 23, 2024 Did my initial preparations for the talk. Somewhat got complicated since I’m not entirely sure how to make it interactive Preparations for a simple talk is not so simple as I thought it would. Started going back into meditation. I considered purchasing the Balance app, but it was expensive, so I…
Highlights # Date night on Sunday. Tried out some new kicks. Watched Deadpool with SO Started using Elevate for brain training Discovered how to open inhalers to add custom essential oils
Distractions #Lately, I’ve been getting distracted more and more. I’ve been comparing myself to others, a lot. I really need to go back into writing, reading, and meditating. I feel that I’d end up wanting to have another week or 2 for a vacation. I attended a community meetup for AWS today, and the topics were interesting since it was related to RAGs and machine learning. Got to…
Realizations #I just realized what I wanted to work on the most. Stuffs like developer tools, cli applications, or probably anything that is close to the developer. I’ve been a user of those tools, and made some tools myself such as gitpad. Though that one was just specific for neovim. I probably still want to do some web development work but I guess what I want to work on longer is…
Void #Can’t remember what happened during this week. Putting things off kinda sucks. Based on last week’s log, I’m just finishing things off from my talk about meta programming in python. I just named this Void, using the reference in One Piece where there were 100 years of history missing. If my memory serves me right, this was also the week in which we were supposed to have a…
Slowing Down #It’s now coming to a point where I don’t know what I want to do with my life. I want to keep on writing my thoughts, or at least what has happened during the week, but I’m slowly losing interest. This week, I extended my leave up to Wednesday just because I didn’t feel like working on Monday and Tuesday. I was kinda finishing a presentation for my talk related…
Graduation #Had a lot of events that happened this week. My father just graduated from his PhD in Political Administration and my younger sister graduated in Bachelor of Science in Pharmacy. Parents came to visit last Tuesday, and we went out to eat at a buffet. I had an annoying errand to look for a buffet, and we ended up eating somewhere that was readily available. The food was just so-so, and…
DurianPy II #I just attended the second event for DurianPy. Actually, it was on a whim that I decided to attend just because I had nothing important to do. The event went well, and I got to connect to new devs. Oh, I forgot to mention that I was told that I’d be speaking for the next meet up. That got me quite excited but anxious at the same time since I don’t even know if people would…
Unfinished #I had been shutdown for around 3-4 days since I had a fatigue. I guess that’s the result of sleeping 2:00 in the morning for consecutive weeks. I’ve been procrastinating on my work lately. I just watched another video where it says that you aren’t lazy, things are just boring. And that’s probably right. Things have been getting quite boring lately to the point…
Motivation #I had been watching Haikyuu for the past week as I just wanted a some sort of refresher before watching The Dumpster Battle. There were a lot of quotable quotes in the anime. Little by little, what you’ve begun will naturally become important to you. What you need at the start is a little bit of curiosity. Kiyoko Shimizu A lot of us could relate to this. You can’t say that…
Backup #I’ve been contemplating on getting another laptop as my backup in case something goes wrong again with my current Macbook. Facebook Marketplace has a lot of cheap laptops so it was just a matter of what model and specs to choose. I ended up buying a Lenovo ThinkPad T480 which was the most recommended laptop in /r/thinkpad, but with the i5 8th Gen 16GB variant. It came with a windows…
Utterless #I had a message from a recruiter saying that their client was looking for a Senior Python Engineer. I promptly submitted my updated CV since nothing could go wrong if I applied. It was my first interview in the last 2 years, so I admit that there probably hasn’t been any improvements in my interviewing skills. I thought I had prepared, but I guess it wasn’t enough. I was…
Autobots #AI has been a thing for quite a while since the release of OpenAI. Almost every product nowadays uses it in someway, and if you are not, then you’re probably gonna get left behind. I was recently assigned a task which I think is quite complicated (at least for me) of implementing a design where we generate a workflow compatible with the current product we’re building to make…
DurianPy #It has been almost 6-7 years since I heard of this local community of Python/Django enthusiasts. Unfortunately, it has been inactive when I started working. It was a good thing that someone stepped up and became the community lead since there isn’t much activity with Python in my area. I was able to attend, learned a few things about Python, and connected with seasoned and new…
Server Crash #I just experienced one of the worst things that could happen during a development process – the API client I was using 1 just went down. You can’t use it 2. Before that, you could use the app even when you were offline. But late September of 2023, they announced that they would require users to login in order to use the app. I did like it especially the cloud sync…
Brain Fog #I feel like I have not been performing at my best in the past 6 months~ or so. It might have to do with the habits I’ve built when I stopped meditating. I recently saw a post that in order to combat brain fog, you can try using your non-dominant hand for simple tasks such as brushing your teeth, writing with a pen, or using it with a mouse.
Golang #I have been deferring learning Golang for quite a few months now, or probably even year until I saw YouTube videos of AnthonyGG that got me interested in learning it again. Probably what piqued my interest in Golang was that I had a task at work that relied on websockets and I had an implementation of it using Python/Django. I tried implementing our current implementation in Django into…
Rule of three # When you don’t know what you want to do, write. Just one of the things I saw on social media this week that makes me realize why I’m doing this. It’s to provide me direction into the life I’ve always wanted. And for that to happen, I need to write down my thoughts in order to understand myself better. Also, I didn’t realize that I’m kind of…
I’m not in the mood of writing today since I’m going through some sort of phase in my life. Nonetheless, I’ve tried to force my self to start getting into writing just so I won’t lose my streak. I think I’d also need some kind of scratch pad or idea pad where in I could put random topics that come out during the week so I could have some idea on what to write on my…
I couldn’t think of a good title1 and I don’t even know whether I should continue creating one but I guess it’s quite fun and gives me a little bit of a summary of what I did that week2. Wheels #Before I ended my week, I was able to migrate one of my projects from heroku to render. It only needed a few line changes and I was up and running.
It’s been a while since I last posted in my webspace. A lot has happened over the past 2-3 years, I guess. Especially during covid where I felt like I lost 2 years of my life being locked inside the house I was renting in. I even remember we had to obtain permits just to go outside and we were only allowed on specific schedules (Monday, Wednesday, Saturday), and had to use face mask and face…
TL;DR #Run both with one command in development. Not recommended for production DJANGO_SETTINGS_MODULE=project.settings celery -A arkis worker -l info --beat
TL;DR #left column is my changes middle is current right is the upstream changes Use dg2 to apply changes from the left Use dg3 to apply changes from the right
TL;DR #When your python code encounters an await keyword, it just means that it’s going to send the control back to the event loop to let other functions execute. await lets the CPU know that a coroutine is waiting for an operation that isn’t CPU bound e.g. network requests, database writes, etc. coroutines always executes sequentially and the event loop is what manages the execution…
TL;DR #Because I’m using tmux, shell gets ran every time. config.fish is loaded first asdf-direnv loads the .envrc .envrc contains use asdf and then executes it $PATH is updated because of use asdf The problem is that if I activate a python virtualenv, it gets added to the $PATH # virtualfish auto_activation enabled virtualenv/path/to/python asdf/direnv/loaded/bins/golang…
I thought poetry would disrupt my workflow because it will automatically create its own virtualenv and I wouldn’t be able to leverage virtualfish auto_activate feature. It turns out that if the virtualenv is already activated, poetry will not attempt to create a new virtualenv and will instead install it to the currently activated virtualenv
I think it’s overall better than my previous post for managing multiple git users since we are just creating a new .gitconfig file It turns out, I need to add ssh -i identity_file_ed5 -F /dev/null so it won’t load the default ~/.ssh/config file
Introduction #When was the last time you took quite some time when choosing your vim keybindings? Be it for a plugin or your own custom functions I’m gonna talk about the choices I made and what made my keybindings the way it is. Getting Started with Vim #When I started out completely moving to (neo)vim from VSCode, I started out copying a bunch of configs, especially from leeren. His talk…
It’s been a while since I last posted and one of the reasons was that I was using GatsbyJS and modified the gatsby-starter-lumen files and it caused me a lot of problems where it came to a point that my site was not building anymore. I’m probably just inexperienced and might’ve done something wrong with the template I like how hugo has this concept of overriding templates by just…
It’s really worth investing time configuring your project and make it easy for other developers to contribute. One way of enabling this is a clean, organized, and well-formatted code. This is really helpful especially for first time developers or contributors as it makes pull request reviews less painful (e.g. trailing white space, unorganized imports, debug statements) We can easily prevent…
Like you before, I pretty much didn’t give a damn about remmaping my mapping keyboard because I was worried about what if I’m using someone elses keyboard? I’d be too dependent about my current setup. But let me ask you. When was the last time you used someone elses keyboard? After some time living inside the terminal, I noticed that it’s quite hard to press the control key…
I had a problem where I couldn’t register to google cloud and use the google cloud storage service. Tried searching online and found this repository: https://github.com/fsouza/fake-gcs-server It has great documentation and you can also run it if you have docker installed: $ docker run -d --name fake-gcs-server -p 4443:4443 fsouza/fake-gcs-server I had a task to upload files to google cloud…
I was working on a multi-tenant project and encountered a bug when using Django’s GenericForeignKey with django-tenants. It was using the public schema’s contenttype_id instead of the tenant schema’s contenttype_id. So, if I have a model of Comment, my django_content_type table would have something like public.django_content_type id app_label model 15 comments comment…
So, I was trying to reproduce some issues and bugs that only happened in production. I needed an exact copy of the production database and run it locally. Here’s how I did it using pg_dump and pg_restore. $ pg_dump -U postgres -Fc -Z 9 -j 8 production.dump -d postgres Here’s the breakdown for the arguments: U means username. It’s used to connect to your postgres database. In this…
There was a pull request on GitHub and it contains a feature I wanted to test. I didn’t know how to test it locally. Should I just copy the changes to my local since the changes weren’t that big? But what if it was? Luckily, I found some answers by googling and decided to write it up for future reference. Git provides a command for it and here is the sample syntax
I mostly work on django projects and as a dev who likes shortcuts, I wanted to have an alias of pm for python manage.py. I could’ve just added alias pm='python manage.py' inside of my config but I was working on different projects where manage.py was located in different folders. Typical projects have it located under root while some projects have it under src/manage.py. What I needed was a…
So, there was a time when I was only developing applications using Python. And so I found out about virtual environments. And then after a couple of months, I discovered pyenv. It also came to a time I had to work on multiple projects that uses different versions of nodejs and searched something similar so I installed nvm. Then, I was required to work on a Ruby project so I installed rbenv.
Often, I forget how to display the raw SQL of a queryset in Django. This is a quick and easy example of how to do it from django.contrib.auth.models import User qs = User.objects.all() print(qs.query) SELECT 'auth_user'.'id', 'auth_user'.'password', 'auth_user'.'last_login', 'auth_user'.'is_superuser', 'auth_user'.'username', 'auth_user'.'first_name', 'auth_user'.'last_name', 'auth_user'.'email',…
Suppose that you have a full time job at Amazon, and you want to separate your git commit emails from Amazon and your personal projects. Setting up ~/.gitconfig $ touch ~/.gitconfig For our personal projects, we will use the ~/.gitconfig file with the following content: [user] name = James Banned email = james.banned@gmail.com [includeIf 'gitdir:~/Work/'] path = ~/.gitconfig.work The includeIf…
I love to write clean and readable code. When developing software, I go by the quote: Make it work, make it right, make it fast. – Kent Beck I’m currently developing web applications with Python and Django. I am mostly working on the backend so I heavily use Django REST Framework, though I’ve also used FastAPI and Flask. I haven’t been a fan of modern frontend but I do know…