Browsing All Posts published on »October, 2014«

Java and daylight saving time

October 26, 2014

0

I have written an alarm app for Android, called Fake Dawn. Friday I was talking to my friends, and we mentioned turning back the clock for daylight saving time (DST) on Saturday night, then proceeded to praise our phones that already do that automatically. Wait a minute: does my app work in this case? I […]

Sticky Bits » Vulnerabilities in C : When integers go bad!

October 25, 2014

0

Sticky Bits posted a lesson on C integers that explains the common pitfalls (and some uncommon ones) of arithmetic operations. It contains information that any C developer should know but that is often overlooked, and that might be the cause of many bugs that can result in misbehaviour or security issues. I think it’s written in […]

Using a buzzer with Arduino in pure C

October 15, 2014

2

Since one of my most viewed posts is Programming Arduino Uno in pure C, I wanted to write other posts about common Arduino functionalities implemented in C instead of the default language. This post is part of a series about programming Arduino applications in C, using a Debian computer with avr-gcc compiler. This time I’m using a buzzer […]

Fake Dawn app updated, and thoughts about Android API backward compatibility

October 12, 2014

4

Some time ago I wrote an Android app called Fake Dawn, mainly to learn about the basics of Java development on Android, and also to implement something that I can use everyday: an alarm that wakes you up gently by gradually increasing the volume and the light in a customizable way. I collected the things […]

Eric S. Raymond: Time, Clock, and Calendar Programming In C

October 9, 2014

0

esr (of The Cathedral & the Bazaar fame) has just written a comprehensive guide on the many functions, structures and styles for dealing with time in C, mostly for UNIX, Linux and POSIX operating systems. It’s especially direct in marking obsolete functionalities, stuff that shouldn’t be used, pitfalls and recommendations. I’m sure he struggled with these APIs […]