Skip to content

Commit

Permalink
Merge pull request #6 from iamthechad/3-cleanup
Browse files Browse the repository at this point in the history
Updates to work with new theme
  • Loading branch information
iamthechad committed Aug 11, 2019
2 parents 6517db7 + c5c24c3 commit 475dfeb
Show file tree
Hide file tree
Showing 36 changed files with 194 additions and 90 deletions.
1 change: 0 additions & 1 deletion _includes/youtubePlayer.html

This file was deleted.

3 changes: 3 additions & 0 deletions _posts/2004-02-17-why-i-hate-working-in-cubicles.md
@@ -1,6 +1,9 @@
---
title: Why I Hate Working in Cubicles
tags: work health
categories: Health
excerpt: Computer Vision Syndrome and fluorescent lighting are a bad combination.
classes: wide
---

For some time now I’ve suffered from [Computer Vision Syndrome](http://www.mdsupport.org/library/cvs.html) (CVS). Most computer users have CVS to some degree or another — it’s pretty common. I also seem to have a susceptibility to flicker vertigo as well. Strangely enough, I’ve been unable to find very much material that talks about flicker vertigo in terms of computer use in an office environment. The only things I can find are advisories for pilots who fly propeller driven aircraft and helicopters.
Expand Down
5 changes: 4 additions & 1 deletion _posts/2004-06-25-frame2.md
@@ -1,6 +1,9 @@
---
title: Frame2
tags: development
tags: development java
categories: Frame2
excerpt: Introducing Frame2
classes: wide
---

_This post was originally part of a series documenting an open source web framework I worked on. The framework is well and dead, but I’m keeping these posts for posterity._
Expand Down
3 changes: 3 additions & 0 deletions _posts/2006-09-14-burnedout.md
@@ -1,6 +1,9 @@
---
title: Burned Out
tags: work health
categories: Health
excerpt: Burned out
classes: wide
---

I picked up the June/July 2006 issue of [Scientific American Mind](http://www.sciammind.com/) solely for the article on the [Science of Burnout](https://www.scientificamerican.com/magazine/mind/2006/06-01/). I was feeling particularly frustrated with work at the time and it was nice to read an article telling me that things I had been feeling were not out of the ordinary.
Expand Down
3 changes: 3 additions & 0 deletions _posts/2006-12-18-flicker-vertigo-revisited.md
@@ -1,6 +1,9 @@
---
title: Flicker Vertigo Revisited
tags: work health
categories: Health
excerpt: Flicker vertigo and aspartame
classes: wide
---

Back in 2004 I wrote a piece about working in a cubicle ([Why I Hate Working in Cubicles]({{ site.baseurl }}{% post_url 2004-02-17-why-i-hate-working-in-cubicles %})). The main thrust of my entry was not so much that cubicles themselves are bad, but the overhead lighting was killing me.
Expand Down
3 changes: 3 additions & 0 deletions _posts/2007-04-29-made-jam-jar-pulse-jet.md
@@ -1,6 +1,9 @@
---
title: 'Made: Jam Jar Pulse Jet'
tags: making
categories: Making
excerpt: I made a jam jar pulse jet.
classes: wide
---

I’ve been receiving [Make](http://www.makezine.com) magazine since its first issue, so I decided it was about time I actually make something. I picked the Jam Jar Pulse Jet from issue 05 ([more info here](http://makezine.com/05/jamjarjet/)). This project was really easy — the hardest part was finding the canning jars in Wal-Mart. Here’s the finished product:
Expand Down
7 changes: 4 additions & 3 deletions _posts/2007-05-02-pulse-jet-in-action.md
@@ -1,13 +1,14 @@
---
title: Pulse Jet in Action
categories: making
categories: Making
keywords: making
youtubeId: duAkHm_PkHM
excerpt: See the jam jar pulse jet operate.
classes: wide
---

[As promised]({{ site.baseurl }}{% post_url 2007-04-29-made-jam-jar-pulse-jet %}), here’s the jam jar pulse jet in action. Let’s just say that it has a unique way of shutting itself down.

{% include youtubePlayer.html id=page.youtubeId %}
{% include video id="duAkHm_PkHM" provider="youtube" %}

Here’s a shot of the aftermath:

Expand Down
27 changes: 17 additions & 10 deletions _posts/2007-08-29-findBugs-is-even-cooler-than-i-thought.md
@@ -1,6 +1,9 @@
---
title: FindBugs Is Even Cooler Than I Thought
tags: development
tags: development java findbugs
categories: Frame2
excerpt: Fine tuning FindBugs to achieve better results.
classes: wide
---

_This post was originally part of a series documenting an open source web framework I worked on. The framework is well and dead, but I’m keeping these posts for posterity._
Expand All @@ -11,20 +14,24 @@ Then I went and [RTFM](http://findbugs.sourceforge.net/manual/index.html).

[FindBugs](http://findbugs.sourceforge.net/index.html) has a [filtering system](http://findbugs.sourceforge.net/manual/filter.html) that makes `@SuppressWarnings` look amateur. Here’s an example: in the `SoapRequestProcessor`, [FindBugs](http://findbugs.sourceforge.net/index.html) marked a warning that an `Exception` was being caught when no `Exception` was being thrown. After looking at the code and verifying that the try block in question throws several different exceptions, I created a filter entry. The entry looks like this:

<Match>
<Class name="org.megatome.frame2.front.SoapRequestProcessor"/>
<Method name="getEvents"/>
<Bug pattern="REC\_CATCH\_EXCEPTION"/>
</Match>
```xml
<Match>
<Class name="org.megatome.frame2.front.SoapRequestProcessor"/>
<Method name="getEvents"/>
<Bug pattern="REC_CATCH_EXCEPTION"/>
</Match>
```

This tells [FindBugs](http://findbugs.sourceforge.net/index.html) to match a specific bug type in a specified method in a desired class. This entry can be used in both an inclusion or exclusion filter — I use it to exclude that warning from the results.

Here’s a more complex example:

<Match>
<Class name="~.\*introspector\\.Bean\\d+" />
<Bug pattern="EI\_EXPOSE\_REP,EI\_EXPOSE\_REP2"/>
</Match>
```xml
<Match>
<Class name="~.*introspector\.Bean\d+" />
<Bug pattern="EI_EXPOSE_REP,EI_EXPOSE_REP2"/>
</Match>
```

There are some test classes that don’t exactly follow good rules of programming when it comes to dealing with mutability. Since they are test classes, I don’t really care to fix them. Instead I set up the filter to match all classes in an introspector package named Bean1, Bean2, etc. Simple as can be!

Expand Down
7 changes: 5 additions & 2 deletions _posts/2007-08-30-a-consistent-api-is-a-very-good-thing.md
@@ -1,6 +1,9 @@
---
title: A Consistent API is a Very Good Thing
tags: development
tags: development java
categories: Frame2
excerpt: Consistency is an important aspect of API design.
classes: wide
---

_This post was originally part of a series documenting an open source web framework I worked on. The framework is well and dead, but I’m keeping these posts for posterity._
Expand All @@ -9,7 +12,7 @@ I’ve been mucking around in the codebase, cleaning up pieces of the API that a

Naturally, this has led to unit test failures. Almost all of the failures have been easy to fix, but once in a while one pops up that makes me scratch my head. Here’s an example:

```
```java
public void testGetIfEmpty() {
assertTrue(this.errors.isEmpty());
assertNull(this.errors.get(FOO));
Expand Down
5 changes: 4 additions & 1 deletion _posts/2007-08-31-approaching-the-finish-line.md
@@ -1,6 +1,9 @@
---
title: Approaching the Finish Line
tags: development
tags: development java
categories: Frame2
excerpt: Frame2 is almost ready to be released as a new version.
classes: wide
---

_This post was originally part of a series documenting an open source web framework I worked on. The framework is well and dead, but I’m keeping these posts for posterity._
Expand Down
5 changes: 4 additions & 1 deletion _posts/2007-09-04-adding-features-uncovers-old-bugs.md
@@ -1,6 +1,9 @@
---
title: Adding Features Uncovers Old Bugs
tags: development
tags: development java
categories: Frame2
excerpt: "This seems to happen to me no matter what project I’m on. I try to implement a simple (or not so simple) feature and end up exposing at least one bug that’s been hiding around for quite some time."
classes: wide
---

_This post was originally part of a series documenting an open source web framework I worked on. The framework is well and dead, but I’m keeping these posts for posterity._
Expand Down
3 changes: 3 additions & 0 deletions _posts/2007-09-05-documentation-is-always-the-hardest-part.md
@@ -1,6 +1,9 @@
---
title: Documentation is Always the Hardest Part
tags: development
categories: Frame2
excerpt: "I’ve pretty much wrapped up the coding for the next version of Frame2, and decided to give the documentation a once-over."
classes: wide
---

_This post was originally part of a series documenting an open source web framework I worked on. The framework is well and dead, but I’m keeping these posts for posterity._
Expand Down
5 changes: 4 additions & 1 deletion _posts/2007-09-07-version-1-3-is-released.md
@@ -1,6 +1,9 @@
---
title: Version 1.3 is Released
tags: development
tags: development java
categories: Frame2
excerpt: Version 1.3 of Frame2 is officially available.
classes: wide
---

_This post was originally part of a series documenting an open source web framework I worked on. The framework is well and dead, but I’m keeping these posts for posterity._
Expand Down
5 changes: 4 additions & 1 deletion _posts/2007-09-10-eclipse-plugin-nearly-ready.md
@@ -1,6 +1,9 @@
---
title: Eclipse Plugin Nearly Ready
tags: development
tags: development java eclipse
categories: Frame2
excerpt: The Eclipse plugin for Frame2 is almost done.
classes: wide
---

_This post was originally part of a series documenting an open source web framework I worked on. The framework is well and dead, but I’m keeping these posts for posterity._
Expand Down
16 changes: 10 additions & 6 deletions _posts/2007-09-20-using-pipes-to-squash-a-bug.md
@@ -1,6 +1,9 @@
---
title: Using Pipes to Squash a Bug
tags: development
tags: development java eclipse
categories: Frame2
excerpt: "There’s been a bug in the Frame2 Eclipse plugin from day 1 that I believe I have finally squashed."
classes: wide
---

_This post was originally part of a series documenting an open source web framework I worked on. The framework is well and dead, but I’m keeping these posts for posterity._
Expand All @@ -11,7 +14,7 @@ My original stab at fixing the problem was to change the file as it’s always b

Luckily, Google turned up some suggestions, most notably using piped streams. My first attempt looked like this:

```
```java
PipedInputStream in = new PipedInputStream();
PipedOutputStream out = new PipedOutputStream(in);
config.write(out);
Expand All @@ -22,7 +25,7 @@ modelFile.setContents(in, true, true, monitor);

Based on another online snippet, I modified the code to this:

```
```java
PipedInputStream in = new PipedInputStream();
PipedOutputStream out = new PipedOutputStream(in);

Expand All @@ -42,7 +45,7 @@ This is the variant that I ran across most often online. It uses two threads to

The “Pipe Broken” message is happening because the the thread doing the writing to the `OutputStream` has terminated and nothing more is being added to it. The solution is to simply close the `OutputStream` after writing the configuration to it. The `OutputStream` is correctly marked as being finished and the exception is not thrown. An examination of the `read()` method in `PipedInputStream` shows why the `OutputStream` must be closed:

```
```java
if (closedByWriter) {
/* closed by writer, return EOF */
return -1;
Expand All @@ -57,7 +60,7 @@ If the writing side of the pipe simply exits, `writeSide.isAlive()` returns `fal

To sum up, the correct example for using piped streams in Java should look like this:

```
```java
PipedInputStream in = new PipedInputStream();
PipedOutputStream out = new PipedOutputStream(in);

Expand All @@ -70,5 +73,6 @@ new Thread(new Runnable() {
e.printStackTrace(); // Do more than just this, OK?
}
}
}).start(); doSomethingWithIn(in);
}).start();
doSomethingWithIn(in);
```
5 changes: 4 additions & 1 deletion _posts/2007-09-28-overly-ambitious-eclipse-decorators.md
@@ -1,6 +1,9 @@
---
title: Overly Ambitious Eclipse Decorators
tags: development
tags: development java eclipse
categories: Frame2
excerpt: "I don’t think It’s just me, but maybe I am the only person who gets easily frustrated working on Eclipse plugins."
classes: wide
---

_This post was originally part of a series documenting an open source web framework I worked on. The framework is well and dead, but I’m keeping these posts for posterity._
Expand Down
5 changes: 4 additions & 1 deletion _posts/2007-10-25-frame2-gets-a-point-release.md
@@ -1,6 +1,9 @@
---
title: Frame2 Gets a Point Release
tags: development
tags: development java eclipse
categories: Frame2
excerpt: Frame2 1.3.1 is now available.
classes: wide
---

_This post was originally part of a series documenting an open source web framework I worked on. The framework is well and dead, but I’m keeping these posts for posterity._
Expand Down
5 changes: 4 additions & 1 deletion _posts/2008-01-14-frame2-and-macOS-x.md
@@ -1,6 +1,9 @@
---
title: Frame2 and MacOS X
tags: development
tags: development java macos
categories: Frame2
excerpt: Currently, Frame2 does not work on Macs.
classes: wide
---

_This post was originally part of a series documenting an open source web framework I worked on. The framework is well and dead, but I’m keeping these posts for posterity._
Expand Down
3 changes: 3 additions & 0 deletions _posts/2008-01-25-time-to-revisit-the-cd-lamp.md
@@ -1,6 +1,9 @@
---
title: Time To Revisit The CD Lamp
tags: making
categories: Making
excerpt: "About two years ago I finished a project I’d been working on for a while — a CD lamp."
classes: wide
---

About two years ago I finished a project I’d been working on for a while — a CD lamp. I think it turned out pretty well:
Expand Down
@@ -1,6 +1,9 @@
---
title: Some Things To Remember When Running A Small Business
tags: development business
tags: business work
categories: Business
excerpt: "Several years ago, I worked for a small software shop. The company had gone through its number of growing pains, but seemed to be well established."
classes: wide
---

Several years ago, I worked for a small software shop. The company had gone through its number of growing pains, but seemed to be well established by the time I joined. Time would prove me wrong, and also give me some things to remember if ever I start my own small business.
Expand Down
6 changes: 4 additions & 2 deletions _posts/2008-03-14-junit-just-wants-to-be-your-friend.md
@@ -1,7 +1,9 @@
---
title: JUnit Just Wants To Be Your Friend
description: My co-worker tests his code with the `toString()` and visual grep method. I'm not sure he would have ever caught the bug on his own. I keep trying to explain that unit tests are a Good Thing...
tags: development
excerpt: My co-worker tests his code with the `toString()` and visual grep method. I'm not sure he would have ever caught the bug on his own.
tags: development java testing
categories: Development
classes: wide
---

This is why you’re not allowed to have alcohol in the workplace.
Expand Down
6 changes: 4 additions & 2 deletions _posts/2008-03-27-is-refactoring-really-that-scary.md
@@ -1,7 +1,9 @@
---
title: Is Refactoring Really That Scary?
description: I got admonished at my new job for coding practices that have become second nature to me. Is aggressive refactoring really that scary?
tags: development
excerpt: I got admonished at my new job for coding practices that have become second nature to me. Is aggressive refactoring really that scary?
tags: development java design
categories: Development
classes: wide
---

I’ve been coding with an agile mindset for quite some time now. Some practices have become second nature to me over the years. One of these practices is aggressive code refactoring, coupled with test driven development (TDD).
Expand Down
9 changes: 6 additions & 3 deletions _posts/2008-05-30-known-defects-and-findbugs.md
@@ -1,6 +1,9 @@
---
title: Known Defects and FindBugs
tags: development
tags: development java oss
categories: Development
excerpt: "I ran into a bit of a quandary the other day. I had to modify a piece of legacy code in our system — one that has no tests written against it."
classes: wide
---

I ran into a bit of a quandary the other day. I had to modify a piece of legacy code in our system — one that has no tests written against it. My first task was to write as many [JUnit](http://www.junit.org/) tests as I could to document the behavior of the component to help ensure that I didn’t break existing functionality with my changes.
Expand All @@ -17,7 +20,7 @@ In the parlance of “[Working Effectively with Legacy Code](http://www.amazon.c

Here’s an example:

```
```java
public void testValidateNullResponse() {
try {
ProtocolParser.validateResponse(null);
Expand All @@ -30,7 +33,7 @@ public void testValidateNullResponse() {

This test documents the system as it currently exists, but the behavior is obviously not correct. The `ProtocolParser` class should be throwing an `InvalidResponseException`, not an `InvalidRequestException`. To document this defect, I change the method name and add the `KnownDefect` annotation to the test method, resulting in the following:

```
```java
@KnownDefect("Should throw InvalidResponseException")
public void testValidateNullResponseShowsKnownDefect() {
try {
Expand Down
4 changes: 3 additions & 1 deletion _posts/2008-12-10-moving-to-agile-inertia.md
@@ -1,7 +1,9 @@
---
title: 'Moving to Agile: Inertia'
description: Switching to an Agile process shines the light on a developer who has been successfully hiding his lack of work, but what can I do to change his behavior?
excerpt: Switching to an Agile process shines the light on a developer who has been successfully hiding his lack of work, but what can I do to change his behavior?
tags: development agile
categories: Agile
classes: wide
---

I’ve been given the dubious honor of leading a team using Scrum as a “pilot” to see how well it works for the company. I’ve used Scrum before and had a good amount of success, so I feel comfortable with the process.
Expand Down
4 changes: 3 additions & 1 deletion _posts/2009-01-14-make-it-a-good-day.md
@@ -1,7 +1,9 @@
---
title: Make It A Good Day
description: Don't just wait for a good day to "happen". I've been able to make some attitude changes and make good days.
excerpt: Don't just wait for a good day to "happen". I've been able to make some attitude changes and make good days.
tags: health
categories: Health
classes: wide
---

Back when I used to work out regularly, there was an older gentleman who was usually changing in the locker room at the same time as me. We would make small talk as people do to be polite. He might have told me his name; I don’t remember very much about him now.
Expand Down
@@ -1,7 +1,9 @@
---
title: Raising Beef is not Killing the Environment
description: Raising beef is not the water hungry process that some people want you to think it is.
excerpt: Raising beef is not the water hungry process that some people want you to think it is.
tags: environment
categories: Environment
classes: wide
---

Periodically I see people on Twitter claiming that we shouldn’t eat beef because it takes XXX gallons of water to raise a single pound of meat, where XXX is some ridiculously large number.
Expand Down
6 changes: 4 additions & 2 deletions _posts/2009-09-08-the-phone-screen-works-both-ways.md
@@ -1,7 +1,9 @@
---
title: The Phone Screen Works Both Ways
description: A phone screen is typically used to screen applicants for a job, but it gave me enough information to make a decision about not wanting to work for the company.
tags: development
excerpt: A phone screen is typically used to screen applicants for a job, but it gave me enough information to not want to work for the company.
tags: business work
categories: Business
classes: wide
---

I recently applied for a position through a recruiting service. I jumped through the requisite hoops and was told that the prospective employer was very excited to talk to me.
Expand Down

0 comments on commit 475dfeb

Please sign in to comment.