One challenge when building an Electron Tray app is window positioning – assuming you want the app to act as a tooltip (eg: Google Drive app). If you’re here just for the resulting code, scroll down and grab it, otherwise I highly recommend using a pen and paper to draw the screen, taskbar and tray […]
Working on a project involving dealerships and cars, I needed a way to validate car VIN (Vehicle Identification Number) so I came up with a custom Laravel validation rule.
Mass-assignment is when you use an array to create/update eloquent models. The $fillable and $guarded model properties are part of Laravel’s solution to avoid mass-assigning unwanted attributes when someone passes an unexpected HTTP parameter through a request and ends up changing a column in your database you did not expect.
Lately I found myself developing an ElectronJS app. I am building some kind of a bridge between software clients and project management tools like Jira, GitLab, Trello, etc. Here are a few things you should know if you are just starting with ElectronJS:
Tell, Don’t Ask is an object oriented programming principle saying we should just tell objects what to do, without asking them unnecessary questions. Asking is when we’re writing conditionals solely based on one object’s internals. Either we’re checking a property or a method returning a result, if we’re doing it to tell the object to […]
Composer was just something I used to get my project up and running and occasionally install additional libraries. I never put too much thought into it – it just worked. Sometimes I would run into problems, but often they were easily fixed by running composer install or composer dump-autoload. I had no idea what dump-autoload […]
Although I’m a big, big fan of YAGNI (You Ain’t Gonna Need It), lately I find myself discovering and appreciating more and more the value little details can bring to the table. Gainslog has a filterable food list you can use to quickly find and add foods to your day. You just type in the […]
The previous cluttered menu items now have a more room to breathe, and if previously one would have to tap the exact teeny tiny piece of text to navigate around, now you can tap anywhere on the menu item.
Thanks to this great tutorial on how to extend Laravel’s storage to Google Drive, Gainslog now pushes daily updates to Google Drive. Following the tutorial, one issue people run into is a File not found error when running the backup command. You can get around it by setting the backup folder name to an empty […]
Gainslog is a simple calorie tracker I made with only a handful of users. If you ever tracked your macros before, you know reaching your daily protein intake goal is the most difficult to attain from all three macronutrients (proteins, carbs, and fats). Once you hit your proteins target, the other ones come around easy.