Author: jfig

  • Crestuma-Lever Dam

    Crestuma-Lever Dam

    Drone’s eye view of Crestuma-Lever Dam with the flood gates open.

    The Crestuma-Lever Dam on the river Douro creates the reservoir for water supply to the city of Porto.

    You can see the original on Flickr, I also contributed the photo to Wikipedia.

  • DJI Mavic Mini Flight Modes

    Changing the DJI Mavic Mini flight mode to get smoother footage for your videos.

    Shot on a very gray day on the banks of the river Douro this video also gives some insight on the excellent video capture quality that you can get from your Mavic Mini,

  • DJI Mavic Mini Unboxing

    Finally I received my DJI Mavic Mini and decided to do an unboxing video.

    It’s de “Fly More” combo, with three batteries, a charger and really good case, among some other stuff.

  • How to change GIT branch in Microsoft Azure App Service

    How to change GIT branch in Microsoft Azure App Service

    TLDR: in Configuration / Application settings, create a setting named “deployment_branch” with the name of the GIT branch you whant yo use.

    Update: I no longer use Microsoft Azure so information on this post may be outdated.

    So… me, here, writing about a Microsoft product, Azure.

    I have had some projects that have had to be deployed on Microsoft’s Azure App Service and I, obviously, use GIT.

    Azure’s App Service ‘Deployment Center’ has option to integrate with Github and Bitbucket but I don’t use those services, my alternative the Local Git option and push the code from my machine to the App Service.

    I ran into a problem, Kudo, the deployment engine used by the Azure App Service uses ‘master’ has the default branch, this is fine and makes perfect sense for the production server but I want to be able to set staging and testing servers, or slots, without having to merge those tests to the master branch.

    I spent several hours looking for a way to change the branch, read dozens of articles with multiple suggestions, although very frustrating I must say I don’t count the time has completely wasted, I learned a lot about Azure.

    The answer ended up being very simple and I found it literally hidden on the very last line of Kudu’s documentation about Deployment branch.

    On the App or App slot that you want to change the GIT branch go to Configuration and under ‘Application settings’ create a new application setting named “deployment_branch” with the name of the GIT branch you want yo use.

    It’s that simple and elegant, wonder my this isn’t on Azure App Service Documentation.

  • Há sempre uma primeira vez…

    Há sempre uma primeira vez…

    Pois, há sempre uma primeira vez, de muitas coisas nem nos apercebemos que estamos a fazer algo pela primeira vez, de outras apercebemos-mos muito bem, ontem fiz a minha primeira PCB.

    Tive que andar com o X-Acto a cortar contactos que não deviam ter existido, houve uns contactos que por algum motivo não passaram no ficheiro para impressão e estou arrependido de não ter tido mais atenção à colocação dos componentes.

    Sinceramente acho que a vou refazer, porque esta foi só a primeira.

    PCB à Lupa

  • Potenciómetro, Médias e LEDs, [arduino]

    Arduino Smoothing plus LEDs

    Uma pequena experiência com leitura de potenciómetro, smoothing dos valores lidos e  activação de LEDs de acordo com média.

    Baseado no tuturial Smoothing (http://arduino.cc/en/Tutorial/Smoothing) do Arduino com adição dos LEDs.

    (more…)

  • ataques automatizados ao ssh, que passwords

    No ISC diary um artigo interessante sobre as passwords mais tentadas nos ataques automatizados ao SSH.

    O top 10:

    1. 123456 = 167854 (1.09%)
    2. password = 113640 (0.74%)
    3. cacutza = 99492 (0.65%)
    4. __–_-__-_ = 79153 (0.51%)
    5. 123 = 63557 (0.41%)
    6. root = 61560 (0.4%)
    7. 1234 = 58103 (0.38%)
    8. 123456789 = 57270 (0.37%)
    9. 12345 = 53445 (0.35%)
    10. test = 52231 (0.34%)

    Achei particularmente curiosas as #3 e #4.