We had a tricky problem. We knew that the columns for one particular model would need to change over time. That was easily solved with a JSON field, but we also wanted to support validations on this field – validations that are assigned to the model at the time of creation. Example: Yesterday we created a valid Vehicle record with only a name. Today, we add a new brand field. All new Vehicles must have it. If we now reopen yesterday’s record we still want it to be valid.
Continue reading “JSON dynamic attributes with Rails”
Around 2014 I was working on a project using a Windows notebook, running a Debian VM that shared a directory so I could manage files via Sublime Text. Since the project was versioned with GIT, the files I created were always with a wrong set of permissions, e the files I changed, ended up with their permissions messed up.
Continue reading “File permissions on GIT”
Sometimes we need to ignore one or more files, for an undetermined amount of time, which usually is a short period. That because we don’t want to upload changes that shouldn’t be on the repository… Is there a way to ignore files temporarily?
Continue reading “Ignoring temporarily with GIT”
Once upon a time, I needed to use Laravel in a Windows machine that was running WAMP (http://www.wampserver.com/en). After figuring out how it is the structure of WAMP and where the configuration files are, I was able to run my Laravel project, in a subfolder.
Continue reading “Laravel in a subfolder with WAMP”
Last week, I needed to prepare some slides, and I wanted to use the notebook for that. I have Windows 10 installed, and after it turned on, I had a big surprise. I clicked on Start Menu and nothing was happening… I clicked on the search magnifier, and nothing happened as well.
Continue reading “Start Menu not opening on Windows 10”