Aug 15

Anything: Software, Web, Mobile, Database, BI, Big-Data, Cloud, Telecom, Security


Spring AOP Example Code: Aspect Oriented Programming

Check other Spring short-notes For AOP example, use Eclipse IDE. Steps as below Create a maven project using linux maven ...
Read More

Annotation Based Dependency Injection in Spring: Pretty Simple Java Code:

First, check the simple examples on creating Spring Applications One Simple Spring Application Pretty Simple Spring Application with Annotation Based ...
Read More

Pretty Simple Spring Application with Annotation Based Configurations

You can check the XML based configuration example at: http://sitestree.com/one-simple-spring-application/ [you can copy the code in Eclipse IDE and use the ...
Read More

One Simple Spring Application

Did I try this on my own? Yes, I did. the code works. 1. Create a Java Project in Eclipse ...
Read More

Drupal 8’s improvements

"Drupal 8's improvements include: Simplified content authoring experience API-driven content approach Rest-first native web services Seamless integration with existing technologies ...
Read More

PHP Technologies similar to Java Spring: Comparisons as Well

"Symfony2, introduced in 2011 after 2 years of active community development, took a lot of inspiration from Spring Framework, maybe ...
Read More

WordPress: How to: Simple Plugin: Step By Step

 Create a folder with the name of your plugins under /wp-content/plugins/  such as /wp-content/plugins/my-simple-plugin folder Create a php file under your plugin ...
Read More

Presentations on DevOps

Presentations about DevOps  40:57 MobileIoT for Big Machinesby Jayant Thomas Posted on Aug 19, 2017 37:57 DevOpsServerless Security and Things That Go Bump ...
Read More

DevOps News at InfoQ

News about DevOps  DevOpsChoose Your Own Adventure: Chaos Engineering at QCon New York 2017by Pierre-Luc Maheu Posted on Aug 22, 2017 DevOpsContainers to ...
Read More
Loading...

Sep 17

Spring AOP Example Code: Aspect Oriented Programming

Check other Spring short-notes

For AOP example, use Eclipse IDE.

Steps as below

 

  1. Create a maven project using linux maven (i.e. mvn) commands and then at one point import that project to Eclipse (mvn package command might help) Or Create a Java Project in Eclipse (if you start with a Java Project, you will need to convert this to Maven project) or just directly create a Maven project in Eclipse. Directly creating a Maven project is better and simpler.
  2. You can use the File->New menu option to create a Java project or a Maven Project
  3.  To convert a Java project to maven project -> Right click project name and then select the options to convert to Maven project.
  4. the linux command to create maven project can be :
    mvn archetype:generate -DgroupId = com.tutorialspoint -DartifactId = Student
    	-DarchetypeArtifactId = maven-archetype-quickstart -DinteractiveMode = false
  5. after creating the project, create a package like com.justetc
  6. then create files like Logging.java, Student.java, MainApp.java
  7. Logging.java will have the Logging class i.e. the Aspect that we will use i.e. the cross cutting concept
  8. Student.java - just the student class with simple getters/setters.
  9. MainApp.java will have the main method - so we can execute this project as a Java application
  10. pom.xml -> the maven config
  11. Beans.xml -> the bean configurations as well as Aspect pointcut references and advice references

 

Take the code from below and then from Eclipse use Source -> Format to format the code well inside Eclipse.

 

The pom.xml file is as below: if you create a simple Maven project inside Eclipse, you might not have all the dependencies config by default.

so take the missing sections from here

 

<project xmlns = "http://maven.apache.org/POM/4.0.0"

   xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"

   xsi:schemaLocation = "http://maven.apache.org/POM/4.0.0

   http://maven.apache.org/maven-v4_0_0.xsd">

   <modelVersion>4.0.0</modelVersion>

   <groupId>com.tutorialspoint</groupId>

   <artifactId>Student</artifactId>

   <packaging>jar</packaging>

   <version>1.0-SNAPSHOT</version>

   <name>Student</name>

   <url>http://maven.apache.org</url>

   

   <dependencies>

      <dependency>

         <groupId>junit</groupId>

         <artifactId>junit</artifactId>

         <version>3.8.1</version>

         <scope>test</scope>

      </dependency>

      

      <dependency>

         <groupId>org.springframework</groupId>

         <artifactId>spring-aop</artifactId>

         <version>4.1.0.RELEASE</version>

      </dependency>

      

      <dependency>

         <groupId>org.springframework</groupId>

         <artifactId>spring-context</artifactId>

         <version>4.1.4.RELEASE</version>

      </dependency>

      

      <dependency>

         <groupId>org.aspectj</groupId>

         <artifactId>aspectjweaver</artifactId>

         <version>1.6.8</version>

      </dependency>

      

   </dependencies>

</project>

 

Beans.xml file: This will be under src/main/resources folder (make sure this file gets loaded properly i.e. from the main method)

 

<?xml version = "1.0" encoding = "UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"

xsi:schemaLocation="http://www.springframework.org/schema/beans

   http://www.springframework.org/schema/beans/spring-beans-3.0.xsd

   http://www.springframework.org/schema/aop

   http://www.springframework.org/schema/aop/spring-aop-3.0.xsd ">

<aop:config>

<aop:aspect id="log" ref="logging">

<aop:pointcut id="selectAll" expression="execution(* com.justetc.*.*(..))" />

<aop:before pointcut-ref="selectAll" method="beforeAdvice" />

<aop:after pointcut-ref="selectAll" method="afterAdvice" />

<aop:after-returning pointcut-ref="selectAll"

returning="retVal" method="afterReturningAdvice" />

<aop:after-throwing pointcut-ref="selectAll"

throwing="ex" method="AfterThrowingAdvice" />

</aop:aspect>

</aop:config>

<!-- Definition for student bean -->

<bean id="student" class="com.justetc.Student">

<property name="name" value="Zara" />

<property name="age" value="11" />

</bean>

<!-- Definition for logging aspect -->

<bean id="logging" class="com.justetc.Logging" />

</beans>

 

The Logging.java file

 

package com.justetc;

public class Logging {

/**

* This is the method which I would like to execute before a selected method

* execution.

*/

public void beforeAdvice() {

System.out.println("Going to setup student profile.");

}

/**

* This is the method which I would like to execute after a selected method

* execution.

*/

public void afterAdvice() {

System.out.println("Student profile has been setup.");

}

/**

* This is the method which I would like to execute when any method returns.

*/

public void afterReturningAdvice(Object retVal) {

System.out.println("Returning:" + retVal.toString());

}

/**

* This is the method which I would like to execute if there is an exception

* raised.

*/

public void AfterThrowingAdvice(IllegalArgumentException ex) {

System.out.println("There has been an exception: " + ex.toString());

}

}

 

 

 

The Student.java file

 

package com.justetc;

public class Student {

private Integer age;

private String name;

public void setAge(Integer age) {

this.age = age;

}

public Integer getAge() {

System.out.println("Age : " + age);

returnage;

}

public void setName(String name) {

this.name = name;

}

public String getName() {

System.out.println("Name : " + name);

returnname;

}

public void printThrowException() {

System.out.println("Exception raised");

throw new IllegalArgumentException();

}

}

 

 

The MainApp.java file

 

package com.justetc;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MainApp {
public static void main(String[] args) {
ApplicationContext context =
new ClassPathXmlApplicationContext("Beans.xml");

Student student = (Student) context.getBean("student");

student.getName();
student.getAge();

student.printThrowException();
}
}

 

 

 

 

 

 

 

 

Sep 15

Annotation Based Dependency Injection in Spring: Pretty Simple Java Code:

First, check the simple examples on creating Spring Applications

 

One Simple Spring Application

 

Pretty Simple Spring Application with Annotation Based Configurations

 

Then use the following code

MainApp.java

package com.justetc;

import org.springframework.context.ApplicationContext;

import org.springframework.context.annotation.*;

public class MainApp {

   public static void main(String[] args) {

      ApplicationContext ctx = new AnnotationConfigApplicationContext(TextEditorConfig.class);

      TextEditor te = ctx.getBean(TextEditor.class);

      te.spellCheck();

   }

}

 

TextEditorConfig.java

package com.justetc;

import org.springframework.context.annotation.*;

@Configuration

public class TextEditorConfig {

   @Bean

   public TextEditor textEditor(){

      return new TextEditor( spellChecker() );

   }

   @Bean

   public SpellChecker spellChecker(){

      return new SpellChecker( );

   }

}

 

TextEditor.java

 

package com.justetc;

public class TextEditor {

   private SpellChecker spellChecker;

   public TextEditor(SpellChecker spellChecker){

      System.out.println("Inside TextEditor constructor." );

      this.spellChecker = spellChecker;

   }

   public void spellCheck(){

      spellChecker.checkSpelling();

   }

}

 

SpellChecker.java

 

package com.justetc;

public class SpellChecker {

   public SpellChecker(){

      System.out.println("Inside SpellChecker constructor." );

   }

   public void checkSpelling(){

      System.out.println("Inside checkSpelling." );

   }

}

 

 

 

Sep 15

Pretty Simple Spring Application with Annotation Based Configurations

You can check the XML based configuration example at: http://sitestree.com/one-simple-spring-application/

[you can copy the code in Eclipse IDE and use the Source->Format option to properly format the code]

For this example, Annotation based configuration will be used.

i.e. we will create a .java for the Bean configuration. We will use @Configuration and @Bean annotations.

The Main Application method will use this Config Class for Bean configurations; hence, we will see new code in replace of loading Beans.xml file and configuring.

For this example, the Bean Configuration File is HelloWorldConfig.java with the following code

package com.justetc;

import org.springframework.context.annotation.*;

@Configuration

public class HelloWorldConfig {

   @Bean

   public HelloWorld helloWorld(){

      return new HelloWorld();

   }

}

In the main method, we will use the following code to load the config related java class and to configure the Beans

ApplicationContext ctxnew AnnotationConfigApplicationContext(HelloWorldConfig.class);

To create an example to see the code with annotations working, please follow the steps in the linked article. I will now, give the code below

HelloWorld.Java

package com.justetc;

public class HelloWorld {

private String message;

public void setMessage(String message) {

this.message = message;

}

public void getMessage() {

System.out.println("Your Message : " + message);

}

}

 

HelloWorldConfig.java

 

package com.justetc;

import org.springframework.context.annotation.*;

@Configuration

public class HelloWorldConfig {

   @Bean

   public HelloWorld helloWorld(){

      return new HelloWorld();

   }

}

 

MainApp.java

 

package com.justetc;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.*;

public class MainApp {
public static void main(String[] args) {
ApplicationContext ctx =
new AnnotationConfigApplicationContext(HelloWorldConfig.class);

HelloWorld helloWorld = ctx.getBean(HelloWorld.class);
helloWorld.setMessage("Hello World!");
helloWorld.getMessage();
}
}

Note: there is no, Beans.xml file here.

 

 

Sep 15

One Simple Spring Application

Did I try this on my own? Yes, I did. the code works.

 

1. Create a Java Project in Eclipse IDE named HelloSpring
2. Download Spring Framework and Commons Logging.

Commons Logging: https://commons.apache.org/proper/commons-logging/download_logging.cgi
Spring Framework: https://repo.spring.io/release/org/springframework/spring

unzip these libraries.

3. Right click project name and select properties then go to Libraries tab
4. From Libraries tab, click on add external jars

Select the Spring jar files from Spring Framework. Do not add source or javadoc jars - just add the library jar files.

Also, add the commons-logging jar files as well

5. Create a file Beans.xml under src folder and put the following xml. Just a POJO that will be loaded at application initiation.

We will write code to load this file.

 

Beans.xml

<?xml version = "1.0" encoding = "UTF-8"?>

<beans xmlns = "http://www.springframework.org/schema/beans"

   xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"

   xsi:schemaLocation = "http://www.springframework.org/schema/beans

   http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">

   <bean id = "helloWorld" class = "com.justetc.HelloWorld">

      <property name = "message" value = "Hello World!"/>

   </bean>

</beans>

 

6.  Create MainApp.java file under src folder and put the following Java Code there

The code will load Beans.xml

Create and configure a Bean called HelloWorld i.e. obj variable

Yes, we have to write the Class HelloWorld.java

package com.justetc;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MainApp {
public static void main(String[] args) {
ApplicationContext context = new ClassPathXmlApplicationContext("Beans.xml");
HelloWorld obj = (HelloWorld) context.getBean("helloWorld");
obj.getMessage();
}
}

7. Create a file named HelloWorld.java under the src folder and put the following code there

 

package com.justetc;

public class HelloWorld {

   private String message;

   public void setMessage(String message){

      this.message  = message;

   }

   public void getMessage(){

      System.out.println("Your Message : " + message);

   }

}

 

Note: you could follow the sequence in reverse order i.e. create in the order HelloWorld.java, MainApp.java, and Beans.xml

 

Now Build and run the application.

 

You can run this as : Java Application

 

List of the Jar files added (you can check the names of the jar files as they indicate the components available in the Spring Framework). the .jar extension is omitted.

  • spring-aop-4.1.6.RELEASE
  • spring-aspects-4.1.6.RELEASE
  • spring-beans-4.1.6.RELEASE
  • spring-context-4.1.6.RELEASE
  • spring-context-support-4.1.6.RELEASE
  • spring-core-4.1.6.RELEASE
  • spring-expression-4.1.6.RELEASE
  • spring-instrument-4.1.6.RELEASE
  • spring-instrument-tomcat-4.1.6.RELEASE
  • spring-jdbc-4.1.6.RELEASE
  • spring-jms-4.1.6.RELEASE
  • spring-messaging-4.1.6.RELEASE
  • spring-orm-4.1.6.RELEASE
  • spring-oxm-4.1.6.RELEASE
  • spring-test-4.1.6.RELEASE
  • spring-tx-4.1.6.RELEASE
  • spring-web-4.1.6.RELEASE
  • spring-webmvc-4.1.6.RELEASE
  • spring-webmvc-portlet-4.1.6.RELEASE
  • spring-websocket-4.1.6.RELEASE

 

 

 

 

 

Sep 04

Drupal 8’s improvements

"Drupal 8's improvements include:

  • Simplified content authoring experience
  • API-driven content approach
  • Rest-first native web services
  • Seamless integration with existing technologies
  • Multilingual features and capabilities
  • Responsive by nature and mobile-first

Revised and updated for Drupal 8.2, as of October, 2016."

 

Reference:

Drupal 8 Features

 

 

Download the guide from: Drupal Best Practices

 

"Drupal is one of the most flexible content management systems in existence. This eBook provides best practices in five crucial areas of building and maintaining an effective Drupal site:

Architecture: This category covers best practices for structuring content, how to build the display, and how to organize functionality.
Security: How to avoid specific types of attacks, as well as Drupal best practices that help protect a site.
Performance: Tools for performance analysis, common approaches to optimizing your site, and caching mistakes to avoid.
Infrastructure: Best practices for your software stack, including Varnish and Memcached layers.
Website life cycle: How to set up best practices throughout the life of your site, including development, deployment, and maintenance phases.

"

 

Sep 04

PHP Technologies similar to Java Spring: Comparisons as Well

"Symfony2, introduced in 2011 after 2 years of active community development, took a lot of inspiration from Spring Framework, maybe the most popular Java framework out there."

https://ez.no/Blog/Why-PHP-and-Symfony-and-not-Java

 

"We are often asked, especially from our enterprise customers at financial institutions, why we decided to go with PHP and Symfony instead of a Java framework.  And as we have actually  re-considered alternatives both in 2007 and 2011, we know the answer pretty well. We also know firsthand how much PHP and the PHP ecosystem has matured and progressed the last few years, how Symfony2 and Composer provided a big jump forward, how PHP v7 and Symfony3 is positioned to provide the next, in the end making us very confident in our choice and in recommending it to others. Read-on if you're interested in the topic!"

https://ez.no/Blog/Why-PHP-and-Symfony-and-not-Java

 

 

A good comparison: PHP Flow3 vs Java Spring

http://vschart.com/compare/flow3/vs/spring-framework

 

PHP and Java Spring - usage comparison

https://www.similartech.com/compare/php-vs-spring

 

 

 

Related but off-topic

How not to hate Spring in 2016

https://spring.io/blog/2015/11/29/how-not-to-hate-spring-in-2016

 

On Flow 3: https://dzone.com/articles/flow3-phps-answer-javas-spring

 

The following note is kinda old - from 2012

"

Question one would be: why do they ask for Java? Often big companies only offer Java or .Net environments for productive systems so they might not have the people to productively run PHP applications. I know its not complicated but the maintenance people define what they are running.

Ofter people talk on languages and their features but when the first business use case has to be discussed no framework will save you that amount of time to make it count. Most programming language will somehow solve the issue.

Java is not only RichFaces or JSF. There is a lot to choose from. A LOT. Not an advantage.

Stuff often forgotten is the tool support. Java comes along with a JVM that can be analyzed in detail what it does with its memory, garbage collector, threads and so on. Profilers in Java allow you to identify almost any memory leak within a few hours. Most of the JVM monitoring works in realtime (with about 5% overhead). "

 

PHP IDEs got way smarter now a days

 

"You are correct if the first look at Java compared to PHP looks like elephants and horses. (ok the logo of php is an elephant, perfect comparison...). Horses are more flexible to turn around corners but they might not carry that much around. I think from a language perspective Java is still more advanced than PHP. Namespaces, Classes, Type-Safety. These are somewhat available in PHP but still quite new.

Frameworks like Spring allow you to leverage your application on an architectural level and are more than just libraries.

I'm not the biggest Java EE fan, so I'll not complain on that.

A simple approach for you could be Tomcat+Spring+SpringMVC and a template engine for the GUIs. There is also GWT (Vaadin) if you target higher speed client behaviour (still a lot more out there).

There are lightweight approaches in Java too. I agree the standards in Java do have a more fatty tendency.

In my experience Java has no major drawbacks compared to PHP. The language choice will only affect success of the project if people come with less knowledge than required and spend too much time in learning things. And trying to find the right book about Java could be a project by its own :) (counting as an advantage)

But I have no doubts PHP would allow you to finish the project.

I would rather look into the goals and requirements before choosing the technology. This often implies or simplifies a decision.

"

https://stackoverflow.com/questions/9479495/javaee-vs-php-why-so-many-people-thinks-java-is-better

 

Related: Spring Framework vs the rest of the world

Spring Framework vs Rest of the World

 

Related: PHP and Java Comparison for Web Projects

https://blog.codecentric.de/en/2008/07/comparison-of-java-and-php-for-web-applications/

 

 

Off-topic

Micro Services Frameworks in Different Languages: https://github.com/mfornos/awesome-microservices#java-vm

 

 

 

 

Sep 03

WordPress: How to: Simple Plugin: Step By Step

  1.  Create a folder with the name of your plugins under /wp-content/plugins/  such as /wp-content/plugins/my-simple-plugin folder
  2. Create a php file under your plugin directory with the name of your plugins such as my-simple-plugin.php i.e /wp-content/plugins/my-simple-plugin/my-simple-plugin.php
  3. On this file, you can provide some information about your plugin; yes in a comment section, usually at the top of the file
  4. sample information block:     /*
    Plugin Name: X
    Plugin URI: http://
    Description: yyy
    Version: 1.0
    Author: your name
    Author URI: http://
    License: GPLv2+
    Text Domain:
    */
  5. you can create a folder structure for your plugin if you will need other files such as : css, images, js, lib, views, includes
  6. you can put an icon under images folder if you want an icon to show up beside the name of your plugin on the navigation menu (provided, you create an entry in the navigation menu)
  7. on the my-simple-plugin.php file, you might want to write code to create an entry in the wordpress navigation menu. You can use both procedural and object oriented approach - your choice. if you use OOP, you can write the navigation entry creation code under the constructor method.
  8. add_action( 'admin_menu', array( $this, 'wpa_add_menu' ));  //under constructor method to say that wpa_add_menu method will be used to add entries in the menu/navigation
  9. you can use add_menu_page, add_submenu_page to add entries and sub-entries. you can use  add_menu_page  method to add an entry called 'My Simple Plugins' and then you can use add_submenu_page  to add pages such as settings, and dashboard.
  10. you can use register_activation_hook( __FILE__, array( $this, 'wpa_install' ) ); to create the activate link/function for your plugin. you can put this line in the constructor method or in yoiur flow
  11. you can use register_deactivation_hook( __FILE__, array( $this, 'wpa_uninstall' ) ); to create deactivate link/function for your plugin.
  12. note: empty wpa_install, and wpa_uninstall functions will be sufficient
  13. you can use the method: wpa_page_file_path to link the sub-navigation entries to corresponding pages (provide the path) for example for settings and dashboard pages
  14. if you want to use custom css pages for your plugins, you can load your own css files using: add_action( 'admin_enqueue_scripts', array( $this, 'wpa_styles') );  //add this line in the constructor
  15. and then define the method below outside the constructor:  public function wpa_styles( $page ) {  wp_enqueue_style( 'wp-analytify-style', plugins_url('css/wp-analytify-style.css', __FILE__));  

 

 

Aug 30

Test

Your Score:  

Your Ranking:  

Aug 29

Presentations on DevOps

Presentations about DevOps 

MobileIoT for Big Machinesby Jayant Thomas Posted on Aug 19, 2017

JavaFearless AWS Lambdasby John Chapin Posted on Aug 15, 2017

Aug 29

DevOps News at InfoQ

News about DevOps 

DevOpsChoose Your Own Adventure: Chaos Engineering at QCon New York 2017by Pierre-Luc Maheu Posted on Aug 22, 2017

 

DevOpsContainers to Overtake VMs in Application Platform Space, Says SDxCentral Surveyby Hrishikesh Barua Posted on Aug 21, 2017 2

Architecture & DesignDistributed Schedulers with Microservice Architecturesby Andrew Morgan Posted on Aug 19, 2017

 

DevOpsDocker Enterprise Edition 17.06 Released with Support for Windows Server 2016 and IBM Z Mainframeby Daniel Bryant Posted on Aug 18, 2017

CloudAWS Release ‘SAM Local’ to Facilitate Local Build and Test of AWS Lambda Serverless Applicationsby Daniel Bryant Posted on Aug 18, 2017

 

Culture & MethodsAdopting Agile and DevOps at Wyndham Vacation Rentals UKby Ben Linders Posted on Aug 17, 2017

CloudMicrosoft Ships Azure Event Grid for Unified Event Processingby Richard Seroter Posted on Aug 16, 2017

 

CloudAmazon Web Services Joins Cloud Native Computing Foundation (CNCF)by Daniel Bryant Posted on Aug 10, 2017

DevOpsHow Do You Fit a Core Banking System into a Few Containers? Insight from DOES EU 17by Daniel Bryant Posted on Aug 10, 2017

Aug 29

DevOps on InfoQ

Aug 29

Java EE Technologies

For example, all of these are Java EE technologies:

  • Web Services (JAX-RS/JAX-WS)
  • JSP/JSF/Facelets
  • Servlets
  • JPA (Hibernate/EclipseLink)
  • CDI
  • Bean Validation
  • JavaMail
  • WebSockets
  • JMS
  • JTA
  • EJB
  • Containers (Tomcat/Jetty/WebSphere/WebLogic/GlassFish/Payara/TomEE)

Reference: https://javaee-guardians.io/

Aug 29

Install Apache Tomcat 9 on MacOs

Download the .tar.gz binary under the section core from:
http://tomcat.apache.org/download-90.cgi

And the commands that I executed (I know , you are smart, so not explaining)
java -version
echo $JAVA_HOME
cd ~/Downloads/
tar xvf apache-tomcat-9.0.0.M26.tar.gz
mv apache-tomcat-9.0.0.M26 tomcat9
cd tomcat9/
cd bin/
sh startup.sh [will start Tomact, go to http://localhost:8080 on your browser]
sudo mkdir -p /usr/local/tomcat9
sudo mv tomcat9 /usr/local/
sudo rm -f /Library/Tomcat [remove link to older installation of Tomcat if any]
sudo ln -s /usr/local/tomcat9 /Library/Tomcat
sudo chown -R sayedahmed /Library/Tomcat [change ownership]
chmod +x /Library/Tomcat/bin/*.sh [execute permission]
nano ~/.bash_profile

 

You might want to check:

http://www.activata.co.uk/downloads/  (GUI to start/stop Tomcat)

 

 

Aug 26

BiGDump

If you are having issues to import large SQL files, one possible solution is BiGDump script. However, accessing the server through ssh and using mysql command to import/restore will work as well (and the better solution).

I just tried BigDump - it worked pretty well for me. The idea is simple: Read the rest of this entry »

Aug 25

Drupal vs WordPress

6 Reasons to use Drupal vs WordPress
https://thoughts.duoconsulting.com/blog/5-more-reasons-to-use-drupal-vs-wordpress

WordPress or Drupal?
https://cheekymonkeymedia.ca/services/wordpress-vs-drupal

Compare Top 3 CMS (2017): WordPress vs. Joomla vs. Drupal

Compare Top 3 CMS (2017): WordPress vs. Joomla vs. Drupal

WordPress VS. Drupal – Which is the right CMS for you?
https://guardian88.com/2017/07/31/wordpress-vs-drupal-right-cms/

Aug 25

PHP Reporting Tools

PHP Reporting Tools:

PHP Report Maker:
http://alternativeto.net/software/php-report-maker/

Reportico:
https://sourceforge.net/projects/reportico/

There are also various packages you could use as well, like Pentaho | Data Integration and Business Analytics Platform for Big Data Deployments or Business Intelligence Software and Data Analytics

You could also custom make reports with sql and charting tools like PHPlot: Dynamic Charts or d3.js

http://ubiq.co/

http://mysqlreports.com/

Home

https://github.com/PHPJasper/phpjasper

Aug 20

Big Data and WordPress (PHP Based CMS)

Big Data and WordPress (PHP Based CMS)
 
Big-data plugins for WordPress

Aug 20

Big Data and Drupal (PHP based CMS)

Big Data and Drupal (PHP based CMS)
 
Examples of Using Drupal for Big Data Projects
 

Read the rest of this entry »

Aug 19

Skills for Current Java Focused Jobs

Strong object-oriented analysis, design, and programming experience
Core Java
Read the rest of this entry »

Aug 19

Why and How To: Grunt and Gulp

Why and How To: Grunt and Gulp

The following articles will give you a very good overview on Grunt and Gulp.

Grunt and Gulp are package managers for front end development.

npm (node package managers is another alternative, some prefer to stick to npm than using grunt and gulp). Grunt and gulp also needs npm.


Composer is PHP package manager
Read the rest of this entry »

Aug 19

.Net Package Managers

What is NuGet?

NuGet is the package manager for .NET. The NuGet client tools provide the ability to produce and consume packages. The NuGet Gallery is the central package repository used by all package authors and consumers.
Read the rest of this entry »

Aug 17

Has August become the Most Volatile month?

Historically, September was the most volatile month (for the Stock Market in the North America).

However, this August, 2017 also seems pretty volatile. Does all credit goes to Mr. Trump? or this is the regular summer time sell off? Apparently, this is for both (gut feeling and as I understand and as I see on Bloomberg)

Anyway, Today's performance, for my ETFs of interest. Mostly down.
Read the rest of this entry »

Aug 13

Issues and solutions for moving WordPress based applications from one hosting to another

Just moving the Training and Education site http://SitesTree.com to a different hosting i.e. from a reseller hosting to a Cloud Hosting (no, it is not AWS or Azure or Bluemix cloud, just the as usual cloud hosting provided by some regular hosting provider. ) . Just two cents on how this moving (WordPress) can be done.
Read the rest of this entry »

Aug 07

Python and Image Processing: Packages like OpenCV

Python and Image Processing: Packages like OpenCV

PIL: comes with the distribution Anaconda. It contains basic image processing capabilities, and convenient to use.

ndimage.scipy: is a module that contains many functions for processing Photos.

misc.scipy: module contains functions for reading and writing Photos

OpenCV: image processing package is very common and accepted

Read the rest of this entry »

Aug 06

Step by Step Python and Django Installation

Step by Step Python and Django Installation

Check the video below. Also, search for related short notes on this site

 

Read the rest of this entry »

Aug 05

Installing Python, Django with/without Virtual Env on MacOS

Installing Python, Django with/without Virtual Env on MacOS

Follow the steps below

Python or Python3 - just to check if Python is already there.

If Python is not there, install Homebrew that will help to install Python.

 

Read the rest of this entry »

Aug 04

Python CMSes. and/or on Integration with Python Backend.

Apparently, you can use most of the modern CMSes in any other platforms to integrate into Python backend (i.e. code written in Python). I.e. WordPress, Drupal, DNN (.Net), OpenCMS (Java), LifeRay (Java) - all logically should be able to talk to Python ( in the backend ). The solution is write Python code in API format i.e. REST or SOAP. And then From CMSes in other platforms, call those APIs. Sure, Python based CMSes can also work with Python based logic written as API services.

Read the rest of this entry »

Aug 04

My ETFs of Interest : Ups and Downs: Mostly up

 

 

Ticker

$ Current
Price

$ Change
% Change
 Country
43.60
0.31
0.72
 US
39.09
0.27
0.70
 US
26.09
0.27
1.05
 Emerging
24.11
0.17
0.71
 US Big + Small Cap
29.37
0.15
0.51
 Europe
32.34
0.14
0.43
 Canada
30.87
0.13
0.42
 Canada
22.69
0.11
0.49
 Canada
24.20
0.11
0.46
 Canada
25.30
0.00
0.00
 Bond-Canada
21.29
0.00
0.00
 Bond-Canada
14.17
0.00
0.00
 Pref. Share. Canada
27.71
-0.01
-0.04
 Bond Canada
19.74
-0.01
-0.05
 REIT
15.85
-0.02
-0.13
 REIT
23.59
-0.16
-0.67
 Bond Real Return
1.46
0.35
420.01
99.99

Aug 03

APIGee – 127: NodeJS, ApiGee, Installation. Also, the Hello-World Application

What is Apigee-127?

https://github.com/apigee-127/a127-documentation/wiki/What-is-Apigee-127

"Apigee-127 provides the tools you need to design and build Enterprise-class APIs entirely in Node.js and deploy them on any Node.js runtime system."

 

Install AoiGee on Mac/Linux

npm install -g apigee-127
sudo npm install -g apigee-127
sudo npm cache clear

The Hello-World
a127 project create hello-world
cd hello-world
a127 project start

Then Access the Service using:
http://localhost:10010/hello?name=Scott

https://www.programmableweb.com/news/apigee-plans-to-extend-open-source-api-projects-to-java/2015/01/09

Apigee Plans to Extend Open Source API Projects to Java



 

Older posts «

%d bloggers like this:
Skip to toolbar
dead