Matt RaibleMatt Raible is a writer with a passion for software. Connect with him on LinkedIn.

The Angular Mini-Book The Angular Mini-Book is a guide to getting started with Angular. You'll learn how to develop a bare-bones application, test it, and deploy it. Then you'll move on to adding Bootstrap, Angular Material, continuous integration, and authentication.

Spring Boot is a popular framework for building REST APIs. You'll learn how to integrate Angular with Spring Boot and use security best practices like HTTPS and a content security policy.

For book updates, follow @angular_book on Twitter.

The JHipster Mini-Book The JHipster Mini-Book is a guide to getting started with hip technologies today: Angular, Bootstrap, and Spring Boot. All of these frameworks are wrapped up in an easy-to-use project called JHipster.

This book shows you how to build an app with JHipster, and guides you through the plethora of tools, techniques and options you can use. Furthermore, it explains the UI and API building blocks so you understand the underpinnings of your great application.

For book updates, follow @jhipster-book on Twitter.

10+ YEARS


Over 10 years ago, I wrote my first blog post. Since then, I've authored books, had kids, traveled the world, found Trish and blogged about it all.

Now sporting valid XHTML

Thanks to Will Gayther (no blog that I know of), this site now validates as XHTML 1.0 Transitional. You might recall that I had issues with the onload attribute of an iframe, but it was easily solved. Will suggested I put the onload into the <body> of my iframe's "src" document, but that seemed impossible, as the iframe doesn't have a source document - it's just submitted to. But he did turn me onto the solution. There is a function called when the form is submitted (onSubmitComments()), so I just called the function from there (instead of in the onload):

function onSubmitComments(aEntryId)
{
  gSubmittingComment = aEntryId;
  setTimeout("onCommentSubmitted()", 500); // wait 1/2 second
}

I don't expect you to care about any of this, just wanted to let you know I'm compliant again - or at least right now I am. Oh yeah, and I added this theme (sunsets) to Roller's CVS yesterday.

Posted in Roller at Jul 15 2003, 02:22:13 PM MDT Add a Comment

Struts: How to use Indexed Properties

James Turner has written a short-n-sweet article on using indexed properties with DynaForms. Of course, you could use any ol' ActionForm, but you get the idea. If you're struggling with indexed properties in Struts, or you're just curious to know what they are, read this article (estimated time 5-10 minutes, 6 printed pages - mostly code).

Now if we could only convince James to use XHTML (lower case HTML, close your tags, etc.) in his examples. wink A big pet-peeve of mine is uppercase HTML - XHTML is lowercase and HTML works just the same with lowercase tag names/attributes. Here's to future compatibility!

Posted in Java at Jul 14 2003, 11:07:10 AM MDT 2 Comments

Prevent Caching of JavaScript and CSS files

We've been having an issue at work for awhile now where our .css and .js files are cached by a proxy server. When we update the app, we get a few users (behind the proxy server) that get served up an old style/script file, and the app looks like it's broken. So I added a super-simple cache-killer to our .js and .css files today. In my taglibs.jsp (included in every JSP), I added:

<%-- Create a variable that is the current time (in milliseconds) to kill
     caching on the proxy server --%>
<jsp:useBean id="now" class="java.util.Date" />
<c:set var="cacheKiller">
    <fmt:formatDate value="${now}" pattern="yyyyMMdd"/>
</c:set>

My date pattern only goes to the day because we don't update the site more than once in the same day. This way, the users will still get the stylesheet/script caching benefit of the browser, but now we control when the file is reloaded, rather than the proxy server. To make sure these files are re-fetched every request, you could use pattern="yyyyMMddHHmmssS" to get all the way down to the millisecond. After adding this, I adjusted my baseLayout.jsp (Tiles template) to add my cacheKiller as a parameter to the src attributes of scripts and stylesheets.

<%-- Get Javascript List --%>
<tiles:useAttribute name="scripts" ignore="true"/>

<c:forEach var="js" items="${scripts}">
    <script type="text/javascript"
        src="<html-el:rewrite page="${js}"/>?<c:out
             value="${cacheKiller}"/>"></script>
</c:forEach>

Works like a charm!

Posted in Java at Jul 14 2003, 10:16:48 AM MDT 6 Comments

RE: The economics of writing a computer trade book

I found a good tidbit this morning (on the java-writers' mailing list) titled "The economics of writing a computer trade book." Good stuff to read if you're an author or wanting to be an author. Scott estimates the average payout for authors is $20/page for books and $50-$250/page for magazine articles.

Bottom line, write magazine articles if you're doing it for money. If you're doing it for fame, write a book. If you're writing a book, warn your family and friends that you'll be unavailable for the duration of your writing. Don't forget to mention you'll be stressed out, irritable and you'll bitch a lot that they're not paying you nearly enough for your efforts. Then plan a party when the book is released and give yourself (and your family) a pat on the back. I've been waiting to plan this party since March!

Posted in General at Jul 14 2003, 08:55:27 AM MDT Add a Comment

Issues I'm having with XP and Red Hat

I got everything setup as needed yesterday, and I'm thoroughly enjoying my seemingly new Windows box. However, I can't get at my data. My data is on my old hard drive and I can't seem to get Windows to recognize it as needed, though it works great as the primary disk. I've posted a question with my issue on experts-exchange.com, so hopefully I'll have it fixed soon enough.

My second issue is very minor. I'm adding a 2nd hard drive to my Red Hat 9 machine, and I'm curious to know where you Linux gurus mount a 2nd hard drive? I currently have it mounted as an NTFS drive at /mnt/windows, thanks to the Linux-NTFS Project. But now I want to format it as a Linux filesystem and share it via Samba.

My third issue is a little wierd. I have Samba setup and running, but I can't login to any of the shared directories. The username/password dialog just keeps prompting me (from my Windows machines). I could probably figure out the problem if I spent more than 10 minutes looking for an answer - but alas, I have not.

Windows is running super fast though, and that makes me happy.

Posted in General at Jul 13 2003, 09:19:53 PM MDT 6 Comments

Speeding up my computers

In an effort to speed up my Windows XP machine and stave off the urge to buy a new computer - I'm re-installing Windows XP. I've installed and re-installed Windows quite a bit in my lifetime, but this time I'm doing it different. Rather than risking my data, I bought a new hard drive. Can you believe that the smallest hard drive you can buy these days is 30 GB?! Everything installed easy enough and the machine (1.5 GHz, 1 GB RAM) is much faster, now I'm only going to install the apps I actually use. This means that I'll install them only as I need them. Hopefully this will result in a leaner, meaner machine.

I am strongly considering a new G5, but I need a new (better paying) contract to justify that. And if I do get this $6000 dream machine (23" monitor, 1 GB RAM), it won't be a replacement for my Windows machine - it'll just be a new primary machine. I don't want to have to buy Quicken or Quickbooks for the Mac, it's much easier to just keep the old machine around.

As I write this, I'm on my second attempt at installing XP. The first attempt worked fine, but for some reason - the new hard drive was given a drive letter of F. Maybe it got confused with the new slave drive. So I'm in the midst of a 2nd attempt, this time w/o the slave drive connected. Wish me luck.

Posted in General at Jul 12 2003, 11:04:10 AM MDT 4 Comments

Pornolize your blog

This is some seriously funny stuff. Try it on your blog and I guarantee you'll get a chuckle or two out of it.

Posted in General at Jul 11 2003, 01:53:40 PM MDT 4 Comments

Words of Wisdom from James Gosling

After reading James's All I Really Need to Know I Learned while Skiing with my Grandmother (damn, no permalink), I've come up with a Raible Developer Creed.

  • Balance - strive for it. If you're staying up late to develop, and you haven't spent a few hours with your friends/family that day - you're not being fair to yourself, or them.
  • You're breathing too hard. You must be doing something wrong. Take the time to learn before doing. This is going to be a tough one as I tend to just jump in and try to do something. However, I'm sure if I studied the technology/documentation first, it would actually take me less time to do it.
  • Inspiration is 99% Observation. I'm going to try to limit how much I do outside of the office and start observing more (via mailing lists/blogs). This will contribute greatly to the first item in my new creed.

Posted in Java at Jul 11 2003, 12:11:02 PM MDT Add a Comment

Added "Comment" link to RSS Feed

Thanks to Lance, my RSS feed validates once again. [Details]. Also, I added a "Comment" link to the bottom of my posts (in the RSS feed). I got the idea from Russ and I think it's a good one. In my rss.vm file, I changed:

<content:encoded><![CDATA[#showEntryText($entry)</content:encoded>

To:

<content:encoded><![CDATA[#showEntryText($entry)
#if( $website.AllowComments )
   <p align="right"> 
   <a href="$absBaseURL/page/$entry.website.user.userName?
               anchor=$entry.anchor">Add a Comment</a>
   </p>   
#end]]>
</content:encoded>

In the code above, the href should all be one one line, but in order to get NetNewsWire to render my full post, I had to split it up. Is this a bug? It seems if I have a <pre> with too many characters (>80?), then it just ends the post.

If Roller users dig this enhancement, I'll commit it to CVS.

Posted in Roller at Jul 11 2003, 10:25:19 AM MDT 1 Comment

Feeling the love

Thanks to Erik for choosing me as one of his favorite Java bloggers. That's quite a compliment in my book - especially from one of my favorite bloggers.

Since it's Friday, here's a mp3little reminder.

Posted in Java at Jul 11 2003, 07:01:55 AM MDT Add a Comment