Category: Blog

  • SPM8 custom PET template creation script

    Download script here. If you want to make your own SPM8 custom PET template to do PET normalization (for example with 18F-FDG)  and are looking for a script that does this with one command, today is your lucky day!  After some googling around and reading through different instructions, I decided to write my own batch script.…

  • Remove spaces from filename in Mac

    This is just a small code to remove spaces from filenames in a Mac bash terminal: for i in *.nii; do mv “$i” “`echo $i | sed -e ‘s, ,,g’`”; done Change *.nii to find other type of files. Put a – or _ between the two commas before the g to substitute the space…

  • Google script: substitute blank cells by “x”

    Today I had a big spreadsheet with quite a few missing values, which I wanted to substitue by “x”. So I decided to write my first google script! I’ts pretty straight forward: in your open spreadsheet, go to Tools > Script Editor and put in the following code: function onOpen() { var sheet = SpreadsheetApp.getActiveSheet(); var…

  • Simple solar panel + cooler setup

            Just wanted to share my first experience with solar power! I have a room which isn’t very well ventilated, so I decided to build in a small cooler. To keep it simple, I decided to connect the cooler directly to the panel. The panel is 5W and can produce 0.28A at…

  • Arduino Yogurt Maker

    These days I was reading an interesting post on how to make yogurt “by the gallon” (http://www.instructables.com/id/Yogurt-By-The-Gallon/). One thing needed was to maintain a rather constant temperature of 43ºC (110°F), so the bacteria can grow properly. Though you can buy commercial yogurt makers, they aren’t big enough for a gallon of yogurt. Besides, it’s cheaper…

  • Datas no Google Docs

    Pra quem já esquentou a cabeça com a formatação automatica de datas para o formato americano (mes-dia-ano) no Google Docs, aqui vai a dica de como resolver o problema: Abrir uma planilha. Clicar em Arquivo > Configurações da planilha. Na janela exibida, alterar o fuso horário e a localidade. Clicar em Salvar configurações. Pronto, agora é só ir em…