Wednesday, October 16, 2013

Tips for FitBit


Picked up from http://www.sparkpeople.com/mypage_public_journal_individual.asp?blog_id=2471667

Reset your FitBit:

Dock it, turn the dock over, and hit the button underneath with a pen or paperclip. The FitBit will reboot, displaying the current firmware version and the battery level, then will continue charging. This will not delete any of the tracker data.

Completely erase all information on your FitBit:

1. Put the fitbit on the base station
2. Look under base station and you'll see a tiny hole. That's the reset button that you can push with a small pen or paperclip.
3. Press and hold the button on the Fitbit itself and press the reset button
4. Keep the button on the Fitbit pressed for 6 seconds.
5. Take the Fitbit off the base station
6. Press the button on the Fitbit
7. It should say "Testing" and then "Pass"
8. Press and hold the button until it says "Erase"

Power Off Your FitBit:


Unplug the dock. Dock the FitBit on the unplugged dock, then press the reset button on the bottom.

Friday, August 30, 2013

Tip: Mac OSX: Start IntelliJ with sudo permissions

There may be instances where the code you are developing is binding to a particular port that is lower than 1024. So you will not be able to bind to that port.

You will see something like a SocketException : permission denied.

If you are sure that this is temporary and you are developing on your Apple laptop, then do the following in a terminal window:

$>cd IntelliJ\ IDEA\ 12\ CE.app/Contents/MacOS/
$> sudo ./idea

Now IntelliJ is running with sudo permissions.

WARNING: This is a sensitive operation. Do not try it on Apple based servers or production environments.

Netty: UDP based Server Example

An example is the Quote of the Moment Server.

Package is:
https://github.com/netty/netty/blob/master/example/src/main/java/io/netty/example/qotm/

Server is:
https://github.com/netty/netty/blob/master/example/src/main/java/io/netty/example/qotm/QuoteOfTheMomentServer.java

Server Handler is:
https://github.com/netty/netty/blob/master/example/src/main/java/io/netty/example/qotm/QuoteOfTheMomentServerHandler.java