tip of the week

Tip of the Week: 7/6/2017

Remove deleted files I ran into a problem with disk space on my virtual machine this week: root@my-server:~# df -h Filesystem Size Used Avail Use% Mounted on udev 988M 12K 988M 1% /dev tmpfs 200M 284K 200M 1% /run /dev/xvda1 79G 78G 0 100% / none 4.0K 0 4.0K 0% Great!  I need to clear… Continue reading Tip of the Week: 7/6/2017

tip of the week

Tips of the week 7/5/2017

Tip 1: Continuous testing Various programming languages already have modules that allow for continuous testing; however, none of them are too complex. All they do is watch the directory and execute tests when any change occurs in the directory.  Instead of learning about every tool in your programming language of choice, you can utilize inotifywait to… Continue reading Tips of the week 7/5/2017

tip of the week

Tips of the Week: 6/4/2017

Double and float compares When I was doing some Java work this week, I had to compare two doubles a la this: if (firstPoint.slopeTo(secondPoint) == currentSlope) doSomeWork(); else { ... Everything ran great; however, when I ran this code through Findbugz, I got the following warning: L D FE_FLOATING_POINT_EQUALITY FE: Tests for exact floating-point equality. Because floating-point… Continue reading Tips of the Week: 6/4/2017