Techie Things

A blog with tech recipes and other technical information by jmiguel.

3-Minute Read

Amazon Web Service it’s an incredible tool. And S3 it’s one of the best ways for storing your data and, of course, backups of your data. If you use it for backup, you surely knows the Glacier feature: you can freeze your data getting a lower price… in money. Because the price you pay it’s that your data ain’t available immediatly when you need it, you have to wait to restore it before you can get it.

2-Minute Read

We all know it. Shit happens. Today, I screw a small piece of code ( thank you SonarLint! ;-) (*)). It was just a small optimization, but after checking with a coworker the code we couldn’t find what was going wrong but the reality was that something was broken so I decided to go back in time. The commits (2 commits) was already pushed to our bitbucket and tried several approaches.

2-Minute Read

I have an old java project, with all files enconded as ISO-8859-1 . It was made back in time where most of our development team worked with Windows (fortunately, those times are over ;-)). Now (almost 10 years later -yep that is a really legacy project-) we’re updating it, mostly in the frontend user interface. So, when we started working with it we had a mix of old ISO-8859-1 files and new UTF-8.

1-Minute Read

Sometimes you need to have several actions to be submitted on the same form. Usually you only have one button for this which points to the place you define on the FORM ACTION block. So, how can you detect which button was clicked in plain HTML? You can use the value variable on button, this way: <FORM METHOD="whatever" ACTION="/your/endPoint/"> <button name="btnaction" value="accept" class="..." type="submit">Accept 1</button>" <button name="btnaction" value="dontAccept" class="..." type="submit">Dont Accept</button>" <button name="btnaction" value="maybe" class=".

Recent Posts