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.

The University of Miami Job

The good news is that I got an offer for the job at the University of Miami yesterday. The bad news is I didn't take it. The pay was too low (1/2 of what I'm making now) for us to even consider it. Julie's main criteria for moving to Florida is she doesn't want to go back to work. She wants to be a stay-at-home mom for a few years, and I don't blame her. So I had to make the call today and turn it down. It sucked. The folks at U of M seemed like very nice people and (probably) would've been a great team to work with. Oh well, life goes on. Maybe in a few years when Julie is working again. Nothing against U of M, it's their pay structure that needs work. It must be tough to get highly qualified developers with such a low pay scale.

Now Julie and I are questioning the move to Florida. We really want to get out of our house - it's a tri-level and Abbie's going to be crawling soon. So I think we're going to put our house on the market. If I still don't have a gig in Florida by the time we sell it (could take a while) - we'll just buy our next house here. Of course, this plan sounds great to Julie while the weather in Colorado is nice. I'm willing to bet that she'll sing a different tune in October. ;-)

Posted in General at Apr 23 2003, 11:25:28 AM MDT 1 Comment

New Certification Exam from Sun

I got this notification from the Denver JUG mailing list:

The Certification team is in the process of creating a NEW certification exam!

"Sun Certified Business Component Developer for the Java 2 Platform, Enterprise Edition"

This certification is for programmers specializing in leveraging the Java 2 Platform, Enterprise Edition (J2EEtm) technologies used to develop server-side components that encapsulate the business logic of an application. Prior to beginning the Sun Certified Business Component Developer program, you must be a Sun Certified Programmer for the Java Platform (any edition).

I'm wondering if a "Business Component Developer" is a fancy name for an EJB Developer? Remember the Web Component Developer (Servlets/JSPs)?

Posted in Java at Apr 23 2003, 10:31:35 AM MDT 1 Comment

Struts + OJB Example at SourceForge

James Mitchell has contributed a modified version of Chuck Cavaness' Beer4All Shopping cart demo to the Struts' SourceForge Project. If you're looking for an example of using OJB with Struts, this is probably your best bet. From the struts-user mailing list:

Ok, just got off the phone with Chuck.  He said he doesn't mind, so here is
the version that I have:

  http://sourceforge.net/projects/struts/

Note - This is a simple webapp and not all the features have been
implemented.  I will continue to improve the codebase over the next few
months, but this is a "use at your own risk" sample application.

To deploy "as is", you will need to configure your database connection
(repository.xml) and create a database (or change the config) called 'ojb'
with a user 'ojb' and password 'ojb'.  Next execute the sql.sql against the
new database to create the necessary data and internal tables (OJB).

Use you best judgment to deploy on your container.  I can help if using
Tomcat, Resin, or JBoss/Tomcat.  Personally, I use JBoss/Tomcat so the
unzipped/exploded war should deploy if you extract it to
server/default/deploy.

Have fun!!!

--
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org

BTW, there are quite a few Hibernate example apps (appfuse, hibernate and struts-resume) at the Struts SF project as well.

Posted in Java at Apr 23 2003, 10:22:43 AM MDT Add a Comment

Making your tables more accessible?

A question was asked on the display tag user list recently. Basically, the user wanted to add onmouseover and onmouseout events to the <tr>'s in a display-tag rendered table. Today, I decided to whip up a quick example of how to do this in a DOM-compliant browser. Just add an "id" attribute to your table, or use document.getElementsByTagName("table") (selecting the appropriate table in the array), and then put the following JavaScript block below your table. Of course, you must define a "tr.over" class in your CSS.

<script type="text/javascript">
    var table = document.getElementById("testTable");
    var rows = table.getElementsByTagName("tr");
    for (i=0; i < rows.length; i++) {
        rows[i].onmouseover = function() { this.className='over' };
        rows[i].onmouseout = function() { this.className='' };
    }
</script>

Now for an example:

       
       
       
       
       
       

Later: You can take this one step further and add an "onclick" event so that the user can edit the record the row is referring to. Let's pretend you have a link in the first <td> of the table. Inside this link is the recordId for that row. Adding an onclick to the row makes it easy to route the user to the details page for the record.

rows[i].onclick = function() {
    var cell = this.getElementsByTagName("td")[0];
    var link = cell.firstChild;
    var id = link.firstChild.nodeValue;
    location.href='URL to details page?recordId='+id;
    this.style.cursor="wait";
}

Posted in The Web at Apr 22 2003, 04:55:25 PM MDT 25 Comments

An iPod in my future?

iPod I'm thinking about getting an iPod. I've been using a walkman tuned to the FM stations in Denver for my ride to/from work, but it's not cutting it anymore. So the question is "Which one?" There's a Windows version and a Mac version, and supposedly the iPod is configured to only work with one machine? My Windows machine has all my music on it, and my music-downloading software, so the Windows version is probably the best candidate. Another reason for the Windows version is that my Win box never moves - it's always at home.

5 gigs or 10? I only have around 500 songs - so 5 gigs is probably a good size. With 27 gigs free on my OS X hard drive, I don't really need more space. What I'm really asking here is: Send me links of good software for the iPod. I've heard rumors that there's stuff out there that'll allow you to use it on more than one machine. Feel free to remain anonymous, or use my contact page to send me an e-mail if you don't want to comment.

Posted in Mac OS X at Apr 22 2003, 11:25:28 AM MDT 5 Comments

Roller Bugs?

I'm encountering the following bugs with Roller's 0.9.7.1 - once I make sure I can reproduce them with the latest build, and the "x2" theme, I'll enter them as bugs (then hopefully fix them).

  • News items - newsfeed.vm has some issues and won't render newsfeeds correctly. I seem to be the only one using these, but I believe a fix is still in order. This is only a bug with the new velocimacros. I had it working yesterday, and then Dave updated weblog.vm and website.vm, and now it's broken again. I reverted my newsfeeds back to the old $macros.showAllNewsfeeds.
  • Linkback - I can get linkback to work, but I can't get it to display after each day - it only shows up at the bottom of all my entries. It might be an HTML issues - I'll have to validate this site as XHTML and do a bit of cleanup to confirm this is actually a bug.
  • Joe Hewitt comments - I have the display working, but posting doesn't. Actually, the post works, but the redisplay doesn't. I'll have to post a few comments on Joe's blog to verify that his comments system works like I expect it to. Maybe I should check-in what I have working and someone else can hack around with it?

I doubt I'll get to verifying/fixing these for a few days. Today is our 3 year anniversary, tomorrow will be another ride-home-day/late arrival (last night I got home at 8:00) and Thursday night I'm going to the Jimmy Buffett concert. As for today being our anniversary - it's been an awesome 5 years since I met Julie - getting married to her was the best decision I ever made, and having Abbie was the best decision we ever made. Life just keeps getting better, what luck!

Posted in Roller at Apr 22 2003, 07:13:27 AM MDT Add a Comment

Riding in the Rain

Last night's ride home was an invigorating experience. 30 minutes into my ride it began to rain. Then the lightning came. It made me feel so so alive as I strained my muscles to go faster and I gritted my teeth to block out the cold. 20 minutes later I caught a tailwind and a smile molested my face. 15 minutes after that a double rainbow appeared and I giggled like a little school girl. It was won of my best riding-home experiences and a great feeling of accomplishment flooded my body as I stumbled into our living room. Very wet, but very alive.

Posted in General at Apr 22 2003, 06:44:25 AM MDT Add a Comment

Locking Records in Webapps

Our tester, Roberto, started working at my day job today. This means that I've been hacking and interacting with Bugzilla all day. It's great to have someone to validate our code meets the requirements (BTW, all our requirements are kept in Bugzilla - how's that for dynamic requirements?!) So, as far as satisfying my desire to be a productive American, today has been a good day. After I ride home (~20 miles) tonight, I'll feel on top of the world. Anyway, back to the point of this post.

One of the bugs that Roberto entered was that a user could login using two separate browser sessions (same user), and blah, blah, blah. I'm sure anyone who's worked with webapps has seen this. You open a page up in both browsers, click "Save" in the first, and then "Save" in the second. The second browser overwrites the first one's changes. I've seen this bug many times, but I've never solved it, nor even tried.

I'm curious to know if any of you have solved this? I think Hibernate has a way of locking an object - but will that solve this issue? I'm willing to implement a quick solution, otherwise, I'll argue the bugs validity until I'm blue in the face. Hmmm, I wonder if I can simply use Struts' Tokens feature to solve this problem? Please hook me up if you've solved this problem in your webapps.

Posted in Java at Apr 21 2003, 05:07:24 PM MDT 4 Comments

[ANNOUNCE] Hibernate 2.0rc1

Powered By HIBERNATE Hibernate2 is now functionally complete! Get it at the usual place. The release notes are below.

Hibernate Changelog
===================
Changes in version 2.0 beta 5 (21.4.2003)
-----------------------------------------
* Informix support (Steve Molitor)
* fixed a bug parsing "select new ... " queries
* deprecated "object" type in favor of  mappings
* added Session.contains()
* added extra DBCP config options (?)
* SessionFactory.close() now unbinds from JNDI
* added Session.evict()
* got rid of an unnecessary SQL DELETE issued when an empty collection was dereferenced
* where attribute of collection mappings no longer ignored for deletion
* improved logging
* support polymorphic associations to "embedded" composite id classes
* various bugfixes to collection filter parameter binding
* fixed some problems with proxies introduced in earlier beta versions
* fixed bug with self-reference in the case of identity column id generation
* added hibernate.cglib.use_reflection_optimizer property
* added nonstrict-read-write cache
* fixed an SQL-generation bug in new Criteria API
* added CompositeUserType
* sequence and table id generators now aware of default-schema
* added update and insert attributes to  element
* fixed a bug with expressions like elements(foo.bar.baz) in where clause
* more efficient Set initialization (two-phase load)
* removed support for hibernate.query.imports and added  mapping element
* fixed problem in DBCP connection validation and added new config properties

I'm proud to say that this blog is now Powered By Hibernate (thanks to Dave of course)!

Posted in Java at Apr 21 2003, 05:51:32 AM MDT Add a Comment

Cool idea - highlight entries by category with CSS

This sounds like a cool idea - and should be easy to get working with Roller. However, I'm stumped on making this work. Hopefully someone can help me out with the following macro:

#foreach( $entry in $entries )
#if ($entry.getCategory().startsWith("Java"))
<div style="border-left: 2px solid red">
#else
<div style="border-left: 2px solid blue">
#end

Once I get this working, making my category menu use the same colors will be a great way to indicate which categories I've posted to.

Posted in Roller at Apr 20 2003, 05:45:03 PM MDT 1 Comment