Monday, August 22, 2016

Wednesday, June 29, 2016

The Enigma Machine

Yesterday, June 28, 2016 I finally understood the Enigma Machine!


Thursday, June 16, 2016

Web scraping with Java


https://www.amazon.com/Instant-Scraping-Java-Ryan-Mitchell-ebook/dp/B00ESX1AS6

Another one from the same author, Ryan Mitchell. This time the language is Java.

Web scraping and BeautifulSoup


https://www.amazon.com/Web-Scraping-Python-Collecting-Modern/dp/1491910291/

Reading about web scraping and BeautifulSoup these days.

Friday, May 13, 2016

Always test, test, test ...

Thiokol and Marshall evaluated the SRM and its case joints in structural, pressure, and static firing tests beginning in 1976. Because tests of the large solid rocket were more expensive than liquid engines, engineers ran fewer tests.
 Taken from The Challenger Accident http://history.msfc.nasa.gov/book/chptnine.pdf

Wednesday, March 2, 2016

Implementing equals in Java

public class Employee {
   protected long employeeId;
   protected String firstName;
   protected String lastName;
}


public boolean equals(Object o) {

   boolean result = false;
 
   if (o instanceof Employee) {

      Employee other = (Employee) o;

      if (this.employeeId == other.employeeId
         && this.firstName.equals(other.firstName)
         && this.lastName.equals(other.lastName))
      {
         result = true;
      }
   }
 
   return result;
}

The following program should print All good!:

package test;


/**
 *
 * @author janeiros@j4neiros.us
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        Equals e = new Equals(3, "jjjj", "eee");
        if (e.equals(null)) {
            System.out.println("Not good!");
        } else {
            System.out.println("All good!");
        }
    }
    
}
 

Wednesday, January 6, 2016

2016 Federal Holidays

2016 Holiday Schedule
DateHoliday
Friday, January 1New Year’s Day
Monday, January 18Birthday of Martin Luther King, Jr.
Monday, February 15*Washington’s Birthday
Monday, May 30Memorial Day
Monday, July 4Independence Day
Monday, September 5Labor Day
Monday, October 10Columbus Day
Friday, November 11Veterans Day
Thursday, November 24Thanksgiving Day
Monday, December 26**Christmas Day
*This holiday is designated as "Washington’s Birthday" in section 6103(a) of title 5 of the United States Code, which is the law that specifies holidays for Federal employees. Though other institutions such as state and local governments and private businesses may use other names, it is our policy to always refer to holidays by the names designated in the law.
** December 25, 2016 (the legal public holiday for Christmas Day), falls on a Sunday. For most Federal employees, Monday, December 26, will be treated as a holiday for pay and leave purposes. (See section 3(a) of Executive order 11582, February 11, 1971.)