Posts Tagged ‘Programming’

Hello World with JAX-RS on Tomcat 10, Jersey and JDK 17

Coding, Protocols & Specs, Technology, Web [ | ]

Sometimes the best place to start a new coding experiment is with “Hello World” (HW), the absolute minimum, often borrowed from someone else who has kindly published it for the benefit of others. The fewer assumptions made by the HW project the more useful it will be to the community. Some HW demos tend to make a lot of assumptions (IDE, build mechanism, dependency management etc.) and this presents problems for those who don’t match.

I recently created a starting point for a JAX-RS API running on Tomcat 10.1 and JDK 17, and when I looked around the Web I noticed that similar demos tended to assume Eclipse, or Maven, or Gradle and so on in the development environment. Here [click title to read more…]

Spoiled for choice

Coding []

Like many software developers, system designers and other computing specialists, I often find myself facing a new project with far too many implementation options. A quarter of a century ago my options were far more limited, and perhaps as a consequence it was easy to get started. If I needed to directly manipulate the underlying hardware, I’d roll up my sleeves and churn out hundreds of lines of assembly. (OK, so each processor has a different instruction set, memory model, etc., but once you’ve mastered a few, the rest are a piece of cake.) For something high level, C is the best workhorse. Quick and dirty? BASIC. Don’t laugh. Many serious solutions were coded in BASIC, or at least in [click title to read more…]

Programming evolution

Coding []

The Java programming language continues to evolve, and at times it can be hard to keep up. I can code in dozens of languages, but the constant switching between differing syntax and paradigms often leads to confusion. I frequently find myself attempting quirky hybrids of languages, such as this morning when I attempted to initialize an ArrayList<Object> structure with a ({a,b,c}) constructor pattern. It took an embarrasing few seconds before I understood my mistake. In the end I refactored to use an “Object…” argument, since this better matched what I was doing, but how long will it be before I attempt using “…” in some other language?

Meanwhile, since more than half of my recent coding is in Java, some [click title to read more…]

Installing SVN and Apache on Centos 5

Coding, Operating Systems, Web [ | ]

Having done this many times already, here’s a quick recipe for putting Subversion (with Apache) on a fresh install of CentOS 5.5. It assumes you will put your repositories into /var/svn/repositories, the user credentials are held in /var/svn/passwords, you will have a user called testuser and an initial blank repository called myrepos. I’ll also assume your server is called The procedure also opens port 80 in the iptables firewall. Edit the details to suit your own requirements:

# yum install httpd subversion mod_dav_svn # mkdir -p /var/svn/repositories # chown -R apache:apache /var/svn # chcon -R -h -t httpd_sys_content_t /var/svn # htpasswd -c /var/svn/passwords testuser * enter password for 'testuser' (twice) # vi /etc/httpd/conf.d/subversion.conf Changes: * Uncomment the <Location> config [click title to read more...]

NB6.7 around the corner

Uncategorized []

This week could see the release of NetBeans 6.7. It got community approval last week, despite a few remaining bugs. I’ve been using the release candidates for a while and the incremental improvements are good, though code completion for features like Facelets could still do with some work.

Update: shortly afterĀ I wroteĀ this, theyĀ announced the release of NB6.7.