Skip to main content
  1. Reflections & Insights/

LLMs and an old dev

·1 min

A lot of developers seem to be afraid of generative AI and LLMs because it may replace their jobs.

But as an older developer who sometimes has a hard time keeping up with new frameworks and technologies, LLMs have been life-saving. Not only is my productivity high, but I am also able to keep up with new languages and codebases and be productive almost immediately. I used to think about moving to management because it seemed I could not keep up with tech, but now I have new confidence that I can keep doing my hobby as a profession for another few years.

Maybe eventually AI will replace my job, but learning to use it effectively may extend my career a bit longer.

Related

Backup VPS

·1 min
Here are simple steps to backup your VPS. Backup MySQL database # Create a directory to store the backup files. Then run mysqldump command to backup your database. mysqldump -u your_mysql_user -pyour_mysql_password your_database_name > /path/to/dump_$(date +\%Y\%m\%d\%H\%M\%S).sql Or you run it as superuser and backup all databases at once. sudo mysqldump --all-databases > /path/to/dump_$(date +\%Y\%m\%d\%H\%M\%S).sql To automate this, schedule a cron job that will run this command on a daily basis.

A quick script to build and deploy hugo site on VPS

·2 mins
I had been using GitHub and Netlify for this site but lack of some features such as access to server logs finally got too much. So I decided to move this blog to my VPS. One thing I really love about using Github is CI/CD and Github Actions. But I wanted something even simpler with less dependencies. So I decided to use a simple bash script to build and deploy the site.

undefined method xxxxx' for #< Hash:0x00000 >

·1 min
This error in our Rails application drove me crazy. The error was like this: undefined method xxxxxx' for #<Hash:0x000000001234> The problem was that I was calling a method like this: a_method(var: var) And the method definition was like def a_method(var: var) which resulted in something called variable shadowing and caused clash between variable passed in the method and local variable being defined. The fix was to change method definition to def a_method(var:)