devxlogo

Tip Bank

Using Tree(Map,Set) in Collections

Here’s the problem: You can’t put objects that don’t implement the Comparable interface inside a Tree(Map/Set); if you do, your code won’t even compile. The underlying cause is simple; TreeMap

Portable Functions to Check for NaN and Infinity

Currently, there are no portable C/C++ functions to check for NaN (not a number) and infinity (positive or negative). Unix provides isnan() and isinf(), while Microsoft’s implementation uses _isnan() and

Enable Bugzilla to Work with SSL/TLS Email

As of version 3.3.4, the mail system in Bugzilla doesn’t work with SSL/TLS-based SMTP mail servers. The following procedure helps you set up a working Bugzilla configuration that can use