NetBeans rocks JShell

Some weeks ago I posted about “Cool stuff: NetBeans and JShell” [1]. Sadly, JShell did not observe the editor if the editor (e.g. gedit) had not been started from within the shell. Thus, you could not have used NetBeans as editor if the shell had been started within the NetBeans terminal window.

I discussed this problem with Robert Field (@JShellRobert). Today he provided me a patch. It uses a new option “-wait” and performs really great. With many thanks to Robert! Continue reading “NetBeans rocks JShell”

Secure passwords

Because the access to special areas of Alumni (an application described in my book “Web Development with Java and JSF”) shall be restricted to members only, we need to restrict the access to authorized persons only. During the registration process, we ask the user to enter a password. This part is yet missing in the draft version of the registration form. Adding an input element is really easy. We’ll use an inputSecret in place of an inputText element.

But, since Alumni is exposed to the web, there is a potential risk, that somebody tampers the system. I guess everybody agrees that passwords need a special protection. They never should be stored in clear text format. Continue reading “Secure passwords”

Next version of NetBeans

NetBeans 8.2 is announced to be feature complete. The Netbeans Community Acceptance Test (NetCAT) will start soon. Try NetBeans 8.2. Get a first impression and report potential problems to the NetBeans team to make 8.2 the next great version.

Read about this upcoming version at the new and noteworthy site [1].

 

[1] wiki.netbeans.org/NewAndNoteworthyNB82

Erdogan ein Terrorist?

Da haben deutsche Abegeordnete ein Massaker von Osmanen an Armeniern – an dem auch Deutsche nicht unschuldig waren – als Völkermord bezeichnet. Abscheuliche Verbrechen beim Namen nennen, dass sollte jedem möglich sein. So wie ich den Völkermord der Deutschen an den Hereros als solchen bennenen darf. Auch waren es Deutsche, die in Massen eigene Landsleute wie auch Menschen anderer Länder umgebracht hatten, bloß weil diese einer anderern Religion angehörten.

Wenn nun aber ein Staatspräsident, hier Herr Erdogan, meint, diese Abgeordneten zu brandmarken und diejenigen von Ihnen, deren Vorfahren aus der Türkei stammen, sogar mit Morddrohungen überziehen zu lassen, so verbreitet er damit unter den Abgeordneten Angst und Schrecken. Soweit, dass diese gar unter Polizeischutz gestellt werden müssen. Und nutzt mit dem Gerede von “türkischem” Blut eine Wortwahl, die vor 1945 von einigen Despoten wie Hitler verwendet wurden (nur dass dieser “deutsches” Blut meinte). Meines Wissens ist Blut bei allen Menschen rot.

Angst und Schrecken zu verbreiten ist ein Merkmal des Terrors. Ist Erdogan also ein Terrorist und die AKP eine Terrororganisation?

Java Lambdas and Parallel Streams: collect()

I’m proud to announce an enhanced edition of my book “Java Lambdas and Parallel Streams” [1].

I added a chapter about the collect() method of the stream interface with respect to Java concurrency. Understand how to collect data or to write your own Collector, which is capable to run in concurrency without special synchronization.

If you’ve purchased my book before, this update is available for download. If you haven’t purchased my book so far, this is a great opportunity to buy it now. For the present I kept the minimal price unchanged. And all future updates will be available for download.

Enjoy reading!

 

[1] leanpub.com/lambdas

NetBeans and the Java Platform Shell

In my last blog [1], I showed, how to use the upcoming Java Shell within a NetBeans terminal window. By now, this is fine using Linux. Using Windows, you need to install cygwin to run a terminal window, because the native windows prompt is not supported yet. And launching JShell within the NetBeans (cygwin) terminal still has a display issue. Today I tried an alternative: The Java Platform Shell. Continue reading “NetBeans and the Java Platform Shell”