Scala, Java, Unix, MacOS tutorials (page 382)

While working with various "Java instanceof" tests recently, my curiosity was piqued, and I thought I'd take a look at how the instanceof operator works when testing against a Java array.

iPhone version FAQ: How can I tell what version of the iPhone OS my iPhone is currently running?

Answer: You can see your iPhone OS version on your iPhone by going to Settings > General > About, and then Version will be one of the fields on that screen. When you get there, here's what this About screen looks like:

Java enum FAQ: Can you share some Java enum for loop examples?

I’ve written several Java enum tutorials recently, (Java enum examples tutorial, Java enum switch example, and Java enum toString tutorial), and before leaving the “Java enum” topic, I thought it would be good to show one example that just focuses on the Java enum for loop syntax.

Java enum FAQ: Can you share a Java enum toString example?

I haven’t tried this before, but I was just working on several Java enum examples (Java enum examples tutorial, Java enum switch example), and I thought I’d take a look at the Java enum toString behavior.

To that end I wrote the following Java enum “toString” example class:

Java enum FAQ: Can you share a Java enum switch example, i.e., how to use an enum with a Java switch statement?

In my earlier Java enum examples tutorial, I demonstrated how to declare a simple Java enum, and then how to use a Java enum with a variety of Java constructs, including a Java switch statement, a for loop, and an if/then statement.

Java JDBC FAQ: Can you share Java JDBC connection string examples for the most popular relational databases?

Some days we all need something simple, and today I needed the example syntax for a JDBC connection string (the JDBC URL) for MySQL and Postgresql databases. While I was digging through my old examples, I found JDBC connection string examples for other databases, and thought I'd share them all here.

To that end, here are some example Java JDBC connection string examples for various databases, including MySQL, Postgres, SQL Server, and DB2.

JDBC connection string examples

Here’s a table showing the syntax for JDBC URLs and drivers that I've used on recent projects.

In need of a Java JDBC driver for your database? I thought I'd put together a quick list here showing the URLs where you can download the latest JDBC drivers for databases like Postgresql (Postgres), MySQL, and Microsoft SQL Server.

MySQL JDBC driver

MySQL Connector/J is the official MySQL JDBC driver. Here's a link to their JDBC driver: 

After doing some shopping today, it really hit me how out-of-whack expensive some things are in the world today, especially when you put them in comparison to other products.

To that end, I compiled a short list of "liquid" items, and did the math (normalization) so we can compare everything at the same level -- in this case, the "one gallon" mark.

Here then are the costs of one gallon of various liquid items:

Two recent tech news stories: Google's brain drain, and Motorola's new "social" phone, based on the Android operating system.

Google's brain drain

The Huffington Post offers four reasons that many talented people are leaving Google. While Google is losing only about 2% of their staff every year, the people they're losing are going on to be Presidents and CEOs and VPs of other companies.

Dear Mr./Ms. IT Manager,

As the former owner of a very successful software consulting firm, here are several "truths" that you should know about the real costs of employing bad software developers (programmers):

A few simple steps

(Note: These comments were specific to our company's use of Ant to deploy our Java projects. If you're not using Ant, any Ant commands shown here won't apply to your project.)

To deploy any of our Java projects using Ant, just follow steps similar to these to check the project out of CVS and then build it on the server:

The CVS "Insufficient Karma" message

The CVS Insufficient Karma message means that you don't have the proper security permissions to check files back into a CVS repository. This is a problem that your CVS administrator can fix for you, and in the DevDaily CVS configuration refers to improper configuration in the "avail" file.

 

I started to write about a few "special CVS tasks" that a user needs to perform from time to time, but as a practical matter, I've found that most new users don't need to worry about tagging a release for at least a little while, so I've skipped this topic here, at least for the time being.

 

<< Previous  Next >>

 

This section assumes that that you've already checked out a project from a CVS repository and you're ready to start working on it. This section is broken down into the sub-sections:

Checking out a copy of a project

Select "Create | Checkout Module", then fill in these fields:

  • Enter the module name and path on the server
  • Local folder to checkout to

Initial Tasks

These are the tasks you'll need to perform to get started with WinCVS:

  • Download WinCVS
  • Install WinCVS
  • Start WinCVS
  • Setting your preferences via Admin/Preferences
  • Checking out a copy of a project

Download WinCVS

You can download the latest version of WinCVS from it's Internet home, wincvs.org.

When working with CVS, there are several concepts that you should know:

The following "Introduction to WinCVS" tutorial pages were taken from a short presentation I gave to new programmers and people in the design department at a small company I previously owned. As part of our overall development process we found it was helpful if everyone knew a little bit about how CVS works, and how WinCVS in particular works. I hope these pages will be helpful to you as well.

The following "Introduction to WinCVS" tutorial pages were taken from a short presentation I gave to new programmers and people in the design department at a small company I previously owned. As part of our overall development process we found it was helpful if everyone knew a little bit about how CVS works, and how WinCVS in particular works. I hope these pages will be helpful to you as well.

As revenue plummets, and their number of journalists has dropped from 400 to 125 over the last nine years, the San Jose Mercury News wrote yesterday that they need help from readers in trying to figure out how to transform their business: