avatar

Andres Jaimes

Running Pentaho Data Integration on Mac OSX

Run Pentaho Data Integration on Mac OSX. The following procedure works with all the latest OSX versions. My local configuration OSX Mojave OpenJDK 11 Procedure Download pdi-ce-8.1.0.0-365.zip from https://sourceforge.net/projects/pentaho/ Unzip it Using the terminal, cd into the unzipped directory Run the application open Data\ Integration.app If you get the following error: LSOpenURLsWithRole() failed with error -10810 for the file Data Integration.app then run the following command (it is permissions related):

PlayFramework – Java

So far I have really liked this concept. The only con is that some times is difficult to find full examples that use the latest version. Installing sbt We need sbt for compiling and running Play applications. brew install sbt@1 Executing a first application Check the tutorials page to see how to create a first project. Pretty much: sbt new playframework/play-java-seed.g8 sbt run And then visit localhost:9000 Play 2.

Password Requirements Validation with JQuery

Password forms are challenging for users because we often ask them to enter complex strings which they are usually not allowed to see. Additionally, these strings have to meet different criteria – like having upper and lower case characters, numbers and so on – to keep our applications secure. In this post, we are going to add visual queues to a form that will allow users to get a better experience with passwords.

How to run a custom update using Java JPA

From time to time it is necessary to execute a query without using Java’s JPA infrastructure. In order to do it, we have to define a NamedQuery to execute. In this example, I will run an update against the database. @Entity @NamedQueries ({ @NamedQuery ( name = "SomeEntity.TestQuery", query = "update SomeEntity se set se.myField = '' where se.id = 0" ) }) public class SomeEntity implements Serializable { // .

Quick lessons on working with Java’s BigDecimal

Today I bring an example of the different results you can expect when using Java’s BigDecimal class. From instantiation to applying different arithmetic operations, it is important to understand how they affect the resulting instances. The following program shows different scenarios and results applied to BigDecimal’s. 1package test; 2 3import java.math.BigDecimal; 4import java.math.RoundingMode; 5 6public class Test { 7 8 public static void main(String[] args) { 9 BigDecimal a = new BigDecimal("1.

How to read a file name argument from the command line in C++

Reading a file name parameter from the command line is a common task. In this post I read a file name and validate it exists. For paths and file names that include spaces, you have to pass them between quotes, otherwise they will be interpreted by the operating system as two different parameters. 1 #include <string>2 #include <iostream>3 #include <fstream>4 5 int main(int argc, char* argv[]) { 6 for (int i = 1; i < argc; i++) { 7 std::string s(argv[i]); 8 if (s.

How to check command line arguments in any order

Here is an easy solution to passing parameters to a C++ application from the command line that does not require any external libraries. Since parameters are read inside a loop, the order in which they are passed is not important. #include <string> #include <iostream> int main(int argc, char* argv[]) { for (int i = 1; i < argc; i++) { std::string s(argv[i]); if (s == "-a") { std::cout << "You passed parameter -a" << std::endl; } else if (s == "-b") { std::cout << "You passed parameter -b" << std::endl; } else { std::cout << "Unknown: " << s << std::endl; } } return 0; }

Read all tables and columns from a database using Java

This Java example finds all the tables and their corresponding columns from a database. The code iterates over the entities and columns found and shows them on the console. Minor changes are necessary to process the found values in a different way. 1Connection conn; 2DatabaseMetaData dmd; 3ResultSet rs1, rs2; 4ResultSetMetaData rsmd; 5Statement s; 6try { 7 conn = getConnection(); 8 dmd = conn.getMetaData(); 9 rs1 = dmd.getTables("database_name", null, "%", null); 10 s = conn.

Solution: Netbeans 8 not working on Ubuntu 15.10

Netbeans is one of my beloved day to day applications. Yesterday, when I installed Ubuntu 15.10 (Wily Werewolf) on my computer, Netbeans started to hang on the startup screen, specifically at the Loading Modules phase. It took me hours looking for solutions on the internet; and reinstalling different versions of the Java Development Framework didn’t seem to help. Finally I found the following fix at an Ubuntu forum, which turned out to be very simple to apply.

Support Glumik!

Hello, This time I write to ask you for your support. We’re developing a website for small business owners in the City of Queretaro, Mexico. The website will allow the proprietors have presence on the Internet. Many of these people do not have the resources for starting a website and we want to help them. Donations start from as little as 1 dollar. The more you donate the better chance you have to get a reward, including a 1 hour call where you and I can hold a Q&A session on selected tech topics.