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.

StrutsCX - Updated Demo

I've updated my demo of StrutsCX. I haven't looked at StrutsCX much, but this release does look pretty polished. A quick glance tells me that it's now ready to be simply included in your Struts app with a single .jar file. Very nice! I might have to use it in Struts Resume to generate PDFs of Resumes.

Posted in Java at Dec 04 2003, 04:23:02 PM MST 2 Comments

[ANN] Apache Tomcat 5.0.16 Stable Released

I guess it happened yesterday, beginning upgrade at 3:10 MST... Done at 3:15 - let me know if you see any issues.

Later: There's issues all right. First thing is that the flag to allow symlinks used to be adding the following in your <Context> tag:

<Resources
  className="org.apache.naming.resources.FileDirContext"
  allowLinking="true" caseSensitive="true" />

And with 5.0.16, this doesn't work. Adding allowLinking="true" on your <Context> does allow symlinks, and should have been this way the whole time IMO. I also got a good ol' OutOfMemory error and I have a sneak suspicion it's not Roller (though Roller does though an exception when I do Weblog → Edit:

ERROR 2003-12-04 15:54:07,948 | HibernateStrategy:query | During QUERY
net.sf.hibernate.QueryException: could not resolve property type: weblogEntryId [select p from p in
class org.roller.pojos.RefererData where p.weblogEntryId=? and not title is null and not excerpt is
null order by p.totalHits desc]

Maybe this has something to do with the fact that my referers are not getting cleaned out every night. Anyway, back to my sneaky suspicion of OOM errors. I have two domains hosted on this site - raible.net and raibledesigns.com. The first just redirects to my family blog, but that's not the point. What I'm seeing in Tomcat's logs is that it tries to load all apps for both domains - and it pukes on a few. Time to play around with server.xml and see if I can get raible.net to just load it's own context.

Solution Found: You have to configure 2 different appBase's for each host.

Posted in Java at Dec 04 2003, 03:09:01 PM MST Add a Comment

Display Tag: Static Headers - Revisited

I get a fair amount of hits on this site for my Display Tag: Static Headers post. When I originally wrote it, back in August, it didn't work in IE. So I asked the experts. I got a solution from that - split the tables and wrap the data table with a div that has style="height: 400px; overflow: auto". This works in IE, but since it's not easy to hack the HTML that the displaytag generates, this is an awkward solution.

Since my old demo disappeared when I updated struts-resume, I created a new one. This example shows how to do static headers in both IE and Mozilla - and the IE solution actually works in both. It's admittedly ugly, but it works. The major problem with this approach is getting the width of the top (header) cells to match up with the bottom (data) cells. I got them close using "th, td { width: 25%}" in my stylesheet, but that doesn't line them up exactly. If anyone knows of a better solution, let me know and I'll update the demo.

Posted in Java at Dec 04 2003, 01:51:05 PM MST 4 Comments

The day before it hits

Abbie has been sick for about a week now. It started out as a runny nose, and watering eyes - nothing too bad. She's had a smile on her face and been laughing the whole time. This can be a real treat after she's sneezed, the boogers are streaming on to her chin - but she still wants to give you a kiss. Kisses at this age means she opens her mouth real wide and plasters her face against yours. As gross as it sounds, I think it's cute. Anyway, on Sunday she started to get quite cranky and began to earn her nickname we've always wanted to give her but never could - Crabby Abbie. On Monday, we noticed she was running a fever and took her into the doctor. It was a typically doctor's visit, nothing we can do, get lots of rest/fluids, etc. That night, after her afternoon nap, she was back to her happy ol' self again and it was hard to believe she still had a fever. Yesterday it was the same thing, smiling happy kid with a fever (100-101). Then last night, I started to feel it. You know that feeling in the back of your nose when you know you're getting a cold. It sucks, you know it's coming - and you're pretty much helpless to get rid of it. You pound down the Orange Juice, throw down some Vitamin C - and hope for the best. But I know it's coming... it's just a matter of time. Getting 5 hours of sleep last night will surely escalate the process...

Posted in General at Dec 03 2003, 07:08:31 AM MST 5 Comments

Users and Groups on Linux

Now that I've rebuilt my Red Hat 9 box with Fedora, and installed Out-of-the-Box - I really should get my user and group permissions setup properly. If I ever decide to host CVS, shell access or bug tracking for clients, it'd be nice to know my server is secure. Out-of-the-box installs everything as root (save CVS), so I'm constantly doing "chown -R matt $CATALINA_HOME" or "su" to simply deploy files to Tomcat.

How are these open source servers (i.e. SourceForge) setup? If I wanted to setup a SF-clone, I'm assuming I'd need to setup a "developers" or "clientName" group and then create specific cvs repositories for each client. However, I'm not looking to setup a SourceForge-like server right now - I just want to get my permissions right. I'm thinking of creating a "developers" group, and giving it rw rights to Tomcat, Ant, Anthill, etc. Then I'll make myself a user in this group, rather than having to "su" every time I want to do something. What would you do? How would you setup your "dev" box to be more secure with users and groups?

Posted in Java at Dec 03 2003, 05:45:23 AM MST 1 Comment

Filtering Roller Feeds by Category

Simon posted today that Pebble supports RSS Feeds by Category. Just so you know, Roller also has this feature, - just add "?catname=categoryName" after /page/$username. Here's all my current categories.

This is a great feature to have in your blogging software. Without it, javablogs.com would be getting all my posts, rather than just my Java and Roller categories.

Posted in Roller at Dec 02 2003, 09:20:13 PM MST 4 Comments

What's up with Google Ads?!

At first, I thought that Google's AdSense was kind of annoying. Then I realized, from Russ, that you can actually pay for your hosting costs with it. So I tried to sign up (this was about a month ago now). I was denied with a vague reason like my site was too personal or something. "Oh well" I thought, "at least I tried." But now I'm seeing these suckers on almost everyone's blogs. "Sheot" I say to myself, "those bastards are making money and I'm still stuck paying $50+/month for this site!!"

So on one hand, I'm jealous of all your Google Ad Bastards, but on the other hand, I'm proud to be Ad Free!

No wait. I take that back. I'm just jealous. Money talks...

Posted in General at Dec 02 2003, 05:16:28 PM MST 2 Comments

Is it possible to disable CVS Notification of certain files?

I use Anthill for automated building and testing of my webapps. I think it's a great product. The UI could use some improvements, but I know that if I really cared, I'd fix it myself. It's only competition is CruiseControl as far as I know. CruiseControl (at first and only glance) looks to have a not-so-intuitive XML file that needs to be setup. Anthill was easy to figure out without even reading any documentation.

I am using Anthill on a number of projects and most of these projects use some sort of e-mail notification of CVS commits. When using CVS on *nix, I use CVSSpam, or the one built in at SourceForge. When using CVS NT on Windows (like my current *paid* project) I use CVSMailer. Both of these work great, however, when Anthill does a commit of my anthill.version file - everyone gets a notification of it.

Does anyone know how to configure CVSMailer or CVSSpam to "not" send e-mails for this specific file? I'd love to configure this from Anthill, but I realize it relies on committing this file.

Posted in Java at Dec 02 2003, 05:06:18 PM MST Add a Comment

Hibernate Blog

Sweet, the Hibernate guys have a group blog. Very nice - I subscribed. Gavin's post on Designing "query by criteria" is a should read if you're a Hibernate user. You might recall a while back, I was looking to use the QueryByCriteria API to construct dynamic queries. I ended up doing this with session.find and SQL, which turned out to be much easier. That being said, what's the advantage of using the Expression API over plain ol' SQL?

Posted in Java at Dec 02 2003, 09:58:22 AM MST Add a Comment

House Project: Garage has started

New Garage has a floor The Garage crew showed up last week and began working on Saturday. Today they poured concrete - this builder isn't wasting any time! They expect to have our garage done by Christmas. Click on the image to zoom in.

Posted in General at Dec 01 2003, 01:56:24 PM MST