Seems that the Texas SNB9024 is the man when we need an RTC. I will try to reach it using the Quark.
3.5 Power management IC (PMIC)

4.13 V_VBAT_BKUP have some instructions about the register to configure the VBAT charging.


Today (23/02/16) I'm giving up from using Intel Edison's MCU for the prototype. I will start using Arduino to make the sensors work. When it get ready, I will see if Intel will have publicated more documentation ou if I need to abandon the internal MCU.

I posted a question on Edison's Forums but until now, nothing helped me.

Ubuntu users can install the latest stable version of InfluxDB using the apt-get package manager. For Ubuntu users, you can add the InfluxData repository configuration by using the following commands:

curl -sL | sudo apt-key add -
source /etc/lsb-release
echo "deb [ arch=amd64 ]${DISTRIB_ID,,} ${DISTRIB_CODENAME}  stable" | sudo tee /etc/apt/sources.list.d/influxdb.list

And then to install and start the InfluxDB service:

sudo apt-get update && sudo apt-get install influxdb
sudo service influxdb start

I just add [ arch=amd64 ] to the original command, to make it work. Without it, the apt-get will search for i386 packages too and then give an error. 


Installing Golang

First we need a C compiler:

apt-get update
apt-get install build-essential git

Now we need to add Go PATH to ~/.bashrc.

nano ~/.bashrc

Copy and paste this on the bottom of the ~/.bashrc file:

export GOPATH=$HOME/go
export GOBIN=$GOPATH/bin

Press Control + X to exit from Nano, it will ask you to press Y and then ENTER. Now the file is saved.

Let's reload the ~/.bashrc:

source ~/.bashrc

With those settings, the Go repositories will be downloaded in $HOME/go/src
And Go builds will be installed in $HOME/go/bin

Now, let's download, compile and install Go:

cd /tmp/
tar -xvf go1.4.2.src.tar.gz
cd go/src
./all.bash #install Golang
hash -r    #refresh PATH

Compiling latest InfluxDB

go get
cd $GOPATH/src/
go get ./...
go install ./...

Starting InfluxDB

InfluxDB binaries will be located in $HOME/go/bin/influxd and $HOME/go/bin/influx
As it is already in your PATH you can start InfluxDB with influxd command

root@IoT:~# influxd

 8888888           .d888 888                   8888888b.  888888b.
   888            d88P"  888                   888  "Y88b 888  "88b
   888            888    888                   888    888 888  .88P
   888   88888b.  888888 888 888  888 888  888 888    888 8888888K.
   888   888 "88b 888    888 888  888  Y8bd8P' 888    888 888  "Y88b
   888   888  888 888    888 888  888   X88K   888    888 888    888
   888   888  888 888    888 Y88b 888 .d8""8b. 888  .d88P 888   d88P
 8888888 888  888 888    888  "Y88888 888  888 8888888P"  8888888P"

2016/01/08 17:07:31 InfluxDB starting, version 0.9, branch unknown, commit unknown, built unknown
2016/01/08 17:07:31 Go version go1.4.2, GOMAXPROCS set to 1
2016/01/08 17:07:31 no configuration provided, using default settings
[metastore] 2016/01/08 17:07:31 Using data dir: /root/.influxdb/meta
[metastore] 2016/01/08 17:07:31 Skipping cluster join: already member of cluster: nodeId=1 raftEnabled=true peers=[localhost:8088]

Now open the web admin at http://influxdb-ip:8083


Open the .bashrc file:

nano ~/.bashrc

Add the below lines to the opened .bashrc file and then save it.

imgur() {
    for i in "$@"; do
        curl -# -F "image"=@"$i" -F "key"="4907fcd89e761c6b07eeb8292d5a9b2a"|\
        grep -Eo '<[a-z_]+>http[^<]+'|sed 's/^<.\|_./\U&/g;s/_/ /;s/<\(.*\)>/\x1B[0;34m\1:\x1B[0m /'

Source the .bashrc file,so that the changes can take effect,

source ~/.bashrc

The above script requires curl package to work.So install it by running

sudo apt-get install curl

Then run the below command to upload the image stored in the ~/Pictures folder to,

imgur ~/Pictures/filename.png

Get the link of uploaded image





One of my “Dream Projects” is to create an update for Need for Speed Underground 2.

NFSU2 was the unique car game that I finished, and the one that I really liked to play until the end, and more. Free roaming on the city streets was very exciting. I played hours just running without objective, drifting on the corners, crashing around.

Then, one day I hope to build a game like that. Here I will tell what I think that makes the game so good to me.

The physics

To me, the physics from NFSU2 is the ideal, not real, an ARCADE physics. The cars dont get destroyed, this is good to keep you on the racing. And, sometimes when drifting goes wrong, you would get totally destroyed with that crashes.

Then, I could say that I would mantain the same physics. The way the car slides on curves was to beautyfull that I dont mind changing that.

The controls

The controls are very good too. I like the way the handling works and wouldnt mess with this.

The Nitro bonus

The way you get Nitro back, from stunts and powersliding is perfect. It inst real, but it’s an arcade game, then you need gameplay helpers. Adding boost when you drift is very clever to the gameplay, the “avoided accident” bonus too. I would increase the ways you can earn more Nitro, but now I cant figure how.

The customizing

This is absolutelly the best part of the game, customizing your car, changing colors, adding bumpers, vinyls. This is what makes NFSU2 too popular, besiding with free roam, this is the key for the success of the game.
The customizing controls are perfect too, you can use your keyboard, gamepad or mouse and get a very good usability. I just would add some thumbnails to the items.

China Rising

China Rising


Se você esta tendo problemas com a instalação do DLC China Rising do Battlefield 4 como eu estava, eis aqui a solução definitiva.

O problema geralmente acontece quando a instalação não é feita por completa, ou então quando se copiam os arquivos de outro lugar invés de baixar eles todos de uma vez pelo Origin.

Pelo que entendi, o registro do Windows não é modificado, e assim, o Battlelog acaba não identificando a instalação dentro do computador.

Abrir o regedit e entrar na chave: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\EA Games\Battlefield 4 

– Criar a chave “Xpack1” (dentro de Battlefield 4)
– Criar o valor da cadeia de caracteres “Installed” e colocar o valor como “true”.

Registro China Rising




Feito isto, basta reiniciar o Origin, fechar e abrir novamente o Battlelog e o China Rising deverá voltar a funcionar.

Outra solução, é ativar diretamente o arquivo de registro que estou disponibilizando para download:
China Rising Fix

Ele esta compactado porque não consigo anexar arquivos *.reg diretamente aqui.
Se quiser verificar antes de executar ele, clique com o direito em cima do arquivo descompactado, e clique em editar. O conteudo deve ser semelhante a isto:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\EA Games\Battlefield 4\Xpack1]

Para instalar o Fix do registro, basta clicar duas vezes em cima do arquivo “China Rising Fix.reg”. O Windows vai perguntar se você realmente quer adicionar estes dados ao registro. Clique em sim. Feito isto, reinicie o Origin e Battlelog que deverá voltar a funcionar o China Rising.